|
Re: Autonomous Start Delay
Sorry for the long delay... Not just word play!
Attached is a zip file with alll of our vi's.
An explanation of the code from our chief programmer:
In Autonomous Independent.vi, the outermost case is for autonomous mode selection, e.g. "2" for autonomous mode 2. The innermost case is a state machine used for the selected autonomous mode. It takes about 2 seconds to enter the "Start" case that is nested in the outermost autonomous mode case. Using probes, the outermost case is entered immediately, but a probe in case "Start" does not update until approximately 2 seconds later. Once the state machine is entered, everything operates as expected, but for some unknown reason entrance to the state machine is delayed. I have not had a chance to use Highlight Execution to find out where the delay is originating since I do not have access to a cRIO.
The encoder code and gyro code are used.
The code for the ultrasonic and IR sensors at the bottom is not used and will be deleted.
Thanks for any help that you all may be able to provide!!!
__________________
E. Zygmont
Team Lead - Team 708 Hatters Robotics
Hatboro- Horsham Senior High School - Horsham, PA
|