View Single Post
  #4   Spotlight this post!  
Unread 19-01-2010, 06:57
Diserasta Diserasta is offline
4 Hours of sleep a day on avg.
AKA: Samouil
FRC #3132 (Thunder Down Under)
 
Join Date: Nov 2009
Rookie Year: 2010
Location: Sydney
Posts: 9
Diserasta is an unknown quantity at this point
Re: Problem Switching Between Modes | Powerhawks Team 1111

Doesn't the default code for the autonomous mode use a jumper to decide whether it's in autonomous or not. You could just change that so that when autonomous finishes running (or a set a timer for 15 seconds) it switches to teleop.

Hope this helps.
__________________
Code:
In .h
RobotDrive *ted;
RobotDrive *tedDrive;

In .cpp
DriveTrain::DriveTrain (RobotDrive *ted){
tedDrive = &*ted;
}
Yo dawg, I heard you like pointers, so I put a pointer in yo pointer, so you can de-reference your pointer while you point to yo pointer.