I've been going through the subVI's for the Robot Mode and Derived States and I'm having a hard time determining the exact flow that the competition's game-control/management system will push us through ... and do the driver-station buttons emulate what we'll see on the field ...
The
Robot Mode has 6 states ... and I'm guessing that they'll flow in this order when we're on the playing field:
Autonomous Disabled
Autonomous Enabled
Teleop Disabled
Teleop Enabled
Finish (?? Maybe a Teleop Disable before the Finish ?? I dunno.)
(the 6th state is Timeout and it's the exception when we don't get a DS packet)
I'm hoping that when we emulate that on the DS, it's the same as what we'll see on the field.
Now, inside both the Auton and Teleop structures, we have the
Derived Robot State of
Init
Execute
Stop
... and this is where my analysis of their subVI's breaks down. I'm not sure if we sit, looping, in the INIT state while we're "disabled" the entire time ... or do we only get one time thru the INIT state.
... and will my Auton get a chance to run it's STOP case as we transition between Auton-Enabled and Teleop-Disabled?
... similarly, will my Teleop get a chance to run it's STOP case as we transition to FINISH?
Sorry if this has been asked to death, but the keywords that I searched for brought up quite a mix-mash of posts, and nothing really covering my questions.