Skip to content

Commit

Permalink
fieldrelative stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
liulinden committed Jan 23, 2024
1 parent 7b72700 commit 8106ad9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/AutoRotateTo.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void execute() {
ChassisSpeeds speeds = subsystem.getDesiredState();
speeds.omegaRadiansPerSecond=turnspeed;

subsystem.setDesiredState(speeds);
subsystem.setDesiredState(speeds,true);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public class SwerveDriveXboxControl extends Command {
public SwerveDriveXboxControl(SwerveDrivetrain drivetrain, CommandXboxController driverXboxController) {
this.drivetrain = drivetrain;
this.controller = driverXboxController;

//not sure if this code in right place
xboxPID = new PIDController(
this.xboxPID = new PIDController(
ControllerConstants.CONTROLLER_PID_P,
ControllerConstants.CONTROLLER_PID_I,
ControllerConstants.CONTROLLER_PID_D
Expand Down Expand Up @@ -81,7 +79,7 @@ public void execute() {



drivetrain.setDesiredState(speeds);
drivetrain.setDesiredState(speeds, true);

}

Expand Down

0 comments on commit 8106ad9

Please sign in to comment.