View Single Post
  #12   Spotlight this post!  
Unread 17-03-2009, 01:02
ezygmont708's Avatar
ezygmont708 ezygmont708 is offline
FAIL = First Attempt In Learning
AKA: Zygmont
FRC #0708 (Hatters Robotics)
Team Role: Mentor
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Horsham, PA
Posts: 91
ezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant futureezygmont708 has a brilliant future
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!!!
Attached Files
File Type: zip 0213.zip (524.1 KB, 73 views)
__________________
E. Zygmont
Team Lead - Team 708 Hatters Robotics
Hatboro- Horsham Senior High School - Horsham, PA