18 #include "LogConfiguration.h"
void exitAction_errorState()
exit action of the errorState state.
HoistCtrl::Event doAction_resetState()
main action of the resetState
void process(Event e)
changes the state of the FSM based on the event
void entryAction_high()
executes the entry action of the high state.
Event currentEvent
holds the current event of the FSM
#define HOIST_SERVO_DELAY
Duration of the delay between the position updates of the Servo.
HoistCtrl::Event doAction_lowering()
executes the main action of the lowering state.
Contains the FSM for the Hoist.
String decodeEvent(Event event)
Decodes the Event-Enum and returns a description.
HoistCtrl()
Construct a new Hoist Ctrl object and initailize the currentState with low state.
File that contains the configuratioindetails of the different modules.
void exitAction_high()
executes the exit action of the high state.
HoistCtrl::Event doAction_high()
executes the main action of the high state.
Provides the basic functions to control the Hoist.
#define HOIST_POSITION_MIN
Minimal angle of the Servo.
#define HOIST_POISITION_MAX
Maximal angle of the Servo.
const State getcurrentState()
Get the current State.
void entryAction_lowering()
executes the entry action of the lowering state.
Ext.: Reset after Error occured.
Signal: Position reached.
void entryAction_raising()
executes the entry action of the raising state.
State currentState
holds the current state of the FSM
HoistCtrl::Event doAction_errorState()
main action of the errorState state.
void entryAction_errorState()
entry action of the errorState state.
Ext.: Resume after Error occured.
HoistCtrl::Event doAction_raising()
executes the main action of the raising state.
void exitAction_raising()
executes the exit action of the raising state.
String decodeState(State state)
Decodes the State-Enum and returns a description.
State lastStateBevorError
holds the last state of the FSM so it's possible to resume after error
Event
Enum holds all possible events.
void exitAction_resetState()
exit action of the resetState
The Class Hoist provides the basic functions for the hoist.
State
Enum holds all possible states for the Hoist.
Hoist pHoist
Hoist Object.
void loop()
Calls the do-function of the active state and hence generates Events.
Event(HoistCtrl::* doActionFPtr)(void)
Functionpointer to call the current states do-function.
#define HOIST_SERVO_PIN
Pin-Number for Servocontroll of the Hoist.
void exitAction_lowering()
executes the exit action of the lowering state.
void entryAction_low()
executes the entry action of the low state.
void exitAction_low()
executes the exit action of the low state.
HoistCtrl::Event doAction_low()
executes the main action of the low state.
void entryAction_resetState()
entry action of the resetState