[wpilib] Rename OnboardIMU constants to all caps

This commit is contained in:
Peter Johnson
2026-03-17 16:45:25 -07:00
parent e73e2e99f7
commit 3776f8a1ef
41 changed files with 72 additions and 72 deletions

View File

@@ -30,7 +30,7 @@ class Robot : public wpi::TimedRobot {
private:
wpi::units::meters_per_second_squared_t m_prevXAccel = 0.0_mps_sq;
wpi::units::meters_per_second_squared_t m_prevYAccel = 0.0_mps_sq;
wpi::OnboardIMU m_accelerometer{wpi::OnboardIMU::MountOrientation::kFlat};
wpi::OnboardIMU m_accelerometer{wpi::OnboardIMU::MountOrientation::FLAT};
};
#ifndef RUNNING_WPILIB_TESTS

View File

@@ -27,7 +27,7 @@ class Robot : public wpi::TimedRobot {
}
private:
wpi::OnboardIMU m_accelerometer{wpi::OnboardIMU::MountOrientation::kFlat};
wpi::OnboardIMU m_accelerometer{wpi::OnboardIMU::MountOrientation::FLAT};
wpi::math::LinearFilter<wpi::units::meters_per_second_squared_t>
m_xAccelFilter = wpi::math::LinearFilter<
wpi::units::meters_per_second_squared_t>::MovingAverage(10);

View File

@@ -35,7 +35,7 @@ class Robot : public wpi::TimedRobot {
private:
// Creates an object for the Systemcore IMU
wpi::OnboardIMU m_IMU{wpi::OnboardIMU::MountOrientation::kFlat};
wpi::OnboardIMU m_IMU{wpi::OnboardIMU::MountOrientation::FLAT};
};
#ifndef RUNNING_WPILIB_TESTS