[wpilib] Fix Compressor sendable properties (#3269)

This commit is contained in:
Prateek Machiraju
2021-03-27 00:20:54 -04:00
committed by GitHub
parent 10c038d9bf
commit ffb590bfcc
2 changed files with 6 additions and 17 deletions

View File

@@ -205,15 +205,8 @@ public class Compressor implements Sendable, AutoCloseable {
public void initSendable(SendableBuilder builder) {
builder.setSmartDashboardType("Compressor");
builder.addBooleanProperty(
"Enabled",
this::enabled,
value -> {
if (value) {
start();
} else {
stop();
}
});
"Closed Loop Control", this::getClosedLoopControl, this::setClosedLoopControl);
builder.addBooleanProperty("Enabled", this::enabled, null);
builder.addBooleanProperty("Pressure switch", this::getPressureSwitchValue, null);
}
}