Skip to content

Commit f9881a0

Browse files
authored
[command] Add PIDSubsystem PIDController as child (#2784)
Previously, the PIDSubsystem's PID Controller would show as ungrouped in LiveWindow. Fixes wpilibsuite/RobotBuilder#260
1 parent 1aa281a commit f9881a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/frc2/command/PIDSubsystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using namespace frc2;
1212
PIDSubsystem::PIDSubsystem(PIDController controller, double initialPosition)
1313
: m_controller{controller} {
1414
SetSetpoint(initialPosition);
15+
AddChild("PID Controller", &m_controller);
1516
}
1617

1718
void PIDSubsystem::Periodic() {

0 commit comments

Comments
 (0)