mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Rename OnboardIMU constants to all caps
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user