ArduCopter: fixes for AP_InertialSenor_UserInteract

This commit is contained in:
Pat Hickey 2012-12-19 14:28:10 -08:00 committed by Andrew Tridgell
parent 6437bd3a08
commit 1878290510
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}