To switch the RC to Autonomous mode, the Team Number has to be set to zero and then the power cycled. Fine. We were able to switch the EDU robot into Autonomous Mode and have it execute commands with no problem. However the Competition Kill switch does NOT WORK in Autonomous mode AND we are unable to remotely switch the EDU robot into User (Operator Ran) Mode.
During competition, how does the ROBOT switch from Autonomous Mode to Competition Mode after the 15 seconds of fame? Or for that matter, how does the ROBOT get INTO Autonomous Mode at the begginning of the round?
How do you make the SAFETY Kill switch (Competion Port on the OI) work when in Autonomous Mode?
Theres a variable Auton_mode built into the program. When the variable is set to 1 the robot doesn’t respond to user input and acts soley on the code. When the variable is set to 0 the robot will respond to user inputs. Just be sure to set up your program so it ignores the user section durring autonomous mode and ignore the autonomous section durring the user mode.
As for a kill switch theres a post about that somewhere describing a 3 way switch. 1 for off, 1 for autonomous, and 1 for changing channels. I guess it’d really be a 4 way switch with 1 spot thats a neutral position.
If you search the general forum or the programming forum you should be able to find more details on both of these.
There’s a bit sent to the competition port that tells it it’s in autonomous mode. PB_Mode is the bit, and it’s aliased as auton_mode, user_display_mode, and comp_mode. there’s a lot more in the manual about it (even some example code to make it easy to switch from autonomous mode to user/competition mode…)
if you need ANY help feel free to e-mail me or PM me or IM me…take your pick.
Guys the diagram shown is wrong. Because whatever you do dont i repeat dont ground your sitcuit on channel twelve because its used as a default check on the official USFIRST site
*Originally posted by UCGL_Guy *
**How do you make the SAFETY Kill switch (Competion Port on the OI) work when in Autonomous Mode? **
For our testing purposes, we programmed the wheel of the joystick to be our autonomous controller. When the right wheel was turned all the way to the top, autonomous mode ran, when the wheel was turned all the way down, autonomous mode ended and human operating resumed.
I’ve been using the full size RC and the new OI, with our dongle.
If you want auton_mode to work, power the OI from the big Wall Wart that IFI sent you, and turn off the kill switch (disable is on 6). Turn on the Auton_mode by grounding pin 5.
Leave the team number set at your team’s number, the dongle works faster. The thing is, the kill switch turns auton_mode off.
On tether, the auton_mode switch acts like a kill switch, and nothing will happen.