|
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.
|