parent
5a4c7b38cd
commit
6629b90a7f
|
@ -113,6 +113,12 @@ void mostCommonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMET
|
||||||
initElectronicThrottle(PASS_ENGINE_PARAMETER_SIGNATURE);
|
initElectronicThrottle(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
#endif /* EFI_ELECTRONIC_THROTTLE_BODY */
|
#endif /* EFI_ELECTRONIC_THROTTLE_BODY */
|
||||||
|
|
||||||
|
#if EFI_MAP_AVERAGING
|
||||||
|
if (engineConfiguration->isMapAveragingEnabled) {
|
||||||
|
initMapAveraging(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
}
|
||||||
|
#endif /* EFI_MAP_AVERAGING */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
@ -772,12 +778,6 @@ void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX)
|
||||||
initMalfunctionIndicator();
|
initMalfunctionIndicator();
|
||||||
#endif /* EFI_MALFUNCTION_INDICATOR */
|
#endif /* EFI_MALFUNCTION_INDICATOR */
|
||||||
|
|
||||||
#if EFI_MAP_AVERAGING
|
|
||||||
if (engineConfiguration->isMapAveragingEnabled) {
|
|
||||||
initMapAveraging(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);
|
|
||||||
}
|
|
||||||
#endif /* EFI_MAP_AVERAGING */
|
|
||||||
|
|
||||||
initEgoAveraging(PASS_ENGINE_PARAMETER_SIGNATURE);
|
initEgoAveraging(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
|
|
||||||
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
|
#if EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT
|
||||||
|
|
|
@ -344,7 +344,7 @@ float getMap(void) {
|
||||||
}
|
}
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
void initMapAveraging(Logging *sharedLogger DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
void initMapAveraging(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
logger = sharedLogger;
|
logger = sharedLogger;
|
||||||
|
|
||||||
// startTimer[0].name = "map start0";
|
// startTimer[0].name = "map start0";
|
||||||
|
|
|
@ -64,6 +64,6 @@
|
||||||
#define EFI_BOARD_TEST FALSE
|
#define EFI_BOARD_TEST FALSE
|
||||||
#define EFI_JOYSTICK FALSE
|
#define EFI_JOYSTICK FALSE
|
||||||
|
|
||||||
#define EFI_MAP_AVERAGING FALSE
|
#define EFI_MAP_AVERAGING TRUE
|
||||||
|
|
||||||
#endif /* EFIFEATURES_H_ */
|
#endif /* EFIFEATURES_H_ */
|
||||||
|
|
Loading…
Reference in New Issue