From 0d1ea1c1c240967f99f2d8bafd1959806aefebf6 Mon Sep 17 00:00:00 2001 From: Erki Date: Sun, 14 Nov 2021 01:31:12 +0200 Subject: [PATCH] Peripherals: format ICM file --- Peripherals/Inc/peripherals_imu_icm.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Peripherals/Inc/peripherals_imu_icm.hpp b/Peripherals/Inc/peripherals_imu_icm.hpp index 76f71f8..f8afa95 100644 --- a/Peripherals/Inc/peripherals_imu_icm.hpp +++ b/Peripherals/Inc/peripherals_imu_icm.hpp @@ -72,17 +72,17 @@ public: // rate = 1KHz, temp filter = 42 hal::delay(10); - const std::uint8_t new_gyro_conf = (std::uint32_t(scale_gyro_) << 3); + const std::uint8_t new_gyro_conf = (std::uint32_t(scale_gyro_) << 3); registers.writeRegister(Registers_::GYRO_CONFIG & Registers_::WRITE_MASK, - new_gyro_conf); + new_gyro_conf); - const std::uint8_t new_accel_config = (std::uint32_t(scale_accel_) << 3); + const std::uint8_t new_accel_config = (std::uint32_t(scale_accel_) << 3); registers.writeRegister(Registers_::ACCEL_CONFIG & Registers_::WRITE_MASK, - new_accel_config); + new_accel_config); -// setGyroscopeScale(scale_gyro_); -// -// setAccelerometerScale(scale_accel_); + // setGyroscopeScale(scale_gyro_); + // + // setAccelerometerScale(scale_accel_); // ACCEL_FCHOICE_B = 0, A_DLPF_CFG = 3 filter=44.8/61.5 rate=1KHz registers.writeRegister(Registers_::ACCEL_CONFIG2 & Registers_::WRITE_MASK,