diff --git a/wpilibc/src/main/native/cpp/Commands/Subsystem.cpp b/wpilibc/src/main/native/cpp/Commands/Subsystem.cpp index af788e8018..b9f94727ff 100644 --- a/wpilibc/src/main/native/cpp/Commands/Subsystem.cpp +++ b/wpilibc/src/main/native/cpp/Commands/Subsystem.cpp @@ -207,12 +207,12 @@ void Subsystem::InitSendable(SendableBuilder& builder) { builder.SetSmartDashboardType("Subsystem"); builder.AddBooleanProperty( - "hasDefault", [=]() { return m_defaultCommand != nullptr; }, nullptr); - builder.AddStringProperty("default", + ".hasDefault", [=]() { return m_defaultCommand != nullptr; }, nullptr); + builder.AddStringProperty(".default", [=]() { return GetDefaultCommandName(); }, nullptr); builder.AddBooleanProperty( - "hasCommand", [=]() { return m_currentCommand != nullptr; }, nullptr); - builder.AddStringProperty("command", + ".hasCommand", [=]() { return m_currentCommand != nullptr; }, nullptr); + builder.AddStringProperty(".command", [=]() { return GetCurrentCommandName(); }, nullptr); } diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/command/Subsystem.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/command/Subsystem.java index 3f3fd528c9..b529a62757 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/command/Subsystem.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/command/Subsystem.java @@ -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); } }