Add force param_find for missing sensor parameters to fix load/save loss of calibration data

This commit is contained in:
Anton Matosov 2016-11-15 00:42:36 -08:00 committed by Lorenz Meier
parent e284a28e25
commit 96fc66ff7d
1 changed files with 18 additions and 0 deletions

View File

@ -747,6 +747,24 @@ Sensors::Sensors() :
(void)param_find("CAL_MAG1_ROT");
(void)param_find("CAL_MAG2_ROT");
(void)param_find("CAL_MAG_SIDES");
(void)param_find("CAL_MAG1_XOFF");
(void)param_find("CAL_MAG1_XSCALE");
(void)param_find("CAL_MAG1_YOFF");
(void)param_find("CAL_MAG1_YSCALE");
(void)param_find("CAL_MAG1_ZOFF");
(void)param_find("CAL_MAG1_ZSCALE");
(void)param_find("CAL_GYRO1_XOFF");
(void)param_find("CAL_GYRO1_XSCALE");
(void)param_find("CAL_GYRO1_YOFF");
(void)param_find("CAL_GYRO1_YSCALE");
(void)param_find("CAL_GYRO1_ZOFF");
(void)param_find("CAL_GYRO1_ZSCALE");
(void)param_find("CAL_ACC1_XOFF");
(void)param_find("CAL_ACC1_XSCALE");
(void)param_find("CAL_ACC1_YOFF");
(void)param_find("CAL_ACC1_YSCALE");
(void)param_find("CAL_ACC1_ZOFF");
(void)param_find("CAL_ACC1_ZSCALE");
(void)param_find("SYS_PARAM_VER");
(void)param_find("SYS_AUTOSTART");
(void)param_find("SYS_AUTOCONFIG");