Thread: Robot Drive
View Single Post
  #5   Spotlight this post!  
Unread 10-02-2012, 09:07
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Robot Drive

I think he intends to do tank drive with two joysticks.

I would however recommend saving stick.getY into a temporary variable first and then write it to the motors. Since this is a real time system, the value of the joystick may change between the two reads and then you will be writing different speeds to the front and back wheels. Probably not a huge issue, but may cause excess wear on the drive train.
Reply With Quote