Closed Jambu1234 closed 6 months ago
Concern : Offline PID unit test comparing the computed and expected value fails though the printed output value seems the same.
Cause : PID output involves computation of multiple floating point variables. Manual calculation of expected value involved floating point round-off which caused the mismatch between the expected and the actually computed value.
Solution : Updated the expected value to its hexadecimal representation so that floating point round-off concern can be resolved.
PID unit test which does the offline testing of PID source code fails.