AP_Param: fixed saving of sensor calibration
this fixes the saving of the accel and gyro calibration to EEPROM, which was initially broken by the AP_Param conversion
This commit is contained in:
parent
baac883eb1
commit
718a5b70e3
@ -92,7 +92,7 @@ public:
|
|||||||
//
|
//
|
||||||
// 140: Sensor parameters
|
// 140: Sensor parameters
|
||||||
//
|
//
|
||||||
k_param_IMU_calibration = 140,
|
k_param_imu = 140, // sensor calibration
|
||||||
k_param_battery_monitoring,
|
k_param_battery_monitoring,
|
||||||
k_param_volt_div_ratio,
|
k_param_volt_div_ratio,
|
||||||
k_param_curr_amp_per_volt,
|
k_param_curr_amp_per_volt,
|
||||||
|
@ -142,7 +142,8 @@ static const AP_Param::Info var_info[] PROGMEM = {
|
|||||||
// variables not in the g class which contain EEPROM saved variables
|
// variables not in the g class which contain EEPROM saved variables
|
||||||
GOBJECT(compass, "COMPASS_", Compass),
|
GOBJECT(compass, "COMPASS_", Compass),
|
||||||
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
||||||
GOBJECT(gcs3, "SR3_", GCS_MAVLINK)
|
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
|
||||||
|
GOBJECT(imu, "IMU_", IMU)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
//
|
//
|
||||||
// 130: Sensor parameters
|
// 130: Sensor parameters
|
||||||
//
|
//
|
||||||
k_param_IMU_calibration = 130,
|
k_param_imu = 130, // sensor calibration
|
||||||
k_param_altitude_mix,
|
k_param_altitude_mix,
|
||||||
k_param_airspeed_ratio,
|
k_param_airspeed_ratio,
|
||||||
k_param_ground_temperature,
|
k_param_ground_temperature,
|
||||||
|
@ -123,7 +123,8 @@ static const AP_Param::Info var_info[] PROGMEM = {
|
|||||||
// variables not in the g class which contain EEPROM saved variables
|
// variables not in the g class which contain EEPROM saved variables
|
||||||
GOBJECT(compass, "COMPASS_", Compass),
|
GOBJECT(compass, "COMPASS_", Compass),
|
||||||
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
||||||
GOBJECT(gcs3, "SR3_", GCS_MAVLINK)
|
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
|
||||||
|
GOBJECT(imu, "IMU_", IMU)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user