implement test menu in main loop
parent
4ea08fa700
commit
0f913d8ad1
|
@ -7,6 +7,9 @@
|
||||||
#include "sensors/sensors.h"
|
#include "sensors/sensors.h"
|
||||||
#include "strategy_roles/games.h"
|
#include "strategy_roles/games.h"
|
||||||
#include "vars.h"
|
#include "vars.h"
|
||||||
|
#include "test_menu.h"
|
||||||
|
|
||||||
|
TestMenu* testmenu;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
delay(1500);
|
delay(1500);
|
||||||
|
@ -17,6 +20,7 @@ void setup() {
|
||||||
cosins[i] = (float) cos((i*3.14/180));
|
cosins[i] = (float) cos((i*3.14/180));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testmenu = new TestMenu();
|
||||||
initStatusVector();
|
initStatusVector();
|
||||||
initSensors();
|
initSensors();
|
||||||
initGames();
|
initGames();
|
||||||
|
@ -27,8 +31,8 @@ void setup() {
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
updateSensors();
|
updateSensors();
|
||||||
//TestMenu testmenu;
|
if(DEBUG.available()) testmenu->testMenu();
|
||||||
//testmenu.testMenu();
|
|
||||||
goalie->play(role==1);
|
goalie->play(role==1);
|
||||||
keeper->play(role==0);
|
keeper->play(role==0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue