Skip to content

Commit

Permalink
Fix set speed
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeves750 committed Feb 1, 2020
1 parent 195ecfb commit 17c13dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/Drivetrain.java
@@ -1,5 +1,6 @@
package frc.robot;

import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.can.TalonFX;

public class Drivetrain {
Expand Down Expand Up @@ -53,7 +54,7 @@ public class Drivetrain {
*/
public void driveLeft(double speed){
double sp = deadband(speed);
leftFalcon.set(sp);
leftFalcon.set(ControlMode.PercentOutput, sp);
}

/**
Expand All @@ -63,7 +64,7 @@ public void driveLeft(double speed){
*/
public void driveRight(double speed){
double sp = deadband(speed);
rightFalcon.set(sp);
rightFalcon.set(ControlMode.PercentOutput, sp);
}

/**
Expand Down

0 comments on commit 17c13dd

Please sign in to comment.