|
Re: [FTC]: Playing Forensic Roboticist.
How is "move a specified distance" implemented in robotc?
In labview, the vi disables the MC's 2.5 sec timeout and then issues a "run to position" command to the MC. LV then sits in a blocked loop waiting for a "done" from the MC. LV uses it's own 10 second timer to abort if the target is not reached.
This strategy has many downsides: the NXT will not respond to a disable, and even if the program is halted, the MC will continue to run until it reaches it's target.
You need a sepparete loop checking enable status to be able to break the motion.
As for the "connected status", this must have a longish timeout. I can turn off my NXT and the status shows Connected until I turn it back on again.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org
FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
|