tfghjkm
This commit is contained in:
@ -5,6 +5,11 @@
|
||||
package frc.robot.subsystems;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
|
||||
import javax.swing.text.StyledEditorKit.BoldAction;
|
||||
|
||||
import org.apache.commons.collections4.functors.IfClosure;
|
||||
|
||||
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
||||
import edu.wpi.first.wpilibj.DigitalInput;
|
||||
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
|
||||
@ -25,8 +30,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();
|
||||
}
|
||||
@ -35,14 +48,19 @@ 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() {}
|
||||
public Gratte() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void Lever(double vitesse){
|
||||
Gratted.set(vitesse);
|
||||
Gratteg.set(vitesse);
|
||||
@ -52,18 +70,10 @@ public boolean baiser;
|
||||
Gratteg.set(-vitesse);
|
||||
}
|
||||
@Override
|
||||
public void periodic() {
|
||||
teb .add("limithd", 0.1);
|
||||
teb .add("limithg", 0.1);
|
||||
teb .add("limitbd", 0.1);
|
||||
teb .add("limitbg", 0.1);
|
||||
public void periodic(){
|
||||
limitswitchgratte.add ("limitbd", 0.1);
|
||||
limitswitchgratte.add ("limithg", 0.1);
|
||||
limitswitchgratte.add ("limithd", 0.1);
|
||||
limitswitchgratte.add ("limitbg", 0.1);
|
||||
}
|
||||
|
||||
public boolean basd() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user