From 4e59049bd1f8f574ec28c54e672ea2e3fd729143 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 14 Sep 2017 07:58:58 -0400 Subject: [PATCH] PID auto tune --- unit_tests/test.mk | 1 + unit_tests/test_pid_auto.cpp | 17 +++++++++++++++++ unit_tests/test_pid_auto.h | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 unit_tests/test_pid_auto.cpp create mode 100644 unit_tests/test_pid_auto.h diff --git a/unit_tests/test.mk b/unit_tests/test.mk index 36b6c25d10..e34a884799 100644 --- a/unit_tests/test.mk +++ b/unit_tests/test.mk @@ -11,5 +11,6 @@ TEST_SRC_CPP = test_util.cpp \ test_speed_density.cpp \ test_signal_executor.cpp \ test_sensors.cpp \ + test_pid_auto.cpp \ test_accel_enrichment.cpp diff --git a/unit_tests/test_pid_auto.cpp b/unit_tests/test_pid_auto.cpp new file mode 100644 index 0000000000..234bb7c830 --- /dev/null +++ b/unit_tests/test_pid_auto.cpp @@ -0,0 +1,17 @@ +/* + * test_pid_auto.cpp + * + * Created on: Sep 14, 2017 + * @author Andrey Belomutskiy, (c) 2012-2017 + */ + + +#include "main.h" + +efitimems_t mockTimeMs = 0; + +efitimems_t currentTimeMillis(void) { + return mockTimeMs; +} + + diff --git a/unit_tests/test_pid_auto.h b/unit_tests/test_pid_auto.h new file mode 100644 index 0000000000..3ddb72929a --- /dev/null +++ b/unit_tests/test_pid_auto.h @@ -0,0 +1,12 @@ +/* + * test_pid_auto.h + * + * Created on: Sep 14, 2017 + * @author Andrey Belomutskiy, (c) 2012-2017 + */ + +#ifndef TEST_PID_AUTO_H_ +#define TEST_PID_AUTO_H_ + + +#endif /* TEST_PID_AUTO_H_ */