function did not run when variables are cleared
I have the following program to control a biped, the function walk_start() call 3 functions:
Whenever I compile the program and download, or clear all variables in the debugger and run, the stand_b() did not run properly, it just step through it and ended (i.e. did not loop in the while(nMotorRunState[motorB] != runStateIdle) ). However, if I re-run the program again, the while loop works and behave correctly. Cannot figure out why it never works when variables are cleared, could someone advise any possible causes, thanks a lot!