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.
@Override
public void execute() {
if(limelight.getv()){
if(limelight.getv()==1){
lanceur.lancerspeaker();
}
}

View File

@ -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();
}

View File

@ -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{

View File

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