Merge branch 'main' of https://git.demerso.net/pls5618/2024/robot
This commit is contained in:
commit
bd64e16333
@ -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{
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user