|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
FIRST Time Autonomus Help
Hello peeps first time doing the autonomous in first but doing it for really long now. have a couple question that you guys might be ables to help me on
1. Do we need something on the robot or the controls that is like a switch that will allow you to switch to human controls ones the autonomous is done, or once it is done the control is now turn over to the human or how does the robot know to switch from the autonomous to Drivers Control 2. And how do i set up autonomous so that the when the period starts it actually works. Yes i know someone reading this say what they guy being doing in first but i was mechanical and website in HS and wiring not autonomous thank you |
|
#2
|
||||
|
||||
|
Re: FIRST Time Autonomus Help
1. Just before a match, you will find a cable at the driver station that plugs into the Competition port on your OI. This is how FIRST tells your robot to go into autonomous at the start of a match, and to switch to driver control later on. FIRST can also disable your robot remotely if they deem it necessary.
2. In user_routines_fast.c, you will find the following block of code: Code:
while (autonomous_mode)
{
if (statusflag.NEW_SPI_DATA)
{
Getdata(&rxdata); // bad things will happen if you move or delete this
// Autonomous code goes here.
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
Putdata(&txdata); // even more bad things will happen if you mess with this
}
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Aspartame | shyra1353 | Chit-Chat | 8 | 20-01-2004 22:41 |
| Actual execution time measurement | Dan | Technical Discussion | 5 | 24-03-2003 11:36 |
| time | archiver | 2000 | 3 | 23-06-2002 22:58 |
| Just in time for Nats! | DanL | General Forum | 0 | 22-04-2002 21:53 |
| need help with time zone! | Ken Leung | General Forum | 6 | 25-06-2001 12:44 |