From dd9c9e7a81f539c923045580c47f8833823cf204 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 29 Jul 2020 02:12:11 -0700 Subject: [PATCH] printFloatArray --- .../controllers/algo/engine_configuration.h | 1 - firmware/controllers/settings.cpp | 32 ------------------- 2 files changed, 33 deletions(-) diff --git a/firmware/controllers/algo/engine_configuration.h b/firmware/controllers/algo/engine_configuration.h index 550948181d..5931a0d673 100644 --- a/firmware/controllers/algo/engine_configuration.h +++ b/firmware/controllers/algo/engine_configuration.h @@ -39,7 +39,6 @@ void setWholeIatCorrTimingTable(float value DECLARE_CONFIG_PARAMETER_SUFFIX); void setWholeTimingTable_d(angle_t value DECLARE_CONFIG_PARAMETER_SUFFIX); #define setWholeTimingTable(x) setWholeTimingTable_d(x PASS_CONFIG_PARAMETER_SUFFIX); void setConstantDwell(floatms_t dwellMs DECLARE_CONFIG_PARAMETER_SUFFIX); -void printFloatArray(const char *prefix, float array[], int size); // needed by bootloader void setDefaultBasePins(DECLARE_CONFIG_PARAMETER_SIGNATURE); diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index e06e6f91d1..9cbe37b392 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -60,25 +60,6 @@ static Logging logger("settings control", LOGGING_BUFFER, sizeof(LOGGING_BUFFER) EXTERN_ENGINE; -/* - static void printIntArray(int array[], int size) { - for (int j = 0; j < size; j++) { - print("%d ", array[j]); - } - print("\r\n"); - } - */ - -void printFloatArray(const char *prefix, float array[], int size) { - appendMsgPrefix(&logger); - appendPrintf(&logger, prefix); - for (int j = 0; j < size; j++) { - appendPrintf(&logger, "%.2f ", array[j]); - } - appendMsgPostfix(&logger); - scheduleLogging(&logger); -} - void printSpiState(Logging *logger, const engine_configuration_s *engineConfiguration) { scheduleMsg(logger, "spi 1=%s/2=%s/3=%s/4=%s", boolToString(engineConfiguration->is_enabled_spi_1), @@ -211,19 +192,6 @@ void printConfiguration(const engine_configuration_s *engineConfiguration) { // print("\r\n"); } -// printFloatArray("RPM bin: ", config->fuelRpmBins, FUEL_RPM_COUNT); -// -// printFloatArray("Y bin: ", config->fuelLoadBins, FUEL_LOAD_COUNT); -// -// printFloatArray("CLT: ", config->cltFuelCorr, CLT_CURVE_SIZE); -// printFloatArray("CLT bins: ", config->cltFuelCorrBins, CLT_CURVE_SIZE); -// -// printFloatArray("IAT: ", config->iatFuelCorr, IAT_CURVE_SIZE); -// printFloatArray("IAT bins: ", config->iatFuelCorrBins, IAT_CURVE_SIZE); -// -// printFloatArray("vBatt: ", engineConfiguration->injector.battLagCorr, VBAT_INJECTOR_CURVE_SIZE); -// printFloatArray("vBatt bins: ", engineConfiguration->injector.battLagCorrBins, VBAT_INJECTOR_CURVE_SIZE); - scheduleMsg(&logger, "rpmHardLimit: %d/operationMode=%d", engineConfiguration->rpmHardLimit, engine->getOperationMode(PASS_ENGINE_PARAMETER_SIGNATURE));