PID auto tune
This commit is contained in:
parent
4e59049bd1
commit
20605d8204
|
@ -21,6 +21,7 @@
|
||||||
#include "test_fuel_map.h"
|
#include "test_fuel_map.h"
|
||||||
#include "fuel_math.h"
|
#include "fuel_math.h"
|
||||||
#include "test_logic_expression.h"
|
#include "test_logic_expression.h"
|
||||||
|
#include "test_pid_auto.h"
|
||||||
#include "engine_configuration.h"
|
#include "engine_configuration.h"
|
||||||
|
|
||||||
#include "test_idle_controller.h"
|
#include "test_idle_controller.h"
|
||||||
|
@ -126,6 +127,7 @@ extern bool printTriggerDebug;
|
||||||
int main(void) {
|
int main(void) {
|
||||||
// printTriggerDebug = true;
|
// printTriggerDebug = true;
|
||||||
|
|
||||||
|
testPidAutoZigZag();
|
||||||
testMissedSpark299();
|
testMissedSpark299();
|
||||||
testSparkReverseOrderBug319();
|
testSparkReverseOrderBug319();
|
||||||
testFuelSchedulerBug299smallAndLarge();
|
testFuelSchedulerBug299smallAndLarge();
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "test_pid_auto.h"
|
||||||
|
|
||||||
efitimems_t mockTimeMs = 0;
|
efitimems_t mockTimeMs = 0;
|
||||||
|
|
||||||
|
@ -14,4 +15,7 @@ efitimems_t currentTimeMillis(void) {
|
||||||
return mockTimeMs;
|
return mockTimeMs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void testPidAutoZigZag() {
|
||||||
|
mockTimeMs = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* test_pid_auto.h
|
* @file test_pid_auto.h
|
||||||
*
|
*
|
||||||
* Created on: Sep 14, 2017
|
* Created on: Sep 14, 2017
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
||||||
|
@ -8,5 +8,6 @@
|
||||||
#ifndef TEST_PID_AUTO_H_
|
#ifndef TEST_PID_AUTO_H_
|
||||||
#define TEST_PID_AUTO_H_
|
#define TEST_PID_AUTO_H_
|
||||||
|
|
||||||
|
void testPidAutoZigZag();
|
||||||
|
|
||||||
#endif /* TEST_PID_AUTO_H_ */
|
#endif /* TEST_PID_AUTO_H_ */
|
||||||
|
|
Loading…
Reference in New Issue