View Single Post
  #2   Spotlight this post!  
Unread 22-01-2005, 11:52
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
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
	}
}
If you put your autonomous code where it says "Autonomous code goes here", your code will execute in autonomous mode, and switch to driver control at the appropriate time. Good luck with your programming.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_