tear down Engine god object #4511

just trying different things
This commit is contained in:
Andrey 2022-09-01 19:00:16 -04:00
parent 716b0c1f60
commit d1917a2a62
6 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,8 @@
#include "pch.h"
#include "engine_configuration.h"
#include "sensor.h"
#include "dfco.h"
bool DfcoController::getState() const {
if (!engineConfiguration->coastingFuelCutEnabled) {

View File

@ -1,4 +1,10 @@
/**
* @file dfco.h
*/
#pragma once
#include "engine_module.h"
#include "timer.h"
// DFCO = deceleration fuel cut off, ie, save gas when your foot is off the pedal
class DfcoController : public EngineModule {

View File

@ -4,7 +4,6 @@
#include <rusefi/arrays.h>
#include "engine_configuration.h"
#include "sensor.h"
#include "engine_module.h"
#include "error_handling.h"
#include "injector_model.h"

View File

@ -2,6 +2,7 @@
#include "expected.h"
#include "injector_model_generated.h"
#include "engine_module.h"
struct IInjectorModel : public EngineModule {
virtual void prepare() = 0;

3
firmware/pch/readme.md Normal file
View File

@ -0,0 +1,3 @@
This folder is about Precompiled Headers
See rusefi_pch.mk

View File

@ -1,3 +1,7 @@
/**
* @file timer.h
*/
#pragma once
#include "efitime.h"