Fix IMU ang MAG, added MAG chart to svelte
This commit is contained in:
@@ -245,6 +245,10 @@
|
||||
angleChart.update('none')
|
||||
}
|
||||
|
||||
if ($features.mag) {
|
||||
updateChartData(magnetometerChart, $imu.heading)
|
||||
}
|
||||
|
||||
if ($features.bmp && tempChart && altitudeChart) {
|
||||
updateChartData(
|
||||
tempChart,
|
||||
|
||||
@@ -60,6 +60,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;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,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