SPQR-Team1-2020/src/main.cpp

33 lines
585 B
C++
Raw Normal View History

2019-10-09 14:59:27 +02:00
#include <Arduino.h>
2019-12-02 17:25:22 +01:00
2020-03-12 11:14:13 +01:00
#include "test_menu.h"
#include "behaviour_control/status_vector.h"
#include "position/positionsys_zone.h"
#include "sensors/sensors.h"
#include "strategy_roles/games.h"
2019-12-05 12:53:14 +01:00
void setup() {
delay(1500);
2020-01-27 17:05:39 +01:00
DEBUG.begin(9600);
2020-02-05 19:46:57 +01:00
initStatusVector();
initSensors();
initGames();
2020-02-17 19:14:48 +01:00
delay(500);
}
void loop() {
updateSensors();
2020-03-12 11:14:13 +01:00
/* TestMenu testmenu;
testmenu.testMenu();
goalie->play(role==1);
keeper->play(role==0);
2020-03-12 11:14:13 +01:00
*/
drive->m1->test();
2020-02-05 19:46:57 +01:00
// Last thing to do: movement and update status vector
drive->drivePrepared();
2020-02-05 19:46:57 +01:00
updateStatusVector();
}