disable keeper for now
as it looks like sometimes it blocks code executionpull/1/head
parent
6fc65c7331
commit
49db5ff2d1
14
src/main.cpp
14
src/main.cpp
|
@ -44,26 +44,24 @@ void setup() {
|
||||||
tone(BUZZER, 350.00, 250);
|
tone(BUZZER, 350.00, 250);
|
||||||
|
|
||||||
drive->prepareDrive(0,0,0);
|
drive->prepareDrive(0,0,0);
|
||||||
|
|
||||||
pinMode(35, INPUT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
DEBUG.println(digitalReadFast(35));
|
DEBUG.println("aaaa");
|
||||||
updateSensors();
|
updateSensors();
|
||||||
|
|
||||||
drive->resetDrive();
|
drive->resetDrive();
|
||||||
|
|
||||||
striker_condition = role == HIGH || ((Keeper*)keeper)->shouldStrike;
|
striker_condition = role == HIGH;
|
||||||
keeper_condition = role == LOW;
|
keeper_condition = role == LOW;
|
||||||
|
|
||||||
// striker->play(striker_condition);
|
striker->play(striker_condition);
|
||||||
// keeper->play(keeper_condition);
|
// keeper->play(keeper_condition);
|
||||||
precision_shooter->play(1);
|
// precision_shooter->play(1);
|
||||||
|
|
||||||
testmenu->testMenu();
|
// testmenu->testMenu();
|
||||||
|
|
||||||
// Last thing to do: movement and update status vector
|
// // Last thing to do: movement and update status vector
|
||||||
drive->drivePrepared();
|
drive->drivePrepared();
|
||||||
updateStatusVector();
|
updateStatusVector();
|
||||||
}
|
}
|
Loading…
Reference in New Issue