|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
autonomous mode timer
What is going on when the robot is disabled exactly? I ask this because I have a timer running for my autonomous mode and I want it to start when the robot is activated and autonomous mode begins. I do not want the timer to start while the robot is disabled.
I'm sure this is a relatively elementary question, so hopefully this'll have an easy answer. |
|
#2
|
|||
|
|||
|
Page 14 of the OI reference guide tells you exactly what all is still happening when the robot is disabled. The list includes - 'execution of Pbasic code', so if you had a basic timer it would most likely be counting while the robot is disabled. That is unless you test for the robot being enabled before the timer code:
Code:
if comp_mode = 1 then 'comp_mode = 0 for disabled 'crucial timer code here endif |
|
#3
|
|||||
|
|||||
|
Quote:
ThankYou ThankYou ThankYou Elementary, maybe, but crucial... Right now we'd have integrators winding themselves up, while we are waiting to go from disabled to activated |
|
#4
|
|||||
|
|||||
|
This is the "meat" of an e-mail that I got from IFI earlier this week...
Quote:
|
|
#5
|
||||
|
||||
|
So, is the timer needed if the autonomous mode bit will be set/unset for the team during competition mode? If so then the party responsible for setting the bit so that it can be read by all RCs might also be responsible for unsetting after 15 seconds. Any ideas?
![]() |
|
#6
|
|||
|
|||
|
Both comp_mode and auton_mode will be set by the competition control system at the proper time to the proper state. That's the point of having them
![]() |
|
#7
|
|||||
|
|||||
|
the best way to find if your auton and comp modes works, make a few swiches connected to a game port (ie the one on the comp port on the transmitter) and play around. the pdf with the wiring scheme is at innovationfirst.com found here: http://www.innovationfirst.com/FIRST...nout_Guide.PDF;
Hope this helps ; (thats for you ryan)-Kesich |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Autonomous mode | Jared Stofflett | Programming | 3 | 11-11-2003 09:32 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Autonomous mode | AntmanIV | General Forum | 1 | 17-02-2003 13:30 |
| Image Discuss: autonomous mode destruction | CD47-Bot | Extra Discussion | 5 | 15-02-2003 22:59 |
| autonomous mode? | bigwalt | Technical Discussion | 1 | 21-01-2003 01:14 |