limelight
This commit is contained in:
@@ -29,7 +29,7 @@ public class Lancer extends Command {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
if(limelight.getv()){
|
||||
if(limelight.getv()==1){
|
||||
lanceur.lancerspeaker();
|
||||
}
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ public class Lancerampli extends Command {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
if(limelight.getv()){
|
||||
if(limelight.getv()==1){
|
||||
lanceur.lanceramp();
|
||||
}
|
||||
|
||||
|
@@ -27,8 +27,8 @@ public class Limelight_tracker extends Command {
|
||||
@Override
|
||||
public void execute() {
|
||||
|
||||
if (tracker.getv()){
|
||||
drive.drive(0,0, tracker.getx());
|
||||
if (tracker.getv()==1){
|
||||
drive.drive(0,0, tracker.getx()/30);
|
||||
|
||||
}
|
||||
else{
|
||||
|
Reference in New Issue
Block a user