bhbhbhbhh hbhbhbgfe
This commit is contained in:
@@ -35,7 +35,7 @@ public class BasePilotable extends SubsystemBase {
|
||||
//gyro
|
||||
ShuffleboardTab teb = Shuffleboard.getTab("teb");
|
||||
ShuffleboardLayout layout = Shuffleboard.getTab("teb")
|
||||
.getLayout ("encodeurs base pilotable", BuiltInLayouts.kList)
|
||||
.getLayout ("distance", BuiltInLayouts.kList)
|
||||
.withSize(2, 2);
|
||||
private AHRS gyroscope = new AHRS();public double getangle() {return gyroscope.getAngle();}
|
||||
public double getpitch() {
|
||||
@@ -72,12 +72,11 @@ public void resetGyro(){
|
||||
/** Creates a new BasePilotable. */
|
||||
public BasePilotable() {
|
||||
droit.setInverted(true);
|
||||
layout .addDouble("distance", this::distance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void periodic() {
|
||||
teb .add("distance",0.1);
|
||||
teb .add("brakedroit",0.1);
|
||||
teb .add("brakegauche", 0.1);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user