From 05b6f4be81f5b644ae69e9f27b0ae24bdf3faec0 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Sun, 11 Dec 2011 15:19:46 -0800 Subject: [PATCH] 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. --- ArduCopter/setup.pde | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduCopter/setup.pde b/ArduCopter/setup.pde index 9c4ab27bc5..5ab067fc29 100644 --- a/ArduCopter/setup.pde +++ b/ArduCopter/setup.pde @@ -245,6 +245,7 @@ setup_motors(uint8_t argc, const Menu::arg *argv) static int8_t setup_accel(uint8_t argc, const Menu::arg *argv) { + imu.init(IMU::COLD_START, delay, &timer_scheduler); imu.init_accel(); print_accel_offsets(); report_imu();