runStateIdle not working in Virtual World
I have the below function that should turn the bot 90 degrees. Inside the function there are two while loops. The first while loop is broken as the entrance conditional is never true. The second while loop, commented out, works fine.
The issue is that runStateIdle and/or runStateHoldPosition are never really set, thus the conditional is never true and the while loop is never executed. I have tried placing a timer before the while loop and the bot turns but only for the duration of the timer. Where upon the while loop conditional is tested false and the motors are shutdown.
Has anyone else had trouble with runStateIdle not working correctly inside Virtual World?