commit

Dependencies:   MPU6050_SIM5320_TEST

Fork of MPU_SDCARD by Suad Suljic

MotionFSM/include/State.h

Committer:
suads
Date:
2017-11-10
Revision:
1:75966605a6a3

File content as of revision 1:75966605a6a3:

#ifndef FSM_STATE_H_
#define FSM_STATE_H_
#include "mbed.h"
struct Stop;
struct Move;

class FsmStates;

class State {
  public:
  State(FsmStates& state, Timer& timer);
  virtual State* handle(Stop& event);
  virtual State* handle(Move& event);
  virtual ~State() {}

  protected:
  FsmStates& states_;
  Timer& stateTimer_;
};
#endif /* ifndef FSM_STATE_H_ */