The UserFiniteStateMachine.h file, contains the application for the finite state machine. The general configuration for a certain state is:

FSM state

Always starting with an IF statement with the name of the finite state. Then program the phase actions for this state and as the second part the conditions for a transit to another state. Check the example, it is self documenting!

Click here for an example.