fixing unit tests

This commit is contained in:
rusEfi 2017-05-29 23:09:52 -04:00
parent ae4228a900
commit 2cc3946169
1 changed files with 3 additions and 1 deletions

View File

@ -19,8 +19,10 @@ void testPidController(void) {
pidS.iFactor = 0.5;
pidS.dFactor = 0;
pidS.offset = 0;
pidS.minValue = 10;
pidS.maxValue = 90;
Pid pid(&pidS, 10, 90);
Pid pid(&pidS);
assertEqualsM("getValue#90", 90, pid.getValue(14, 12, 0.1));