nj
This commit is contained in:
parent
3bd850a25e
commit
1ad56aa6ca
@ -24,10 +24,12 @@ public class BasePilotable extends SubsystemBase {
|
|||||||
final MotorControllerGroup droit = new MotorControllerGroup(avantdroit, arrieredroit);
|
final MotorControllerGroup droit = new MotorControllerGroup(avantdroit, arrieredroit);
|
||||||
final MotorControllerGroup gauche = new MotorControllerGroup(avantgauche, arrieregauche);
|
final MotorControllerGroup gauche = new MotorControllerGroup(avantgauche, arrieregauche);
|
||||||
final DifferentialDrive drive = new DifferentialDrive(gauche, droit);
|
final DifferentialDrive drive = new DifferentialDrive(gauche, droit);
|
||||||
private AHRS gyroscope = new AHRS();public double getangle() {return gyroscope.getAngle();}
|
//piston
|
||||||
private DoubleSolenoid brakedroit = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.brakedroit, Constants.brakedroit);
|
private DoubleSolenoid brakedroit = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.brakedroit, Constants.brakedroit);
|
||||||
private DoubleSolenoid brakegauche = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.brakegauche, Constants.brakegauche);
|
private DoubleSolenoid brakegauche = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.brakegauche, Constants.brakegauche);
|
||||||
public double getpitch() {
|
//gyro
|
||||||
|
private AHRS gyroscope = new AHRS();public double getangle() {return gyroscope.getAngle();}
|
||||||
|
public double getpitch() {
|
||||||
return gyroscope.getPitch();
|
return gyroscope.getPitch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user