mirror of https://github.com/rusefi/rusefi.git
ETB JNI test progress
This commit is contained in:
parent
d6a33ad44d
commit
c2c6669f47
|
@ -56,8 +56,10 @@ private:
|
|||
bool configure(const TpsConfig& cfg) {
|
||||
// Only configure if we have a channel
|
||||
if (!isAdcChannelValid(cfg.channel)) {
|
||||
printf("Configured NO\n");
|
||||
return false;
|
||||
}
|
||||
printf("Configured YES\n");
|
||||
|
||||
float scaledClosed = cfg.closed / m_func.getDivideInput();
|
||||
float scaledOpen = cfg.open / m_func.getDivideInput();
|
||||
|
@ -69,6 +71,7 @@ private:
|
|||
firmwareError(OBD_TPS_Configuration, "\"%s\" problem: open %.2f/closed %.2f cal values are too close together. Check your calibration and wiring!", name(),
|
||||
cfg.open,
|
||||
cfg.closed);
|
||||
printf("Configured split\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -78,6 +81,7 @@ private:
|
|||
cfg.min, cfg.max
|
||||
);
|
||||
|
||||
printf("Configured true\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -165,6 +169,7 @@ static FuncSensPair wastegate(PACK_MULT_VOLTAGE, SensorType::WastegatePosition);
|
|||
static FuncSensPair idlePos(PACK_MULT_VOLTAGE, SensorType::IdlePosition);
|
||||
|
||||
void initTps() {
|
||||
efiAssertVoid(OBD_PCM_Processor_Fault, engineConfiguration != nullptr, "null engineConfiguration");
|
||||
percent_t min = engineConfiguration->tpsErrorDetectionTooLow;
|
||||
percent_t max = engineConfiguration->tpsErrorDetectionTooHigh;
|
||||
|
||||
|
|
Loading…
Reference in New Issue