get alliance -> dans initialise
This commit is contained in:
@@ -39,7 +39,8 @@ public class Lancer extends Command {
|
||||
public void initialize() {
|
||||
if(limeLight3G.getV()){}
|
||||
pidController = new PIDController(0.0007, 0,0, 0.001);
|
||||
timer.reset();
|
||||
timer.reset();
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
|
||||
@@ -42,7 +42,9 @@ public class Limelighter extends Command {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
public void initialize() {
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
|
||||
@@ -47,7 +47,9 @@ public class GrimperMur extends Command {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
public void initialize() {
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
|
||||
@@ -47,7 +47,9 @@ public class GrimperReservoir extends Command {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
public void initialize() {
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
|
||||
@@ -38,6 +38,7 @@ public class LancerAuto extends Command {
|
||||
public void initialize() {
|
||||
pidController = new PIDController(0.0007, 0, 0, 0.001);
|
||||
timer.reset();
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
|
||||
@@ -42,7 +42,9 @@ public class LimelighterAuto extends Command {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
public void initialize() {
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
|
||||
@@ -37,7 +37,9 @@ public class TournerVersMur extends Command {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
public void initialize() {
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
|
||||
@@ -37,7 +37,9 @@ public class TournerVersReservoir extends Command {
|
||||
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {}
|
||||
public void initialize() {
|
||||
alliance = DriverStation.getAlliance();
|
||||
}
|
||||
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user