cleanup missing fsio stuff (#3189)

This commit is contained in:
Matthew Kennedy 2021-08-23 22:19:03 -07:00 committed by GitHub
parent f926d2ccba
commit d2b54428c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 2 additions and 22 deletions

View File

@ -276,8 +276,6 @@ void setFordEscortGt(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
// we wanted to have a timinig table adjustment switch here
// engineConfiguration->fsioAdc[0] = EFI_ADC_12; // PC2
strcpy(config->fsioFormulas[15], ANALOG_CONDITION);
// end of Ford Escort GT config
}

View File

@ -649,13 +649,6 @@ operation_mode_e Engine::getOperationMode(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
return doesTriggerImplyOperationMode(engineConfiguration->trigger.type) ? triggerCentral.triggerShape.getOperationMode() : engineConfiguration->ambiguousOperationMode;
}
int Engine::getRpmHardLimit(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
if (engineConfiguration->useFSIO6ForRevLimiter) {
return fsioState.fsioRpmHardLimit;
}
return CONFIG(rpmHardLimit);
}
/**
* The idea of this method is to execute all heavy calculations in a lower-priority thread,
* so that trigger event handler/IO scheduler tasks are faster.

View File

@ -293,8 +293,6 @@ public:
bool isRunningPwmTest = false;
int getRpmHardLimit(DECLARE_ENGINE_PARAMETER_SIGNATURE);
FsioState fsioState;
/**

View File

@ -75,8 +75,6 @@ public:
FsioState();
float fsioLastValue[FSIO_COMMAND_COUNT];
float fsioRpmHardLimit;
#if EFI_UNIT_TEST
float mockFan = 0;
float mockRpm = 0;

View File

@ -490,10 +490,6 @@ void runFsio(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
}
}
#endif /* EFI_ENABLE_CRITICAL_ENGINE_STOP */
if (engineConfiguration->useFSIO6ForRevLimiter) {
updateValueOrWarning(6, "rpm limit", &ENGINE(fsioState.fsioRpmHardLimit) PASS_ENGINE_PARAMETER_SUFFIX);
}
}

View File

@ -7,7 +7,7 @@ void LimpManager::updateState(int rpm, efitick_t nowNt) {
Clearable allowSpark = CONFIG(isIgnitionEnabled);
// User-configured hard RPM limit
if (rpm > engine->getRpmHardLimit(PASS_ENGINE_PARAMETER_SIGNATURE)) {
if (rpm > CONFIG(rpmHardLimit)) {
if (CONFIG(cutFuelOnHardLimit)) {
allowFuel.clear();
}

View File

@ -1135,7 +1135,7 @@ bit useFSIO5ForCriticalIssueEngineStop;Sometimes we just have to shut the engine
bit useFSIO4ForSeriousEngineWarning;Sometimes we have to miss injection on purpose to attract driver's attention
bit unusedBitHere2
bit unusedBitHere3
bit useFSIO6ForRevLimiter
bit unusedBitHere4
adc_channel_e hipOutputChannel;
switch_input_pin_e acSwitch;A/C button input;

View File

@ -3305,10 +3305,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6
field = "#7", fsioFormulas7
field = "#8", fsioFormulas8
dialog = fsioInputsDialog, "FSIO inputs"
field = "ADC #1", fsioAdc1