Thread: Robot Drive
View Single Post
  #2   Spotlight this post!  
Unread 29-01-2012, 16:55
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Robot Drive

Quote:
Originally Posted by ssirovica View Post
Our team does not use the robot drive method. Instead we use a hand written drive method.

PHP Code:
public void drive(){
                
leftMotor1.set(leftStick.getY());
                
leftMotor2.set(leftStick.getY());
                
rightMotor1.set(-rightStick.getY());
                
rightMotor2.set(-rightStick.getY());

Do we lose any functionality with this hand written method?
You lose arcade drive. I took code that I want from RobotDrive.java and implemented low pass filter on it.
Reply With Quote