[wpimath] Fix PID atSetpoint to not return true prematurely (#4906)

Wait until setpoint and measurement have been set.
This commit is contained in:
sciencewhiz
2023-01-13 22:26:30 -08:00
committed by GitHub
parent e5a6197633
commit 1e05b21ab5
5 changed files with 21 additions and 11 deletions

View File

@@ -252,6 +252,9 @@ class WPILIB_DLLEXPORT PIDController
double m_setpoint = 0;
double m_measurement = 0;
bool m_haveSetpoint = false;
bool m_haveMeasurement = false;
};
} // namespace frc2