Nissan: probably hardware issue but maybe we need firmware progress as well #4821

This commit is contained in:
rusefillc 2022-11-25 10:13:57 -05:00
parent 1cfcccbda3
commit 0ad1f96068
2 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,9 @@ DDEFS += -DTS_NO_PRIMARY=1
DDEFS += -DFIRMWARE_ID=\"hellen121nissan\" $(VAR_DEF_ENGINE_TYPE)
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
# bad temporary solution of hardware issue https://github.com/rusefi/rusefi/issues/4821
DDEFS += -DMAX_TPS_PPS_DISCREPANCY=10.0f
DDEFS += -DSHORT_BOARD_NAME=hellen121nissan
include $(BOARDS_DIR)/hellen/hellen-common144.mk

View File

@ -8,6 +8,10 @@
#include "linear_func.h"
#include "tps.h"
#ifndef MAX_TPS_PPS_DISCREPANCY
#define MAX_TPS_PPS_DISCREPANCY 5.0f
#endif
struct TpsConfig {
adc_channel_e channel;
float closed;
@ -118,7 +122,7 @@ public:
fordTps->Register();
} else {
// not ford TPS
m_redund.configure(5.0f, !hasSecond);
m_redund.configure(MAX_TPS_PPS_DISCREPANCY, !hasSecond);
m_redund.Register();
}
}