fixing unit tests
This commit is contained in:
parent
ae4228a900
commit
2cc3946169
|
@ -19,8 +19,10 @@ void testPidController(void) {
|
||||||
pidS.iFactor = 0.5;
|
pidS.iFactor = 0.5;
|
||||||
pidS.dFactor = 0;
|
pidS.dFactor = 0;
|
||||||
pidS.offset = 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));
|
assertEqualsM("getValue#90", 90, pid.getValue(14, 12, 0.1));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue