tear down Engine god object #4511

just trying different things
This commit is contained in:
Andrey 2022-09-01 19:24:19 -04:00
parent 059b06292b
commit e6ae70dee6
3 changed files with 8 additions and 3 deletions

View File

@ -6,6 +6,7 @@
#include "wideband_state_generated.h"
#include "electronic_throttle_generated.h"
#include "knock_controller_generated.h"
#include "fuel_computer.h"
template<>
const output_channels_s* getLiveDataAddr() {
@ -54,6 +55,11 @@ const ac_control_s* getLiveDataAddr() {
return &engine->module<AcController>().unmock();
}
template<>
const fuel_computer_s* getLiveDataAddr() {
return engine->fuelComputer;
}
template<>
const fan_control_s* getLiveDataAddr(size_t idx) {
switch (idx) {

View File

@ -3,8 +3,9 @@
class ValueProvider3D;
#include "rusefi_types.h"
#include "fuel_computer_generated.h"
struct IFuelComputer {
struct IFuelComputer : public fuel_computer_s {
virtual mass_t getCycleFuel(mass_t airmass, int rpm, float load) const = 0;
};

View File

@ -10,8 +10,6 @@
#pragma once
#include "global.h"
void initBenchTest();
void onConfigurationChangeBenchTest();