auto-sync

This commit is contained in:
rusEfi 2016-01-21 17:02:40 -05:00
parent 7cc9e68afb
commit a7b9dbce96
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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++) {
/**