ArduPlane: fixes for AP_InertialSensor_UserInteract

This commit is contained in:
Pat Hickey 2012-12-19 14:31:20 -08:00 committed by Andrew Tridgell
parent 1878290510
commit 5231e5a959

View File

@ -315,7 +315,9 @@ setup_accel_scale(uint8_t argc, const Menu::arg *argv)
ins.init(AP_InertialSensor::COLD_START,
ins_sample_rate,
flash_leds);
if (ins.calibrate_accel(flash_leds, hal.console)) {
AP_InertialSensor_UserInteractStream interact(hal.console);
bool success = ins.calibrate_accel(flash_leds, &interact);
if (success) {
if (g.manual_level == 0) {
cliSerial->println_P(PSTR("Setting MANUAL_LEVEL to 1"));
g.manual_level.set_and_save(1);