diff --git a/unit_tests/test_pid_auto.cpp b/unit_tests/test_pid_auto.cpp index f1b1152d1c..c92a50cae1 100644 --- a/unit_tests/test_pid_auto.cpp +++ b/unit_tests/test_pid_auto.cpp @@ -19,15 +19,19 @@ efitimems_t currentTimeMillis(void) { Logging logging; static float zigZagOffset = 0; + static zigZagValue(int index) { int i = index % 20; - if ( i <= 10) - return i * 10 + zigZagOffset; - return (20 - i) * 10 + zigZagOffset; - + if ( i <= 10) { + return i * 10 + zigZagOffset; + } else { + return (20 - i) * 10 + zigZagOffset; + } } void testPidAutoZigZag() { + printf("*************************************************** testPidAutoZigZag\r\n"); + mockTimeMs = 0; PID_AutoTune at;