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
|
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
void initMapAveraging();
|
|
|
|
void refreshMapAveragingPreCalc();
|
2019-10-14 03:18:08 -07:00
|
|
|
|
2020-10-03 23:09:12 -07:00
|
|
|
void mapAveragingTriggerCallback(
|
2021-11-16 01:15:29 -08:00
|
|
|
uint32_t index, efitick_t edgeTimestamp);
|
2020-10-03 22:43:02 -07:00
|
|
|
|
2021-10-04 14:18:08 -07:00
|
|
|
void onMapAveraged(float mapKpa, efitick_t nowNt);
|
|
|
|
SensorResult convertMap(float volts);
|
|
|
|
|
2019-10-14 03:18:08 -07:00
|
|
|
#if EFI_TUNER_STUDIO
|
2018-02-06 13:21:41 -08:00
|
|
|
void postMapState(TunerStudioOutputChannels *tsOutputChannels);
|
2019-10-14 03:18:08 -07:00
|
|
|
#endif
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* EFI_MAP_AVERAGING */
|