mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Move subsystem command metadata to metadata key format (#863)
This commit is contained in:
committed by
bradamiller
parent
55b6764d50
commit
8346caed9c
@@ -213,9 +213,9 @@ public abstract class Subsystem extends SendableBase implements Sendable {
|
||||
public void initSendable(SendableBuilder builder) {
|
||||
builder.setSmartDashboardType("Subsystem");
|
||||
|
||||
builder.addBooleanProperty("hasDefault", () -> m_defaultCommand != null, null);
|
||||
builder.addStringProperty("default", this::getDefaultCommandName, null);
|
||||
builder.addBooleanProperty("hasCommand", () -> m_currentCommand != null, null);
|
||||
builder.addStringProperty("command", this::getCurrentCommandName, null);
|
||||
builder.addBooleanProperty(".hasDefault", () -> m_defaultCommand != null, null);
|
||||
builder.addStringProperty(".default", this::getDefaultCommandName, null);
|
||||
builder.addBooleanProperty(".hasCommand", () -> m_currentCommand != null, null);
|
||||
builder.addStringProperty(".command", this::getCurrentCommandName, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user