// loop void loop() { int16_t value; // display help hal.console->println("Press 't' to run motor orders test, 's' to run stability patch test. Be careful the motors will spin!"); // wait for user to enter something while( !hal.console->available() ) { hal.scheduler->delay(20); } // get character from user value = hal.console->read(); // test motors if (value == 't' || value == 'T') { motor_order_test(); } if (value == 's' || value == 'S') { stability_test(); } }
// loop void loop() { int16_t value; motor_order_test(); }