This commit is contained in:
parent
a894467291
commit
c637a77410
@ -18,11 +18,9 @@ public class Grimpeur extends SubsystemBase {
|
|||||||
public Grimpeur() {}
|
public Grimpeur() {}
|
||||||
final CANSparkMax grimpeurd = new CANSparkMax(Constants.grimpeurd,MotorType.kBrushless);
|
final CANSparkMax grimpeurd = new CANSparkMax(Constants.grimpeurd,MotorType.kBrushless);
|
||||||
final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless);
|
final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless);
|
||||||
|
|
||||||
// limit switch
|
// limit switch
|
||||||
final DigitalInput limitdroite = new DigitalInput(Constants.limithaut);
|
final DigitalInput limitdroite = new DigitalInput(Constants.limithaut);
|
||||||
final DigitalInput limitgauche = new DigitalInput(Constants.limitbas);
|
final DigitalInput limitgauche = new DigitalInput(Constants.limitbas);
|
||||||
|
|
||||||
//fonction
|
//fonction
|
||||||
public void droit(double vitesse){
|
public void droit(double vitesse){
|
||||||
grimpeurd.set(vitesse);
|
grimpeurd.set(vitesse);
|
||||||
@ -49,7 +47,6 @@ public AHRS gyroscope = new AHRS();
|
|||||||
public double getpitch(){
|
public double getpitch(){
|
||||||
return gyroscope.getPitch();
|
return gyroscope.getPitch();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
// This method will be called once per scheduler run
|
// This method will be called once per scheduler run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user