Clutch switch inverted options do not invert detected pedal position #3044

This commit is contained in:
rusefillc 2021-07-24 13:24:53 -04:00
parent a42569382c
commit 09e7aa2160
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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