Nissan: probably hardware issue but maybe we need firmware progress as well #4821
This commit is contained in:
parent
1cfcccbda3
commit
0ad1f96068
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue