View Single Post
  #3   Spotlight this post!  
Unread 04-02-2014, 21:37
xForceDee's Avatar
xForceDee xForceDee is offline
Registered User
AKA: Bart Kerfeld
FRC #4239 (Warpspeed)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Minnesota
Posts: 58
xForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to behold
Re: How to Make the Robot Drive Forward in Autonomous

I think this should work...

Add this method to Chassis.java
Code:
public void driveAuto(double speed) {
     drive.setLeftRightMotorOutputs(speed, -speed); //The - may be wrong
}
Then make a new command which requires chassis and calls this method. If your auton needs to be more sophisticated than drive forward, you can always add the command to a command group. Anyway, this is just one solution of the many out there.

Last edited by xForceDee : 04-02-2014 at 22:19. Reason: Be sure to add double in the parameter (getting too used to python)
Reply With Quote