roles: go back to normal striker

pull/1/head
EmaMaker 2021-01-31 18:42:32 +01:00
parent dcdb5ac9d3
commit aaa883b250
4 changed files with 11 additions and 10 deletions

View File

@ -7,10 +7,10 @@
#define TILT_MULT 1.8
#define TILT_DIST 170
#define CATCH_DIST 150
#define GOALIE_ATKSPD_LAT 320 //255
#define GOALIE_ATKSPD_BAK 350
#define GOALIE_ATKSPD_FRT 345
#define GOALIE_ATKSPD_STRK 355
#define GOALIE_ATKSPD_LAT 150 //255
#define GOALIE_ATKSPD_BAK 150
#define GOALIE_ATKSPD_FRT 150
#define GOALIE_ATKSPD_STRK 150
#define GOALIE_ATKDIR_PLUSANG1 20
#define GOALIE_ATKDIR_PLUSANG2 35
#define GOALIE_ATKDIR_PLUSANG3 40

View File

@ -27,6 +27,9 @@ void setup() {
delay(500);
drive->prepareDrive(0,0,0);
//Startup sound
tone(BUZZER, 220.00, 250);
}
@ -34,12 +37,10 @@ void loop() {
updateSensors();
if(DEBUG.available()) testmenu->testMenu();
striker_test->play(1);
// striker->play(role==1);
// striker_test->play(1);
striker->play(1);
// keeper->play(role==0);
// drive->prepareDrive(0,0,0);
// Last thing to do: movement and update status vector
drive->drivePrepared();
updateStatusVector();

View File

@ -11,7 +11,7 @@ void initGames(){
vector<DataSource*> lIn = { new DataSource(S1I, true), new DataSource(S2I, true), new DataSource(S3I, true), new DataSource(S4I, true) };
vector<DataSource*> lOut = { new DataSource(S1O, true), new DataSource(S2O, true), new DataSource(S3O, true), new DataSource(S4O, true) };
striker_test = new StrikerTest(new LineSystemEmpty(), new PositionSystemEmpty());
// striker_test = new StrikerTest(new LineSysCamera(lIn, lOut), new PositionSysCamera());
striker = new Striker(new LineSysCamera(lIn, lOut), new PositionSysCamera());
keeper = new Keeper(new LineSysCamera(lOut, lOut), new PositionSysCamera());
}

View File

@ -20,7 +20,7 @@ void StrikerTest::init(){
void StrikerTest::realPlay(){
if(CURRENT_DATA_READ.ballSeen) striker();
else drive->prepareDrive(0,0,0);
else ps->goCenter();
}
void StrikerTest::striker() {