From 6c5c35a2e25a86aaa7cabbd77a77445beda023bc Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Sat, 26 Nov 2022 11:08:26 -0500 Subject: [PATCH] etbStatus_error does the job (#4820) Co-authored-by: rusefillc --- firmware/console/binary/output_channels.txt | 1 - firmware/controllers/actuators/electronic_throttle.cpp | 8 -------- 2 files changed, 9 deletions(-) diff --git a/firmware/console/binary/output_channels.txt b/firmware/console/binary/output_channels.txt index 172733fe16..8a80c4a690 100644 --- a/firmware/console/binary/output_channels.txt +++ b/firmware/console/binary/output_channels.txt @@ -110,7 +110,6 @@ uint16_t rpmAcceleration;dRPM;"RPM/s",1, 0, 0, 5, 2 uint16_t autoscale idleAirValvePosition;@@GAUGE_NAME_IAC@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 1 int16_t autoscale etbTarget;ETB Target;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 2 int16_t autoscale etb1DutyCycle;@@GAUGE_NAME_ETB_DUTY@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 1 - int16_t autoscale etb1Error;ETB Error;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 3 ! Fuel system int16_t autoscale fuelTankLevel;Fuel level;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0 diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 32f9166d4a..cdb921430f 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -512,14 +512,6 @@ expected EtbController::getClosedLoop(percent_t target, percent_t obs m_shouldResetPid = false; } - // Only report the 0th throttle - if (m_function == ETB_Throttle1) { -#if EFI_TUNER_STUDIO - // Error is positive if the throttle needs to open further - engine->outputChannels.etb1Error = target - observation; -#endif /* EFI_TUNER_STUDIO */ - } - // Only allow autotune with stopped engine, and on the first throttle if (m_isAutotune) { return getClosedLoopAutotune(target, observation);