Skip to content

Commit

Permalink
Change odometry thread start call location
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatankar6 committed Apr 13, 2024
1 parent b190866 commit 9c4eddf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/drivetrain/Drivetrain.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class Drivetrain extends SubsystemBase {
public static final double kDriveBaseRadius =
Math.hypot(kTrackwidthMeters / 2.0, kWheelbaseMeters / 2.0);
private static final LoggedTunableNumber speakerRangeMeters =
new LoggedTunableNumber("Drivetrain/InRangeRadius", 5.0);
new LoggedTunableNumber("Drivetrain/InRangeRadius", 7.0);
private final double kMaxLinearSpeedMetersPerSecond = Units.feetToMeters(16);
private final double kMaxAngularSpeedRadPerSec = 2 * Math.PI;
private final double kDeadband = 0.1;
Expand Down Expand Up @@ -92,7 +92,6 @@ public Drivetrain(
m_modules[1] = new Module(frontRightModuleIO, 1);
m_modules[2] = new Module(backLeftModuleIO, 2);
m_modules[3] = new Module(backRightModuleIO, 3);
PhoenixOdometryThread.getInstance().start();

m_sysIdRoutineDrive =
new SysIdRoutine(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static PhoenixOdometryThread getInstance() {
private PhoenixOdometryThread() {
setName("PhoenixOdometryThread");
setDaemon(true);
start();
}

@Override
Expand Down

0 comments on commit 9c4eddf

Please sign in to comment.