Advertisement
harinin

Untitled

Aug 3rd, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * File:   runStateMachine.h
  3.  * Author: max
  4.  *
  5.  * Created on July 28, 2016, 12:43 PM
  6.  */
  7.  
  8. #ifndef RUNSTATEMACHINE_H
  9. #define RUNSTATEMACHINE_H
  10.  
  11.  
  12. #include "events.h"
  13.  
  14. // A list of your states goes here:
  15.  
  16. typedef enum {
  17.     INIT,
  18.     FORWARD,
  19.     TURNLEFT,
  20.     TURNRIGHT,
  21.     BACK,
  22.     ARCRIGHT,
  23.     DARKIDLE
  24. } state_t;
  25.  
  26. // A prototype for the function that handles the whole state machine:
  27. void RunStateMachine(event_t this_event);
  28.  
  29.  
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement