rusefi-1/firmware/controllers/engine_cycle/map_averaging.h

30 lines
571 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file map_averaging.h
*
* @date Dec 11, 2013
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*/
2019-11-14 21:00:13 -08:00
#pragma once
2015-07-10 06:01:56 -07:00
2019-04-12 19:07:03 -07:00
#if EFI_MAP_AVERAGING
2015-07-10 06:01:56 -07:00
2019-04-12 19:07:03 -07:00
#if HAL_USE_ADC
2018-02-06 12:58:57 -08:00
void mapAveragingAdcCallback(adcsample_t newValue);
2015-07-10 06:01:56 -07:00
#endif
void initMapAveraging();
void refreshMapAveragingPreCalc();
2020-10-03 23:09:12 -07:00
void mapAveragingTriggerCallback(
uint32_t index, efitick_t edgeTimestamp);
void onMapAveraged(float mapKpa, efitick_t nowNt);
SensorResult convertMap(float volts);
#if EFI_TUNER_STUDIO
2018-02-06 13:21:41 -08:00
void postMapState(TunerStudioOutputChannels *tsOutputChannels);
#endif
2015-07-10 06:01:56 -07:00
#endif /* EFI_MAP_AVERAGING */