Added CLI level command

This commit is contained in:
Jason Short 2012-06-11 23:01:25 -07:00
parent 8e570fa2d0
commit 29bb39f580

View File

@ -7,6 +7,7 @@ static int8_t setup_radio (uint8_t argc, const Menu::arg *argv);
static int8_t setup_show (uint8_t argc, const Menu::arg *argv);
static int8_t setup_factory (uint8_t argc, const Menu::arg *argv);
static int8_t setup_flightmodes (uint8_t argc, const Menu::arg *argv);
static int8_t setup_level (uint8_t argc, const Menu::arg *argv);
static int8_t setup_erase (uint8_t argc, const Menu::arg *argv);
static int8_t setup_compass (uint8_t argc, const Menu::arg *argv);
static int8_t setup_declination (uint8_t argc, const Menu::arg *argv);
@ -19,6 +20,7 @@ static const struct Menu::command setup_menu_commands[] PROGMEM = {
{"reset", setup_factory},
{"radio", setup_radio},
{"modes", setup_flightmodes},
{"level", setup_level},
{"compass", setup_compass},
{"declination", setup_declination},
{"battery", setup_batt_monitor},
@ -288,6 +290,13 @@ setup_erase(uint8_t argc, const Menu::arg *argv)
return 0;
}
static int8_t
setup_level(uint8_t argc, const Menu::arg *argv)
{
startup_IMU_ground(true);
return 0;
}
static int8_t
setup_compass(uint8_t argc, const Menu::arg *argv)
{