|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Despite what IFI says, you can configure autonomous from OI...
Quote:
Additionally, we also have a spot in our code where we wait for the user to hit a particular button the OI during competition mode BEFORE the robot starts responding. We don't like the robot suddenly becoming live at the end of autonomous mode. This forces the operator to make sure all the OI settings are correct before enabling the robot during the match. |
|
#2
|
|||
|
|||
|
Re: Despite what IFI says, you can configure autonomous from OI...
last year our team just shorted 2 pins on the competition port. Im not sure if it works on this years controller though
|
|
#3
|
||||
|
||||
|
Re: Despite what IFI says, you can configure autonomous from OI...
I've heard talk of doing this both last year and this year; however, didn't IFI release a firmware update that did away with our ability to retain the last value sent from the OI? There was something mentioned about it in one of the team updates. They may have changed some other aspect of the control system, but maybe we should check first, eh?
If IFI's firmware update did make this method impossible, then the only option left would be to not perform the upgrade on the controller, if you have yet to do so. |
|
#4
|
||||
|
||||
|
Re: Despite what IFI says, you can configure autonomous from OI...
Quote:
I am curious, but don't quite "see" it. We mounted 2 switches on the robot to indicate which auton mode we wanted and which side of the field we were on. If I'm hearing you right, what you are saying is I can have these switches on my OI (say port3) and read them in Disabled mode and act on then when not disabled. Thanks, Phil |
|
#5
|
|||
|
|||
|
Re: Despite what IFI says, you can configure autonomous from OI...
Quote:
There's a working example here: http://www.osufirst.org/twiki/bin/vi...04RegionalCode More specifically, in main.c, when **NOT** in autonomous mode: Quote:
So our main.c just sits and churns while disabled and waits for winchPneuSwitch to get set to 1. If it gets set to 1 even for an instant, it LATCHES that data in. The autonomous code can then basically say: Quote:
Additionally, we don't enable immediately after autonomous mode -- we wait for the user to hit a button. So it's okay to leave these switches in a bad state because the driver can set them back before "enabling" the robot. I hope that helps. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A better autonomous method.. | randomperson | Programming | 4 | 24-02-2004 18:02 |
| IFI Loader Problems | BrendaB | Programming | 3 | 24-01-2004 22:45 |
| variable? | manodrum | Programming | 11 | 01-04-2003 17:20 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Autonomous Kill Switch | UCGL_Guy | Programming | 8 | 15-01-2003 17:39 |