From a7b9dbce965a5cd573f3f0a62f6336a34d4633e2 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 21 Jan 2016 17:02:40 -0500 Subject: [PATCH] auto-sync --- firmware/controllers/algo/advance_map.cpp | 3 +++ firmware/hw_layer/adc_inputs.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/algo/advance_map.cpp b/firmware/controllers/algo/advance_map.cpp index 035f84dffa..8306e21c6d 100644 --- a/firmware/controllers/algo/advance_map.cpp +++ b/firmware/controllers/algo/advance_map.cpp @@ -163,6 +163,9 @@ float getInitialAdvance(int rpm, float map, float advanceMax) { return round10(advance + 0.3 * (100 - map)); } +/** + * this method builds a good-enough base timing advance map bases on a number of heuristics + */ void buildTimingMap(float advanceMax DECLARE_ENGINE_PARAMETER_S) { if (engineConfiguration->algorithm != LM_SPEED_DENSITY && engineConfiguration->algorithm != LM_MAP) { diff --git a/firmware/hw_layer/adc_inputs.cpp b/firmware/hw_layer/adc_inputs.cpp index 0ba0a21391..0e7b1a191a 100644 --- a/firmware/hw_layer/adc_inputs.cpp +++ b/firmware/hw_layer/adc_inputs.cpp @@ -64,7 +64,6 @@ AdcDevice::AdcDevice(ADCConversionGroup* hwConfig) { static char LOGGING_BUFFER[500]; static Logging logger("ADC", LOGGING_BUFFER, sizeof(LOGGING_BUFFER)); -static int adcSlowCallbackCounter = 0; // todo: move this flag to Engine god object static int adcDebugReporting = false; @@ -454,8 +453,6 @@ static void adc_callback_slow(ADCDriver *adcp, adcsample_t *buffer, size_t n) { if (adcp->state == ADC_COMPLETE) { /* Calculates the average values from the ADC samples.*/ - adcSlowCallbackCounter++; - // newState.time = chimeNow(); for (int i = 0; i < slowAdc.size(); i++) { /**