mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: fixes for AP_InertialSenor_UserInteract
This commit is contained in:
parent
6437bd3a08
commit
1878290510
|
@ -1088,7 +1088,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
}
|
||||
if (packet.param5 == 1) {
|
||||
// this blocks
|
||||
ins.calibrate_accel(flash_leds, hal.console);
|
||||
AP_InertialSensor_UserInteractStream interact(hal.console);
|
||||
ins.calibrate_accel(flash_leds, &interact);
|
||||
}
|
||||
result = MAV_RESULT_ACCEPTED;
|
||||
break;
|
||||
|
|
|
@ -287,7 +287,8 @@ setup_accel_scale(uint8_t argc, const Menu::arg *argv)
|
|||
ins.init(AP_InertialSensor::COLD_START,
|
||||
ins_sample_rate,
|
||||
flash_leds);
|
||||
ins.calibrate_accel(flash_leds, cliSerial);
|
||||
AP_InertialSensor_UserInteractStream interact(hal.console);
|
||||
ins.calibrate_accel(flash_leds, &interact);
|
||||
report_ins();
|
||||
return(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue