refactoring: reducing outputChannels copy
This commit is contained in:
parent
525a62b410
commit
71e5fbcb55
|
@ -92,11 +92,7 @@ uint16_t rpmAcceleration;dRPM;"RPM/s",1, 0, 0, 5, 0
|
|||
! Corrections
|
||||
! todo: inline this further to injectorModel deadTime
|
||||
uint16_t autoscale injectorLagMs;@@GAUGE_NAME_INJECTOR_LAG@@;"ms",{1/@@PACK_MULT_MS@@}, 0, 0, 0, 0
|
||||
! Values used for load axes for fuel/ign tables
|
||||
! These may or may not be the same value, depending on mode
|
||||
uint16_t autoscale fuelingLoad;@@GAUGE_NAME_FUEL_LOAD@@;"%",{1/100}, 0, 0, 0, 0
|
||||
|
||||
uint16_t autoscale ignitionLoad;@@GAUGE_NAME_IGNITION_LOAD@@;"%",{1/100}, 0, 0, 0, 0
|
||||
! we want a hash of engineMake+engineCode+vehicleName in the log file in order to match TS logs to rusEFI Online tune
|
||||
uint16_t autoscale engineMakeCodeNameCrc16;@@GAUGE_NAME_ENGINE_CRC16@@;"crc16",1, 0, 0, 0, 0
|
||||
! Wall model AE
|
||||
|
|
|
@ -626,8 +626,6 @@ static void updateFuelCorrections() {
|
|||
}
|
||||
|
||||
static void updateFuelLoads() {
|
||||
engine->outputChannels.fuelingLoad = getFuelingLoad();
|
||||
engine->outputChannels.ignitionLoad = getIgnitionLoad();
|
||||
engine->outputChannels.veTableYAxis = engine->engineState.currentVeLoad;
|
||||
engine->outputChannels.afrTableYAxis = engine->fuelComputer->currentAfrLoad;
|
||||
}
|
||||
|
|
|
@ -51,10 +51,6 @@ public:
|
|||
float currentVe = 0;
|
||||
float currentVeLoad = 0;
|
||||
|
||||
|
||||
float fuelingLoad = 0;
|
||||
float ignitionLoad = 0;
|
||||
|
||||
/**
|
||||
* Raw fuel injection duration produced by current fuel algorithm, without any correction
|
||||
*/
|
||||
|
|
|
@ -97,5 +97,12 @@ running_fuel_s running
|
|||
int fuelInjectionCounter
|
||||
int sparkCounter
|
||||
|
||||
! engine_state2_s
|
||||
|
||||
! Values used for load axes for fuel/ign tables
|
||||
! These may or may not be the same value, depending on mode
|
||||
float fuelingLoad;@@GAUGE_NAME_FUEL_LOAD@@
|
||||
float ignitionLoad;@@GAUGE_NAME_IGNITION_LOAD@@
|
||||
|
||||
|
||||
! engine_state_s
|
||||
end_struct
|
||||
|
|
Loading…
Reference in New Issue