diff --git a/src/MockupMain/Configs/SensorsConfig.h b/src/MockupMain/Configs/SensorsConfig.h index cbabea3652ca82cf0eab6235718de6b2f33cd3ca..132f19f80590d075daebbb215f50456163c2b61f 100644 --- a/src/MockupMain/Configs/SensorsConfig.h +++ b/src/MockupMain/Configs/SensorsConfig.h @@ -87,7 +87,7 @@ constexpr auto ODR = Boardcore::LPS22DF::ODR_50; namespace UBXGPS { constexpr auto ENABLED = true; -constexpr auto SAMPLING_RATE = 10_khz; +constexpr auto SAMPLING_RATE = 10_hz; } // namespace UBXGPS namespace ADS131M08 diff --git a/src/MockupMain/Sensors/Sensors.cpp b/src/MockupMain/Sensors/Sensors.cpp index f74e2d34caf96dab180a409dbe2187dddb3f07d6..aa0dd85429f902a5b0503736a45b09fe0d6d066f 100644 --- a/src/MockupMain/Sensors/Sensors.cpp +++ b/src/MockupMain/Sensors/Sensors.cpp @@ -350,7 +350,7 @@ void Sensors::ubxGpsInit() ubxgps = std::make_unique<UBXGPSSpi>( getModule<Buses>()->spi1, hwmap::ubxgps::cs::getPin(), spiConfig, - Kilohertz{config::UBXGPS::SAMPLING_RATE}.value()); + Hertz{config::UBXGPS::SAMPLING_RATE}.value()); LOG_INFO(logger, "UBXGPS initialized!"); } diff --git a/src/Parafoil/Configs/SensorsConfig.h b/src/Parafoil/Configs/SensorsConfig.h index 8a59372446b1a660a0d22f33872963d84d7422e5..e0d9bb6c11f2f5dd7663387f7f8e728241a34997 100644 --- a/src/Parafoil/Configs/SensorsConfig.h +++ b/src/Parafoil/Configs/SensorsConfig.h @@ -87,7 +87,7 @@ constexpr auto ODR = Boardcore::LPS22DF::ODR_100; namespace UBXGPS { constexpr auto ENABLED = true; -constexpr auto SAMPLING_RATE = 10_khz; +constexpr auto SAMPLING_RATE = 10_hz; } // namespace UBXGPS namespace ADS131M08 diff --git a/src/Parafoil/Sensors/Sensors.cpp b/src/Parafoil/Sensors/Sensors.cpp index 5d5148c72d415584a495a49465db793112e980bf..90be4ffe79d3beabc9ce1faa3afdafc42ff8705b 100644 --- a/src/Parafoil/Sensors/Sensors.cpp +++ b/src/Parafoil/Sensors/Sensors.cpp @@ -345,7 +345,7 @@ void Sensors::ubxGpsInit() ubxgps = std::make_unique<UBXGPSSpi>( getModule<Buses>()->spi1, hwmap::ubxgps::cs::getPin(), spiConfig, - Kilohertz{config::UBXGPS::SAMPLING_RATE}.value()); + Hertz{config::UBXGPS::SAMPLING_RATE}.value()); LOG_INFO(logger, "UBXGPS initialized!"); }