rename smoothRetardEndRpm to launchCorrectionsEndRpm #6566

This commit is contained in:
kifir 2024-05-29 21:49:46 +03:00 committed by rusefillc
parent d917d757d3
commit b67564c6aa
4 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ angle_t getRunningAdvance(int rpm, float engineLoad) {
const float launchAngle = engineConfiguration->launchTimingRetard;
const int launchRpm = engineConfiguration->launchRpm;
const int smoothRetardStartRpm = (launchRpm - engineConfiguration->launchRpmWindow);
const int smoothRetardEndRpm = (launchRpm - engineConfiguration->smoothRetardEndRpm);
const int smoothRetardEndRpm = (launchRpm - engineConfiguration->launchCorrectionsEndRpm);
if (smoothRetardStartRpm <= rpm) {
if (engineConfiguration->launchSmoothRetard && (rpm <= smoothRetardEndRpm)) {
// https://github.com/rusefi/rusefi/issues/5611#issuecomment-2130431696

View File

@ -856,7 +856,7 @@ pin_output_mode_e hip9011IntHoldPinMode;
custom uart_device_e 1 bits, U08, @OFFSET@, [0:1], "Off", "UART1", "UART2", "UART3"
uint16_t sdCardLogFrequency;Rate the ECU will log to the SD card, in hz (log lines per second).;"hz", 1, 0, 1, 250, 0
adc_channel_e idlePositionChannel;
uint16_t smoothRetardEndRpm;
uint16_t launchCorrectionsEndRpm;
output_pin_e starterRelayDisablePin;
pin_output_mode_e starterRelayDisablePinMode;On some vehicles we can disable starter once engine is already running
output_pin_e secondSolenoidPin;Some Subaru and some Mazda use double-solenoid idle air valve

View File

@ -4787,7 +4787,7 @@ dialog = tcuControls, "Transmission Settings"
field = "Ignition Retard", launchTimingRetard, {launchControlEnabled == 1 && enableLaunchRetard == 1}
field = "Fuel Added %", launchFuelAdderPercent, {launchControlEnabled == 1}
field = "Smooth Retard Mode", launchSmoothRetard, {launchControlEnabled == 1 && enableLaunchRetard == 1}
field = "Smooth Retard End RPM (from launch)", smoothRetardEndRpm, {launchSmoothRetard == 1}
field = "Launch Corrections End RPM", launchCorrectionsEndRpm, {launchSmoothRetard == 1 || launchSparkCutEnable == 1}
field = "Hard Cut Mode"
field = "Ignition Cut", launchSparkCutEnable, {launchControlEnabled == 1}
field = "Initial Ignition Cut %", initialIgnitionCutPercent, {launchSparkCutEnable == 1}

View File

@ -55,7 +55,7 @@ static void setUpTestParameters() {
engineConfiguration->launchControlEnabled = true;
engineConfiguration->launchRpm = TEST_LAUNCH_RPM;
engineConfiguration->launchRpmWindow = TEST_LAUNCH_RPM_WINDOW;
engineConfiguration->smoothRetardEndRpm = TEST_SMOOTH_RETARD_END_RPM;
engineConfiguration->launchCorrectionsEndRpm = TEST_SMOOTH_RETARD_END_RPM;
engineConfiguration->launchSparkCutEnable = true;
engineConfiguration->launchTimingRetard = TEST_LAUNCH_TIMING_RETARD;
}