ArduPlane: fixes for AP_InertialSensor_UserInteract
This commit is contained in:
parent
1878290510
commit
5231e5a959
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user