Switching to/from autonomous mode

HI EVeRYBODY!!!:slight_smile:

ANSWER ME ON TWO QUESTIONS:

1)HOW I AM CHANGING TO AUTONOMOUS MODE WITHOUT CONFIGURING THE COMPETITON PORT AND ALSO WITHOUT USING A TETHER.

2)WHAT IS THIS ERROR:

“main.c’ name exceeds file format maximum of 62 characters.”

TNX FOR YOUR HELP!:wink:

1.) Did you set your team number in the OI?

2.) Your files are nested too deeply try moving them to c:\folder name

1- well you’re gonna wanna make an “Autonomous Switch” that allows you to switch between autonomous mode and R/C mode. I believe this plugs into the competition port. It’s pretty easy you can buy all the stuff at radioshack.
2-Dunno. I’m not a programmer.

  1. If you have a switch on your control system (or just one of the buttons on the joystick), you can have that execute your autonomous mode for testing. If you know how to, though, just do what NeedMoreEngines said and make yourself a switch.

For example, you can have something like

if(p1_sw_top == 1)
{
NameOfAutoMode();
}
  1. See Kingof1337’s post. He is right.

im not in programing but the there is a switch that gets plugged into the OI called a dongle that allows you to toggle autonomus mode on or off.

  1. Here is the schematic for the dongle. http://www.ifirobotics.com/docs/competition-port-pinout-guide-reva.pdf

  2. The maximum length for the file names are 62 chars. Move your code to a short path(ie. C:\robots\2007).

In the long run, it will be beneficial to make one of these switches. You can use my suggestion above until you have something like this, but you do not and cannot use that during an actual competition.