Skip to content
Snippets Groups Projects
Commit c11ea917 authored by Andrew Tridgell's avatar Andrew Tridgell Committed by Pat Hickey
Browse files

test: fixed test code for HIL build

parent 8e9851c2
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,13 @@ static int8_t test_radio(uint8_t argc, const Menu::arg *argv);
static int8_t test_gps(uint8_t argc, const Menu::arg *argv);
//static int8_t test_tri(uint8_t argc, const Menu::arg *argv);
//static int8_t test_adc(uint8_t argc, const Menu::arg *argv);
#if HIL_MODE != HIL_MODE_ATTITUDE
static int8_t test_ins(uint8_t argc, const Menu::arg *argv);
static int8_t test_imu(uint8_t argc, const Menu::arg *argv);
static int8_t test_dcm_eulers(uint8_t argc, const Menu::arg *argv);
#endif // HIL_MODE
//static int8_t test_dcm(uint8_t argc, const Menu::arg *argv);
//static int8_t test_omega(uint8_t argc, const Menu::arg *argv);
static int8_t test_battery(uint8_t argc, const Menu::arg *argv);
......@@ -64,9 +68,11 @@ const struct Menu::command test_menu_commands[] PROGMEM = {
#if HIL_MODE != HIL_MODE_ATTITUDE && CONFIG_ADC == ENABLED
// {"adc", test_adc},
#endif
#if HIL_MODE != HIL_MODE_ATTITUDE
{"ins", test_ins},
{"imu", test_imu},
{"dcm", test_dcm_eulers},
#endif
//{"omega", test_omega},
{"battery", test_battery},
{"tune", test_tuning},
......@@ -423,6 +429,7 @@ static int8_t
#endif
*/
#if HIL_MODE != HIL_MODE_ATTITUDE
static int8_t
test_ins(uint8_t argc, const Menu::arg *argv)
{
......@@ -459,8 +466,10 @@ test_ins(uint8_t argc, const Menu::arg *argv)
}
}
}
#endif // HIL_MODE
#if HIL_MODE != HIL_MODE_ATTITUDE
/*
test the IMU interface
*/
......@@ -495,8 +504,10 @@ test_imu(uint8_t argc, const Menu::arg *argv)
}
return 0;
}
#endif // HIL_MODE
#if HIL_MODE != HIL_MODE_ATTITUDE
/*
test the DCM code, printing Euler angles
*/
......@@ -561,6 +572,7 @@ test_dcm_eulers(uint8_t argc, const Menu::arg *argv)
}
}
}
#endif // HIL_MODE
static int8_t
test_gps(uint8_t argc, const Menu::arg *argv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment