View Single Post
  #9   Spotlight this post!  
Unread 03-04-2011, 13:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Switching Drive System While Driving

tomy, I'm not sure you understand the way a "drive system" works. Are you expecting to call "TankDrive" once and have the robot switch to tank drive, and later call "ArcadeDrive" once and have the robot switch to arcade drive? That's not what the functions do.

The Drive() functions take joystick inputs and mix them around to control motors. You have to call one of them at least ten times a second in order to keep your robot moving. You can decide which to use every time through your Teleop() loop, and you can change which one you use whenever you want to.

I agree with the suggestion to use the Z-axis "throttle" as the selection between Arcade and Tank drive.
Reply With Quote