Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Don't reset CTRE settings
Browse files Browse the repository at this point in the history
Overrides zero'd magnetic offsets and gyro calibrations
  • Loading branch information
srimanachanta committed Dec 15, 2023
1 parent 4e74733 commit 07d8170
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class GyroIOPigeon2 implements GyroIO {
public GyroIOPigeon2(int id) {
this.m_gyro = new Pigeon2(id);

this.m_gyro.getConfigurator().apply(new Pigeon2Configuration());
this.m_gyro.getConfigurator().setYaw(0.0);

this.m_roll = this.m_gyro.getRoll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public ModuleIOSparkMax(int driveID, int turnID, int encoderID) {

this.m_driveMotor.restoreFactoryDefaults();
this.m_turnMotor.restoreFactoryDefaults();
this.m_absoluteEncoder.getConfigurator().apply(new CANcoderConfiguration());

this.m_driveMotor.setCANTimeout(250);
this.m_turnMotor.setCANTimeout(250);
Expand Down

0 comments on commit 07d8170

Please sign in to comment.