diff --git a/src/boards/Parafoil/Configs/SensorsConfig.h b/src/boards/Parafoil/Configs/SensorsConfig.h index 105e3aef60851ac52820dab025302ecd6a3a20df..43599a6d24db86d0873ea352cea74d5fd10c9901 100644 --- a/src/boards/Parafoil/Configs/SensorsConfig.h +++ b/src/boards/Parafoil/Configs/SensorsConfig.h @@ -48,7 +48,7 @@ constexpr Boardcore::BMX160Config::OutputDataRate BMX160_ACC_GYRO_ODR_ENUM = Boardcore::BMX160Config::OutputDataRate::HZ_200; constexpr unsigned int BMX160_MAG_ODR = 100; constexpr Boardcore::BMX160Config::OutputDataRate BMX160_MAG_ODR_ENUM = - Boardcore::BMX160Config::OutputDataRate::HZ_200; + Boardcore::BMX160Config::OutputDataRate::HZ_100; constexpr unsigned int BMX160_TEMP_DIVIDER = 1000; diff --git a/src/boards/Parafoil/Sensors/Sensors.cpp b/src/boards/Parafoil/Sensors/Sensors.cpp index a9d3e9b7cbd3b9e44e13bc6a30dce952a4136161..ca8ac9555cd4792c49769263cfeb6e83d54990f2 100644 --- a/src/boards/Parafoil/Sensors/Sensors.cpp +++ b/src/boards/Parafoil/Sensors/Sensors.cpp @@ -123,9 +123,7 @@ Sensors::Sensors(TaskScheduler* sched) : scheduler(sched), sensorsCounter(0) {} bool Sensors::start() { // Read the magnetometer calibration from predefined file - miosix::GpioPin cs(GPIOG_BASE, 7); - cs.mode(miosix::Mode::OUTPUT); - cs.high(); + // Init all the sensors bmx160Init(); bmx160WithCorrectionInit(); @@ -133,7 +131,7 @@ bool Sensors::start() h3lisInit(); lps22Init(); ubxGpsInit(); - ads131Init(); + // ads131Init(); internalADCInit(); batteryVoltageInit();