auto-sync

This commit is contained in:
rusEfi 2015-03-02 21:04:23 -06:00
parent c848d2c8d2
commit ba97b86581
3 changed files with 14 additions and 1 deletions

View File

@ -145,6 +145,8 @@ int main(void) {
testMafLookup();
testMafFuelMath();
testPidController();
// resizeMap();
printf("Success 20150213\r\n");
return EXIT_SUCCESS;

View File

@ -9,6 +9,7 @@
#include "idle_controller.h"
#include "efitime.h"
#include "engine_test_helper.h"
#include "pid.h"
void idleDebug(const char *msg, percent_t value) {
printf("%s\r\n", msg);
@ -17,6 +18,7 @@ void idleDebug(const char *msg, percent_t value) {
static IdleValveState is;
void testIdleController(void) {
print("******************************************* testIdleController\r\n");
EngineTestHelper eth(FORD_INLINE_6_1995);
Engine *engine = &eth.engine;
engine_configuration_s *engineConfiguration = engine->engineConfiguration;
@ -35,3 +37,12 @@ void testIdleController(void) {
time += 2000;
assertEquals(60.6, is.getIdle(1050, time PASS_ENGINE_PARAMETER));
}
void testPidController(void) {
print("******************************************* testPidController\r\n");
Pid pid(50, 0.5, 0, 10, 90);
assertEquals(90, pid.getValue(14, 12, 0.1));
}

View File

@ -3,6 +3,6 @@
void testIdleController(void);
void idleDebug(char *msg, int value);
//bool_t isCranking(void);
void testPidController(void);
#endif