Skip to content

Commit

Permalink
Hopefully fixed driving
Browse files Browse the repository at this point in the history
  • Loading branch information
briansemrau committed Mar 1, 2018
1 parent afab7c1 commit f192c13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/org/usfirst/frc/team4737/robot/OI.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public boolean get() {
// User override to take control of driving
new Trigger() {
public boolean get() {
return driver.getThumbstick("LS").Y.get() != 0 || driver.getThumbstick("RS").Y.get() != 0;
return driver.getThumbstick("LS").X.get() != 0 || driver.getAxis("LT").get() != 0
|| driver.getAxis("RT").get() != 0;
}
}.whileActive(new TeleopRacingDrive());

Expand Down
4 changes: 2 additions & 2 deletions src/org/usfirst/frc/team4737/robot/subsystems/Drivetrain.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.usfirst.frc.team4737.robot.subsystems;

import org.usfirst.frc.team4737.robot.RobotMap;
import org.usfirst.frc.team4737.robot.commands.drivetrain.TeleopRacingDrive;
import org.usfirst.frc.team4737.robot.commands.drivetrain.TeleopTankDrive;

import com.ctre.phoenix.motorcontrol.NeutralMode;
Expand Down Expand Up @@ -42,8 +43,7 @@ public Drivetrain() {
}

public void initDefaultCommand() {
// Set the default command for a subsystem here.
setDefaultCommand(new TeleopTankDrive());
setDefaultCommand(new TeleopRacingDrive());
}

public void setBrakeMode() {
Expand Down

0 comments on commit f192c13

Please sign in to comment.