mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
InertialSensor: add reboot option in MPU6000 test
This commit is contained in:
parent
212728be34
commit
0adc4afcb5
@ -64,7 +64,8 @@ void loop(void)
|
||||
" c) calibrate accelerometers\r\n"
|
||||
" d) display offsets and scaling\r\n"
|
||||
" l) level (capture offsets from level)\r\n"
|
||||
" t) test"));
|
||||
" t) test\r\n"
|
||||
" r) reboot"));
|
||||
|
||||
// wait for user input
|
||||
while( !hal.console->available() ) {
|
||||
@ -92,6 +93,10 @@ void loop(void)
|
||||
if( user_input == 't' || user_input == 'T' ) {
|
||||
run_test();
|
||||
}
|
||||
|
||||
if( user_input == 'r' || user_input == 'R' ) {
|
||||
hal.scheduler->reboot();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user