need ETB reset button

only:alphax-4chan
This commit is contained in:
rusefi 2023-03-15 23:01:20 -04:00
parent 172877587e
commit 62e12354c3
3 changed files with 8 additions and 2 deletions

View File

@ -445,7 +445,8 @@ typedef enum {
TS_GRAB_PEDAL_WOT = 7,
TS_RESET_TLE8888 = 8,
TS_14_9 = 9,
TS_WRITE_FLASH = 10,
TS_WRITE_FLASH = 0x0A,
TS_RESET = 0x0B,
} ts_14_command;
typedef enum {

View File

@ -378,6 +378,9 @@ static void handleCommandX14(uint16_t index) {
return;
#endif // EFI_EMULATE_POSITION_SENSORS
#if EFI_ELECTRONIC_THROTTLE_BODY
case TS_RESET_TPS_ERROR:
etbPidReset();
return;
case 0xE:
etbAutocal(0);
return;

View File

@ -1968,7 +1968,8 @@ cmd_calibrate_tps_2_wot = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_
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_write_config = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@\x00\x0A"
cmd_write_config = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@@@ts_14_command_TS_WRITE_FLASH@@"
cmd_etb_reset = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_X14_16_hex@@@@ts_14_command_TS_RESET@@"
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"
@ -4056,6 +4057,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
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@@ }