This commit is contained in:
samuel desharnais 2024-02-23 12:48:28 -05:00
commit bd64e16333
4 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ public class Lancer extends Command {
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override
public void execute() { public void execute() {
if(limelight.getv()){ if(limelight.getv()==1){
lanceur.lancerspeaker(); lanceur.lancerspeaker();
} }
} }

View File

@ -29,7 +29,7 @@ public class Lancerampli extends Command {
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override
public void execute() { public void execute() {
if(limelight.getv()){ if(limelight.getv()==1){
lanceur.lanceramp(); lanceur.lanceramp();
} }

View File

@ -27,8 +27,8 @@ public class Limelight_tracker extends Command {
@Override @Override
public void execute() { public void execute() {
if (tracker.getv()){ if (tracker.getv()==1){
drive.drive(0,0, tracker.getx()); drive.drive(0,0, tracker.getx()/30);
} }
else{ else{

View File

@ -34,8 +34,8 @@ public class Limelight extends SubsystemBase {
public double gety(){ public double gety(){
return ty.getDouble(0); return ty.getDouble(0);
} }
public boolean getv(){ public double getv(){
return tv.getBoolean(false); return tv.getDouble(0);
} }
public void setpipeline(){ public void setpipeline(){
pipeline.setNumber(0); pipeline.setNumber(0);