SPQR-Team1-2020/src/main.cpp

40 lines
594 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 "sensors.h"
#include "games.h"
2019-12-05 12:53:14 +01:00
void setup() {
delay(500);
DEBUG.begin(19600);
initSensors();
initGames();
delay(2000);
}
void loop() {
updateSensors();
2020-01-22 18:52:13 +01:00
<<<<<<< HEAD
2020-01-22 18:51:30 +01:00
//camera->test();
goalie->play(role==1);
2020-01-22 18:51:30 +01:00
keeper->play(role==0);
ball->test();
2019-12-05 14:29:16 +01:00
// Last thing to do: movement
2020-01-22 18:51:30 +01:00
drive->drivePrepared();
2020-01-22 18:52:13 +01:00
=======
// goalie->play(role==1);
// keeper->play(role==0);
2019-12-05 14:29:16 +01:00
// Last thing to do: movement
// drive->drivePrepared();
//Serial.print("ao");
camera->test();
2020-01-22 18:52:13 +01:00
>>>>>>> d534c5b4a8c2064cb43c42f9269b7f0256894ef8
}