From 9583f6e2f1367c0cabbd3ea1cb78914a34a5cf92 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 10 Jun 2024 19:50:47 -0400 Subject: [PATCH] dead showAltInfo --- .../actuators/alternator_controller.cpp | 14 -------------- .../controllers/actuators/alternator_controller.h | 1 - 2 files changed, 15 deletions(-) diff --git a/firmware/controllers/actuators/alternator_controller.cpp b/firmware/controllers/actuators/alternator_controller.cpp index a4a1b8620c..669e236d49 100644 --- a/firmware/controllers/actuators/alternator_controller.cpp +++ b/firmware/controllers/actuators/alternator_controller.cpp @@ -98,22 +98,10 @@ void AlternatorController::onFastCallback() { ClosedLoopController::update(); } - -void showAltInfo(void) { - efiPrintf("alt=%s @%s t=%dms", boolToString(engineConfiguration->isAlternatorControlEnabled), - hwPortname(engineConfiguration->alternatorControlPin), - engineConfiguration->alternatorControl.periodMs); - efiPrintf("p=%.2f/i=%.2f/d=%.2f offset=%.2f", engineConfiguration->alternatorControl.pFactor, - 0, 0, engineConfiguration->alternatorControl.offset); // todo: i & d - efiPrintf("vbatt=%.2f/duty=%.2f/target=%.2f", Sensor::getOrZero(SensorType::BatteryVoltage), currentAltDuty, - engineConfiguration->targetVBatt); -} - void setAltPFactor(float p) { engineConfiguration->alternatorControl.pFactor = p; efiPrintf("setAltPid: %.2f", p); engine->module()->pidReset(); - showAltInfo(); } void AlternatorController::onConfigurationChange(engine_configuration_s const * previousConfiguration) { @@ -121,8 +109,6 @@ void AlternatorController::onConfigurationChange(engine_configuration_s const * } void initAlternatorCtrl() { - addConsoleAction("altinfo", showAltInfo); - engine->module()->init(); if (!isBrainPinValid(engineConfiguration->alternatorControlPin)) diff --git a/firmware/controllers/actuators/alternator_controller.h b/firmware/controllers/actuators/alternator_controller.h index f99f71ff93..04cd74dfa9 100644 --- a/firmware/controllers/actuators/alternator_controller.h +++ b/firmware/controllers/actuators/alternator_controller.h @@ -15,7 +15,6 @@ void initAlternatorCtrl(); void setAltPFactor(float p); void setAltIFactor(float p); void setAltDFactor(float p); -void showAltInfo(void); class AlternatorController : public EngineModule, public ClosedLoopController { public: