Add mag bias estimator to CAN GPS units with IMUs

- run `sensors` hub to process sensor_mag and publish vehicle_magnetometer
 - update uavcannode to use vehicle_magnetometer
This commit is contained in:
alexklimaj
2022-06-17 18:36:55 -06:00
committed by Daniel Agar
parent 73f45fee6e
commit 4cc3e78558
12 changed files with 87 additions and 12 deletions
+11
View File
@@ -96,6 +96,17 @@ then
gyro_calibration start
fi
if param compare -s MBE_ENABLE 1
then
# conservative mag bias estimation
param set-default MBE_LEARN_GAIN 5
param set-default IMU_GYRO_CUTOFF 20
mag_bias_estimator start
fi
param set-default SENS_MAG_RATE 100
sensors start
uavcannode start