Skip to content

Commit

Permalink
tunerstudio: move SPI devices to separate menu, move useSpiImu out of…
Browse files Browse the repository at this point in the history
… experimental
  • Loading branch information
dron0gus committed Feb 18, 2024
1 parent c4e4165 commit 60e4038
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion firmware/integration/rusefi_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ bit cltSensorPulldown
bit iatSensorPulldown
bit allowIdenticalPps
bit overrideVvtTriggerGaps
bit useSpiImu
bit useSpiImu;If enabled - use onboard SPI Accelerometer, otherwise listen for CAN messages
bit enableStagedInjection

int16_t tpsMin;Closed throttle, 1 volt = 200 units.\nSee also tps1_1AdcChannel\nset tps_min X;"ADC", 1, 0, 0, 1023, 0
Expand Down
14 changes: 8 additions & 6 deletions firmware/tunerstudio/rusefi.input
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ gaugeCategory = GPPWM Outputs
; looks like TS would append four system indicators below: Data Logging, ???, Not Connected, Protocol Error

[KeyActions]
showPanel = spi, spiFunction
showPanel = spi, spiBuses
showPanel = con, connection

;
Expand Down Expand Up @@ -2034,7 +2034,8 @@ menuDialog = main
subMenu = engineTypeDialog, "Popular vehicles"
subMenu = std_separator

subMenu = spiFunction, "SPI"@@if_ts_show_spi
subMenu = spiBuses, "SPI Buses"@@if_ts_show_spi
subMenu = spiDevices, "SPI Devices"@@if_ts_show_spi
subMenu = monitoringSettings, "rusEFI console"
subMenu = std_separator

Expand Down Expand Up @@ -3741,7 +3742,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "SPI device", hip9011SpiDevice, {isHip9011Enabled == 1}
panel = knockThresholdCurve

dialog = spiFunction, "SPI settings"
dialog = spiBuses, "SPI settings"
field = "!ECU reboot needed to apply these settings"
field = "SPI1 enable", is_enabled_spi_1
field = "SPI1 MOSI", spi1mosiPin, {is_enabled_spi_1 == 1}
Expand Down Expand Up @@ -3769,8 +3770,10 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_

field = "SPI4 enable", is_enabled_spi_4

field = "Accelerometer CS pin", accelerometerCsPin@@if_ts_show_onboard_accelerometer
field = "Accelerometer SPI", accelerometerSpiDevice@@if_ts_show_onboard_accelerometer
dialog = spiDevices, "SPI devices"
field = "Use SPI accelerometer", useSpiImu
field = "Accelerometer SPI", accelerometerSpiDevice, {useSpiImu == 1}@@if_ts_show_onboard_accelerometer
field = "Accelerometer CS pin", accelerometerCsPin, {useSpiImu == 1}@@if_ts_show_onboard_accelerometer

dialog = stftPartitioning, "Region Configuration"
field = "Idle region RPM", stft_maxIdleRegionRpm
Expand Down Expand Up @@ -4715,7 +4718,6 @@ dialog = tcuControls, "Transmission Settings"
field = dacOutputPins1, dacOutputPins1
field = dacOutputPins2, dacOutputPins2
field = "Read RPM matching VSS profile", canInputBCM
field = useSpiImu, useSpiImu
field = auxSpeed1Multiplier, auxSpeed1Multiplier
field = useAuxSpeedForSlipRatio, useAuxSpeedForSlipRatio
field = useVssAsSecondWheelSpeed, useVssAsSecondWheelSpeed
Expand Down

0 comments on commit 60e4038

Please sign in to comment.