mirror of https://github.com/ArduPilot/ardupilot
ArduCopter CLI: Add imu.init before imu.init_accel for "level"
* Depending on when you entered the CLI, the imu might not be initialized yet, and init_accel would hang.
This commit is contained in:
parent
2e200834e1
commit
8d878a2cae
|
@ -245,6 +245,7 @@ setup_motors(uint8_t argc, const Menu::arg *argv)
|
||||||
static int8_t
|
static int8_t
|
||||||
setup_accel(uint8_t argc, const Menu::arg *argv)
|
setup_accel(uint8_t argc, const Menu::arg *argv)
|
||||||
{
|
{
|
||||||
|
imu.init(IMU::COLD_START, delay, &timer_scheduler);
|
||||||
imu.init_accel();
|
imu.init_accel();
|
||||||
print_accel_offsets();
|
print_accel_offsets();
|
||||||
report_imu();
|
report_imu();
|
||||||
|
|
Loading…
Reference in New Issue