smaller step forward

This commit is contained in:
Andrey 2022-09-01 10:06:00 -04:00
parent 89b32418a1
commit 5cb41535d5
3 changed files with 3 additions and 6 deletions

View File

@ -94,8 +94,6 @@ uint16_t rpmAcceleration;dRPM;"RPM/s",1, 0, 0, 5, 0
uint16_t autoscale iatCorrection;@@GAUGE_NAME_FUEL_IAT_CORR@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
uint16_t autoscale cltCorrection;@@GAUGE_NAME_FUEL_CLT_CORR@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
uint16_t autoscale baroCorrection;@@GAUGE_NAME_FUEL_BARO_CORR@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
! todo: migrate to currentEngineDecodedPhase
uint16_t autoscale currentEnginePhase;Engine Phase;"deg",1, 0, 0, 0, 0
! Wall model AE
uint16_t autoscale wallFuelAmount;@@GAUGE_NAME_FUEL_WALL_AMOUNT@@;"mg",{1/@@PACK_MULT_FUEL_MASS@@}, 0, 0, 0, 0
int16_t autoscale wallFuelCorrection;@@GAUGE_NAME_FUEL_WALL_CORRECTION@@;"mg",{1/@@PACK_MULT_FUEL_MASS@@}, 0, 0, 0, 0

View File

@ -705,9 +705,8 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
// Adjust so currentPhase is in engine-space angle, not trigger-space angle
auto currentPhase = wrapAngleMethod(currentPhaseFromSyncPoint - tdcPosition(), "currentEnginePhase", CUSTOM_ERR_6555);
#if EFI_TUNER_STUDIO
engine->outputChannels.currentEnginePhase = currentPhase;
#endif // EFI_TUNER_STUDIO
// todo: why is local variable needed? is that because generated field type is not proper 'float' but scaled_channel?
currentEngineDecodedPhase = currentPhase;
// Record precise time and phase of the engine. This is used for VVT decode.
{

View File

@ -11,7 +11,7 @@ int vvtCamCounter
uint8_t mapVvt_MAP_AT_CYCLE_COUNT;;"", 1, 0, -10000, 10000, 3
uint8_t mapVvt_map_peak;;"", 1, 0, -10000, 10000, 3
float autoscale currentEngineDecodedPhase;Engine Phase2;"deg",1, 0, 0, 0, 0
float autoscale currentEngineDecodedPhase;Engine Phase;"deg",1, 0, 0, 0, 0
end_struct