|runStateIdle not working in Virtual World
|Page 1 of 1|
|Author:||cullman2 [ Fri Dec 23, 2011 4:18 am ]|
|Post subject:||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?
|Author:||Ed Paradis [ Thu Jan 05, 2012 11:31 am ]|
|Post subject:||Re: runStateIdle not working in Virtual World|
The RVW doesn't currently support the advanced NXT motor speed controls currently. This means variables such as "nMotorEncoderTarget" and "nMotorRunState" aren't populated.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group