2019-10-09 14:59:27 +02:00
|
|
|
#include <Arduino.h>
|
2019-12-02 17:25:22 +01:00
|
|
|
|
|
|
|
#include "game.h"
|
2019-12-05 12:53:14 +01:00
|
|
|
|
2019-12-05 13:31:21 +01:00
|
|
|
void setup() {
|
|
|
|
delay(500);
|
|
|
|
|
|
|
|
DEBUG.begin(9600);
|
|
|
|
initSensors();
|
|
|
|
delay(2000);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void loop() {
|
|
|
|
updateSensors();
|
2019-12-05 14:29:16 +01:00
|
|
|
|
2019-12-05 13:31:21 +01:00
|
|
|
goalie->goalie();
|
2019-12-05 14:29:16 +01:00
|
|
|
linesCtrl->update();
|
2019-12-05 13:31:21 +01:00
|
|
|
|
2019-12-05 14:29:16 +01:00
|
|
|
// Last thing to do: movement
|
|
|
|
drive->drivePrepared();
|
2019-12-05 13:31:21 +01:00
|
|
|
}
|