From ffa6bd52b0c9ae1c5a9fc794c17b58260dc94571 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 22 May 2017 15:31:03 -0400 Subject: [PATCH] progress --- firmware/controllers/electronic_throttle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/controllers/electronic_throttle.cpp b/firmware/controllers/electronic_throttle.cpp index 144cb08ef4..0cf1b1a45a 100644 --- a/firmware/controllers/electronic_throttle.cpp +++ b/firmware/controllers/electronic_throttle.cpp @@ -40,6 +40,7 @@ #if EFI_ELECTRONIC_THROTTLE_BODY || defined(__DOXYGEN__) #include "pin_repository.h" #include "pwm_generator.h" +extern TunerStudioOutputChannels tsOutputChannels; #define ETB_FREQ 400 @@ -85,6 +86,9 @@ static msg_t etbThread(void *arg) { } outputDirectionClose.setValue(needEtbBraking); + if (engineConfiguration->debugMode == DBG_ELECTRONIC_THROTTLE) { + pid.postState(&tsOutputChannels); + } // if (tps != prevTps) { // prevTps = tps;