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:
Andrew Tridgell 2012-02-18 10:39:57 +11:00
parent baac883eb1
commit 718a5b70e3
4 changed files with 6 additions and 4 deletions

View File

@ -92,7 +92,7 @@ public:
//
// 140: Sensor parameters
//
k_param_IMU_calibration = 140,
k_param_imu = 140, // sensor calibration
k_param_battery_monitoring,
k_param_volt_div_ratio,
k_param_curr_amp_per_volt,

View File

@ -142,7 +142,8 @@ static const AP_Param::Info var_info[] PROGMEM = {
// variables not in the g class which contain EEPROM saved variables
GOBJECT(compass, "COMPASS_", Compass),
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
GOBJECT(gcs3, "SR3_", GCS_MAVLINK)
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
GOBJECT(imu, "IMU_", IMU)
};

View File

@ -68,7 +68,7 @@ public:
//
// 130: Sensor parameters
//
k_param_IMU_calibration = 130,
k_param_imu = 130, // sensor calibration
k_param_altitude_mix,
k_param_airspeed_ratio,
k_param_ground_temperature,

View File

@ -123,7 +123,8 @@ static const AP_Param::Info var_info[] PROGMEM = {
// variables not in the g class which contain EEPROM saved variables
GOBJECT(compass, "COMPASS_", Compass),
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
GOBJECT(gcs3, "SR3_", GCS_MAVLINK)
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
GOBJECT(imu, "IMU_", IMU)
};