Help with application of Finite State Machine library

getCurrentState returns a state object, not the integer switch expects, so you can't use it. It looks like there was once an id field you could have used for this purpose, but it's commented out in the library. One way to achieve the same thing appears to be through use of a bunch of if tests calling the isInState method on the FSM.