j
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
package frc.robot.subsystems;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
||||
import edu.wpi.first.wpilibj.DigitalInput;
|
||||
@ -24,8 +23,16 @@ ShuffleboardLayout limitswitchgratte = Shuffleboard.getTab("teb")
|
||||
private DigitalInput limithg = new DigitalInput(Constants.limithg);
|
||||
private DigitalInput limitbd = new DigitalInput(Constants.limitbd);
|
||||
private DigitalInput limitbg = new DigitalInput(Constants.limitbg);
|
||||
public boolean baiser;
|
||||
|
||||
public boolean baiser;
|
||||
boolean enHaut = true;
|
||||
public void setenHaut(boolean enHaut){
|
||||
this.enHaut = enHaut;
|
||||
}
|
||||
public boolean getenHaut(){
|
||||
return enHaut;
|
||||
|
||||
}
|
||||
|
||||
public boolean hautd(){
|
||||
return limithd.get();
|
||||
}
|
||||
@ -34,13 +41,13 @@ public boolean baiser;
|
||||
return limithg.get();
|
||||
}
|
||||
|
||||
public boolean basd(int i, String string){
|
||||
public boolean basd(){
|
||||
return limitbd.get();
|
||||
}
|
||||
public boolean basg(){
|
||||
return limitbg.get();
|
||||
}
|
||||
/** Creates a new Gratte. */
|
||||
|
||||
public Gratte() {
|
||||
limitswitchgratte.add ("limitbd", 0.1);
|
||||
limitswitchgratte.add ("limithg", 0.1);
|
||||
@ -56,11 +63,10 @@ public boolean baiser;
|
||||
Gratteg.set(-vitesse);
|
||||
}
|
||||
@Override
|
||||
public void periodic() {
|
||||
|
||||
}
|
||||
|
||||
public boolean basd() {
|
||||
return false;
|
||||
}
|
||||
public void periodic(){
|
||||
limitswitchgratte.add ("limitbd", 0.1);
|
||||
limitswitchgratte.add ("limithg", 0.1);
|
||||
limitswitchgratte.add ("limithd", 0.1);
|
||||
limitswitchgratte.add ("limitbg", 0.1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user