SPQR-Team-2019-REVAMPED/src/main.cpp

32 lines
513 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
#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-02-05 19:46:57 +01:00
goalie->play(role==1);
keeper->play(role==0);
2020-01-22 18:51:30 +01:00
2020-03-09 17:10:22 +01:00
camera->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();
}