mirror of https://github.com/FOME-Tech/fome-fw.git
accel enrich commands
This commit is contained in:
parent
78ea67371e
commit
06cbbca238
|
@ -195,29 +195,15 @@ TpsAccelEnrichment::TpsAccelEnrichment() {
|
|||
|
||||
#if ! EFI_UNIT_TEST
|
||||
|
||||
void setTpsAccelThr(float value) {
|
||||
engineConfiguration->tpsAccelEnrichmentThreshold = value;
|
||||
}
|
||||
|
||||
void setTpsDecelThr(float value) {
|
||||
engineConfiguration->tpsDecelEnleanmentThreshold = value;
|
||||
}
|
||||
|
||||
void setTpsDecelMult(float value) {
|
||||
engineConfiguration->tpsDecelEnleanmentMultiplier = value;
|
||||
}
|
||||
|
||||
void setTpsAccelLen(int length) {
|
||||
if (length < 1) {
|
||||
efiPrintf("Length should be positive");
|
||||
return;
|
||||
}
|
||||
engine->tpsAccelEnrichment.setLength(length);
|
||||
}
|
||||
|
||||
void updateAccelParameters() {
|
||||
constexpr float slowCallbackPeriodSecond = SLOW_CALLBACK_PERIOD_MS / 1000.0f;
|
||||
setTpsAccelLen(engineConfiguration->tpsAccelLookback / slowCallbackPeriodSecond);
|
||||
int length = engineConfiguration->tpsAccelLookback / slowCallbackPeriodSecond;
|
||||
|
||||
if (length < 1) {
|
||||
length = 1;
|
||||
}
|
||||
|
||||
engine->tpsAccelEnrichment.setLength(length);
|
||||
}
|
||||
|
||||
#endif /* ! EFI_UNIT_TEST */
|
||||
|
|
|
@ -39,9 +39,4 @@ public:
|
|||
|
||||
void initAccelEnrichment();
|
||||
|
||||
void setTpsAccelThr(float value);
|
||||
void setTpsDecelThr(float value);
|
||||
void setTpsDecelMult(float value);
|
||||
void setTpsAccelLen(int length);
|
||||
|
||||
void updateAccelParameters();
|
||||
|
|
|
@ -378,9 +378,6 @@ const command_f_s commandsF[] = {
|
|||
{"global_trigger_offset_angle", setGlobalTriggerAngleOffset},
|
||||
{"cranking_iac", setCrankingIACExtra},
|
||||
{"cranking_timing_angle", setCrankingTimingAngle},
|
||||
{"tps_accel_threshold", setTpsAccelThr},
|
||||
{"tps_decel_threshold", setTpsDecelThr},
|
||||
{"tps_decel_multiplier", setTpsDecelMult},
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
|
||||
#if EFI_ELECTRONIC_THROTTLE_BODY
|
||||
|
@ -402,7 +399,6 @@ const command_i_s commandsI[] = {{"ignition_mode", setIgnitionMode},
|
|||
{"debug_mode", setDebugMode},
|
||||
{"trigger_type", setTriggerType},
|
||||
{"idle_solenoid_freq", setIdleSolenoidFrequency},
|
||||
{"tps_accel_len", setTpsAccelLen},
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
#if EFI_PROD_CODE
|
||||
#if EFI_CAN_SUPPORT
|
||||
|
|
Loading…
Reference in New Issue