mirror of https://github.com/rusefi/rusefi.git
only: encapsulation
This commit is contained in:
parent
c72f3b4670
commit
5f6e0f6586
|
@ -17,8 +17,8 @@
|
|||
#error "Unexpected OS ACCESS HERE"
|
||||
#endif
|
||||
|
||||
static boostOpenLoop_Map3D_t boostMapOpen{"bo"};
|
||||
static boostOpenLoop_Map3D_t boostMapClosed{"bc"};
|
||||
static Map3D<BOOST_RPM_COUNT, BOOST_LOAD_COUNT, uint8_t, uint8_t, uint8_t> boostMapOpen{"bo"};
|
||||
static Map3D<BOOST_RPM_COUNT, BOOST_LOAD_COUNT, uint8_t, uint8_t, uint8_t> boostMapClosed{"bc"};
|
||||
static SimplePwm boostPwmControl("boost");
|
||||
|
||||
void BoostController::init(IPwm* pwm, const ValueProvider3D* openLoopMap, const ValueProvider3D* closedLoopTargetMap, pid_s* pidParams) {
|
||||
|
|
|
@ -7,12 +7,14 @@ static GppwmChannel channels[GPPWM_CHANNELS];
|
|||
static OutputPin pins[GPPWM_CHANNELS];
|
||||
static SimplePwm outputs[GPPWM_CHANNELS];
|
||||
|
||||
typedef Map3D<GPPWM_RPM_COUNT, GPPWM_LOAD_COUNT, uint8_t, int16_t, int16_t> gppwm_Map3D_t;
|
||||
|
||||
static gppwm_Map3D_t table1{"gppwm1"};
|
||||
static gppwm_Map3D_t table2{"gppwm2"};
|
||||
static gppwm_Map3D_t table3{"gppwm3"};
|
||||
static gppwm_Map3D_t table4{"gppwm4"};
|
||||
|
||||
static gppwm_Map3D_t* tables[] = {
|
||||
static gppwm_Map3D_t* const tables[] = {
|
||||
&table1,
|
||||
&table2,
|
||||
&table3,
|
||||
|
|
|
@ -127,13 +127,8 @@ private:
|
|||
const char *m_name;
|
||||
};
|
||||
|
||||
typedef Map3D<FUEL_RPM_COUNT, FUEL_LOAD_COUNT, uint8_t, uint16_t, uint16_t> lambda_Map3D_t;
|
||||
typedef Map3D<FUEL_RPM_COUNT, FUEL_LOAD_COUNT, uint16_t, uint16_t, uint16_t> fuel_Map3D_t;
|
||||
typedef Map3D<BARO_CORR_SIZE, BARO_CORR_SIZE, float, float, float> baroCorr_Map3D_t;
|
||||
typedef Map3D<PEDAL_TO_TPS_SIZE, PEDAL_TO_TPS_SIZE, uint8_t, uint8_t, uint8_t> pedal2tps_t;
|
||||
typedef Map3D<BOOST_RPM_COUNT, BOOST_LOAD_COUNT, uint8_t, uint8_t, uint8_t> boostOpenLoop_Map3D_t;
|
||||
typedef Map3D<BOOST_RPM_COUNT, BOOST_LOAD_COUNT, uint8_t, uint8_t, uint8_t> boostClosedLoop_Map3D_t;
|
||||
typedef Map3D<GPPWM_RPM_COUNT, GPPWM_LOAD_COUNT, uint8_t, int16_t, int16_t> gppwm_Map3D_t;
|
||||
typedef Map3D<FUEL_RPM_COUNT, FUEL_LOAD_COUNT, uint16_t, uint16_t, uint16_t> mapEstimate_Map3D_t;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue