From 09e7aa216078fdbc534f72dd6379fb51fe5aa94e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 24 Jul 2021 13:24:53 -0400 Subject: [PATCH] Clutch switch inverted options do not invert detected pedal position #3044 --- firmware/integration/rusefi_config.txt | 5 +++-- firmware/tunerstudio/rusefi.input | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 542f1223f8..33011041af 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -785,7 +785,7 @@ float mapFrequency100Kpa;;"Hz", 1, 0, 0, 100000, 2 pin_output_mode_e fanPinMode; output_pin_e fanPin; -switch_input_pin_e clutchDownPin;some cars have a switch to indicate that clutch pedal is all the way down +switch_input_pin_e clutchDownPin;+Some cars have a switch to indicate that clutch pedal is all the way down output_pin_e alternatorControlPin; pin_output_mode_e alternatorControlPinMode; pin_input_mode_e clutchDownPinMode; @@ -978,12 +978,13 @@ custom maf_sensor_type_e 4 bits, S32, @OFFSET@, [0:1], @@maf_sensor_type_e_enum@ brain_pin_e[FSIO_COMMAND_COUNT iterate] fsioDigitalInputs;todo:not finished\nThese input pins allow us to pull toggle buttons state; brain_input_pin_e vehicleSpeedSensorInputPin; - switch_input_pin_e clutchUpPin;Some vehicles have a switch to indicate that clutch pedal is all the way up + switch_input_pin_e clutchUpPin;+Some vehicles have a switch to indicate that clutch pedal is all the way up brain_input_pin_e frequencyReportingMapInputPin; pin_input_mode_e clutchUpPinMode; uint16_t multisparkMaxRpm;+Disable multispark above this engine speed.;"rpm", 1, 0, 0, 3000, 0 uint8_t multisparkMaxSparkingAngle;+This parameter sets the latest that the last multispark can occur after the main ignition event. For example, if the ignition timing is 30 degrees BTDC, and this parameter is set to 45, no multispark will ever be fired after 15 degrees ATDC.;"deg", 1, 0, 0, 60, 0 uint8_t multisparkMaxExtraSparkCount;+Configures the maximum number of extra sparks to fire (does not include main spark);"count", 1, 0, 1, 5, 0 +! do we need those? https://github.com/rusefi/rusefi/issues/3044 bit todoClutchUpPinInverted bit todoClutchDownPinInverted bit useHbridges;+If enabled we use two H-bridges to drive stepper idle air valve diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 6306bfdba5..65fff23494 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -489,6 +489,11 @@ enable2ndByteCanID = false requiresPowerCycle = binarySerialTxPin requiresPowerCycle = binarySerialRxPin + requiresPowerCycle = clutchUpPin + requiresPowerCycle = clutchUpPinMode + requiresPowerCycle = clutchDownPin + requiresPowerCycle = clutchDownPinMode + requiresPowerCycle = etb_use_two_wires requiresPowerCycle = etbFreq