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.
|
// 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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{
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user