Fix IMU ang MAG, added MAG chart to svelte
This commit is contained in:
@@ -106,6 +106,7 @@ class IMU : public SensorBase<IMUAnglesMsg> {
|
||||
_imu->setFullScale((ICM_20948_Internal_Acc | ICM_20948_Internal_Gyr), myFSS);
|
||||
if (_imu->status != ICM_20948_Stat_Ok){ return false; }
|
||||
// TODO: Setup low pass filter config
|
||||
_msg.success = true;
|
||||
#endif
|
||||
return _msg.success;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ class Magnetometer : public SensorBase<MagnetometerMsg> {
|
||||
|
||||
_mag->startupMagnetometer();
|
||||
if (_mag->status != ICM_20948_Stat_Ok){ return false; }
|
||||
_msg.success = true;
|
||||
#elif FT_ENABLED(USE_HMC5883)
|
||||
_msg.success = _mag.begin();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user