|
|
|
@ -425,6 +425,8 @@ static int8_t
@@ -425,6 +425,8 @@ static int8_t
|
|
|
|
|
test_ins(uint8_t argc, const Menu::arg *argv) |
|
|
|
|
{ |
|
|
|
|
//cliSerial->printf_P(PSTR("Calibrating.")); |
|
|
|
|
ahrs.init(); |
|
|
|
|
ahrs.set_fly_forward(true); |
|
|
|
|
ins.init(AP_InertialSensor::COLD_START, |
|
|
|
|
ins_sample_rate, |
|
|
|
|
flash_leds); |
|
|
|
@ -484,6 +486,8 @@ test_mag(uint8_t argc, const Menu::arg *argv)
@@ -484,6 +486,8 @@ test_mag(uint8_t argc, const Menu::arg *argv)
|
|
|
|
|
cliSerial->println_P(PSTR("Compass initialisation failed!")); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
ahrs.init(); |
|
|
|
|
ahrs.set_fly_forward(true); |
|
|
|
|
ahrs.set_compass(&compass); |
|
|
|
|
report_compass(); |
|
|
|
|
|
|
|
|
|