108 TAbsoluteEncoder> &controllerPair)
109 : m_controllerPair{controllerPair} {
110 frc::SmartDashboard::PutNumber(m_controllerPair.m_shuffleboardPrefix +
112 m_controllerPair.GetPidSettings().p);
113 frc::SmartDashboard::PutNumber(m_controllerPair.m_shuffleboardPrefix +
115 m_controllerPair.GetPidSettings().i);
116 frc::SmartDashboard::PutNumber(m_controllerPair.m_shuffleboardPrefix +
118 m_controllerPair.GetPidSettings().d);
119 frc::SmartDashboard::PutNumber(m_controllerPair.m_shuffleboardPrefix +
121 m_controllerPair.GetPidSettings().iZone);
122 frc::SmartDashboard::PutNumber(m_controllerPair.m_shuffleboardPrefix +
124 m_controllerPair.GetPidSettings().ff);
129 double tP = frc::SmartDashboard::GetNumber(
130 m_controllerPair.m_shuffleboardPrefix +
" P Gain",
131 m_controllerPair.GetPidSettings().p);
132 double tI = frc::SmartDashboard::GetNumber(
133 m_controllerPair.m_shuffleboardPrefix +
" I Gain",
134 m_controllerPair.GetPidSettings().i);
135 double tD = frc::SmartDashboard::GetNumber(
136 m_controllerPair.m_shuffleboardPrefix +
" D Gain",
137 m_controllerPair.GetPidSettings().d);
138 double tIZone = frc::SmartDashboard::GetNumber(
139 m_controllerPair.m_shuffleboardPrefix +
" IZone",
140 m_controllerPair.GetPidSettings().iZone);
141 double tFeedForward = frc::SmartDashboard::GetNumber(
142 m_controllerPair.m_shuffleboardPrefix +
" Feed Forward",
143 m_controllerPair.GetPidSettings().ff);
145 m_controllerPair.UpdatePidSettings(
146 {.p = tP, .i = tI, .d = tD, .iZone = tIZone, .ff = tFeedForward});