only:dead code?

This commit is contained in:
rusefi 2024-08-13 20:39:29 -04:00
parent aee5de288a
commit 44b5f798a8
5 changed files with 16 additions and 27 deletions

View File

@ -434,16 +434,16 @@ enum class trigger_type_e : uint32_t {
};
typedef enum {
TS_14_0 = 0,
TS_14_1 = 1,
TS_GRAB_TPS_CLOSED = 2,
TS_GRAB_TPS_WOT = 3,
TS_14_4 = 4,
TS_14_5 = 5,
COMMAND_X14_UNUSED_0 = 0x00,
COMMAND_X14_UNUSED_1 = 0x01,
COMMAND_X14_UNUSED_2 = 0x02,
COMMAND_X14_UNUSED_3 = 0x03,
COMMAND_X14_UNUSED_4 = 0x04,
COMMAND_X14_UNUSED_5 = 0x05,
TS_GRAB_PEDAL_UP = 6,
TS_GRAB_PEDAL_WOT = 7,
TS_RESET_TLE8888 = 8,
TS_14_9 = 9,
COMMAND_X14_UNUSED_9 = 0x09,
TS_WRITE_FLASH = 0x0A,
TS_ETB_RESET = 0x0B,
TS_ETB_START_AUTOTUNE = 0x0C,

View File

@ -435,14 +435,6 @@ int getSavedBenchTestPinStates(uint32_t durationsInStateMs[2]) {
static void handleCommandX14(uint16_t index) {
// todo: define ts_14_command magic constants and use those in tunerstudio.template.ini file!
switch (index) {
case TS_GRAB_TPS_CLOSED:
grabTPSIsClosed();
return;
case TS_GRAB_TPS_WOT:
grabTPSIsWideOpen();
return;
// case 4: tps2_closed
// case 5: tps2_wot
case TS_GRAB_PEDAL_UP:
grabPedalIsUp();
return;
@ -480,13 +472,15 @@ static void handleCommandX14(uint16_t index) {
enableExternalTriggerStimulator();
#endif /* EFI_EMULATE_POSITION_SENSORS == TRUE */
return;
/*
case TS_ETB_RESET:
#if EFI_ELECTRONIC_THROTTLE_BODY == TRUE
#if EFI_PROD_CODE
etbPidReset();
#endif
#endif /* EFI_ELECTRONIC_THROTTLE_BODY == TRUE */
#endif // EFI_ELECTRONIC_THROTTLE_BODY
return;
*/
case TS_ETB_AUTOCAL_0:
#if EFI_ELECTRONIC_THROTTLE_BODY == TRUE
etbAutocal(0);

View File

@ -4,12 +4,13 @@
#include "pch.h"
#include "sent.h"
/*
void grabTPSIsClosed() {
#if EFI_PROD_CODE
printTPSInfo();
engineConfiguration->tpsMin = convertVoltageTo10bitADC(Sensor::getRaw(SensorType::Tps1));
printTPSInfo();
#endif /* EFI_PROD_CODE */
#endif // EFI_PROD_CODE
}
void grabTPSIsWideOpen() {
@ -17,8 +18,9 @@ void grabTPSIsWideOpen() {
printTPSInfo();
engineConfiguration->tpsMax = convertVoltageTo10bitADC(Sensor::getRaw(SensorType::Tps1));
printTPSInfo();
#endif /* EFI_PROD_CODE */
#endif // EFI_PROD_CODE
}
*/
void grabPedalIsUp() {
/**

View File

@ -775,9 +775,6 @@ void initSettings() {
// todo: start saving values into flash right away?
addConsoleAction("tpsinfo", printTPSInfo);
addConsoleAction("calibrate_tps_1_closed", grabTPSIsClosed);
addConsoleAction("calibrate_tps_1_wot", grabTPSIsWideOpen);
#if EFI_ENGINE_CONTROL
// used by HW CI

View File

@ -2307,16 +2307,12 @@ cmd_test_vvt1_valve = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_BENCH_CAT
cmd_test_vvt2_valve = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_BENCH_CATEGORY_16_hex@@@@bench_mode_e_BENCH_VVT2_VALVE_16_hex@@"
cmd_test_vvt3_valve = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_BENCH_CATEGORY_16_hex@@@@bench_mode_e_BENCH_VVT3_VALVE_16_hex@@"
cmd_calibrate_tps_1_closed = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x02"
cmd_calibrate_tps_1_wot = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x03"
cmd_calibrate_tps_2_closed = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x04"
cmd_calibrate_tps_2_wot = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x05"
cmd_calibrate_pedal_up = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x06"
cmd_calibrate_pedal_down = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x07"
cmd_tle8888_init = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x08"
cmd_mc33810_init = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x14"
cmd_write_config = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@@@ts_14_command_TS_WRITE_FLASH_16_hex@@"
cmd_etb_reset = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@@@ts_14_command_TS_ETB_RESET_16_hex@@"
;cmd_etb_reset = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@@@ts_14_command_TS_ETB_RESET_16_hex@@"
cmd_etb_autotune = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x0C"
cmd_enable_self_stim = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x0D"
cmd_etb_auto_calibrate = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x0E"
@ -4740,7 +4736,7 @@ dialog = tcuControls, "Transmission Settings"
dialog = etbDialogRight
panel = etbIdleDialog,{ etbFunctions1 == @@dc_function_e_DC_Throttle1@@ || etbFunctions1 == @@dc_function_e_DC_Throttle2@@ || etbFunctions2 == @@dc_function_e_DC_Throttle1@@ || etbFunctions2 == @@dc_function_e_DC_Throttle2@@ }
commandButton = "Reset ETB", cmd_etb_reset
; commandButton = "Reset ETB", cmd_etb_reset
panel = etbPidDialog, { etbFunctions1 == @@dc_function_e_DC_Throttle1@@ || etbFunctions1 == @@dc_function_e_DC_Throttle2@@ || etbFunctions2 == @@dc_function_e_DC_Throttle1@@ || etbFunctions2 == @@dc_function_e_DC_Throttle2@@ }
panel = etbAutotune, { etbFunctions1 == @@dc_function_e_DC_Throttle1@@ || etbFunctions1 == @@dc_function_e_DC_Throttle2@@ || etbFunctions2 == @@dc_function_e_DC_Throttle1@@ || etbFunctions2 == @@dc_function_e_DC_Throttle2@@ }