Skip to content

Commit

Permalink
Merge pull request #15 from applepi-2067/gordon/update/gyro_id
Browse files Browse the repository at this point in the history
update gyro CAN ID and remove TalonSRX
  • Loading branch information
ApplePiRobot authored Jan 27, 2024
2 parents 11327bb + 42f19ea commit b889a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/constants/RobotMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class Drivetrain {
public static final int[] STEER = {5, 6, 7, 8};
public static final int[] CANCoder = {1, 2, 3, 4};

public static final int GYRO = 9;
public static final int GYRO = 1;
}
}
}
4 changes: 1 addition & 3 deletions src/main/java/frc/robot/subsystems/Drivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import java.text.DecimalFormat;

import com.ctre.phoenix.motorcontrol.can.TalonSRX;
import com.ctre.phoenix.sensors.PigeonIMU;

import edu.wpi.first.math.geometry.Pose2d;
Expand Down Expand Up @@ -70,8 +69,7 @@ private Drivetrain() {
}

// Create and reset gyro.
TalonSRX gyroController = new TalonSRX(RobotMap.canIDs.Drivetrain.GYRO);
m_gyro = new PigeonIMU(gyroController);
m_gyro = new PigeonIMU(RobotMap.canIDs.Drivetrain.GYRO);
resetGyro();

// Odometry.
Expand Down

0 comments on commit b889a19

Please sign in to comment.