06-09-2013 01:40 PM - edited 06-09-2013 02:10 PM
Hello ,
I implemented a program for first time using state machines and Enum (type def).
I have 2 state machines (nested)
I am not sure if the data flow between the Main state machine and the Sub state machine is correct. The program loops continuously ( this is a MOTOR PROGRAM) and I see that the motor keeps working continuously. It is supposed to run the mentioned Number of Steps once and then stop.
Please have a look at my code and tell me where I could have gone wrong.
Thank you.
06-09-2013 04:13 PM
Figured out ! Thank you. One of the ENUM was not defined to the correct state.
Thank you.