added a few things to the shuffle board
This commit is contained in:
parent
1819f59657
commit
858c897aad
@ -257,6 +257,16 @@ public class RobotContainer {
|
||||
|
||||
sensorTab.addDouble("ElevMotor2", elevator::getMotor2)
|
||||
.withWidget(BuiltInWidgets.kGraph);
|
||||
|
||||
sensorTab.addDouble("Elevator setpoint", elevator::getPIDSetpoint)
|
||||
.withSize(1, 1)
|
||||
.withPosition(5, 0)
|
||||
.withWidget(BuiltInWidgets.kTextView);
|
||||
|
||||
sensorTab.addDouble("Elevator error", elevator::getPIDError)
|
||||
.withSize(1, 1)
|
||||
.withPosition(5, 1)
|
||||
.withWidget(BuiltInWidgets.kTextView);
|
||||
}
|
||||
|
||||
public Command getAutonomousCommand() {
|
||||
|
@ -228,4 +228,12 @@ public class Elevator extends SubsystemBase {
|
||||
public double getMotor2() {
|
||||
return elevatorMotor2.getAppliedOutput()*elevatorMotor2.getBusVoltage();
|
||||
}
|
||||
|
||||
public double getPIDSetpoint() {
|
||||
return pidController.getSetpoint();
|
||||
}
|
||||
|
||||
public double getPIDError() {
|
||||
return pidController.getError();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user