FreeEMS
0.2.0SNAPSHOT285g028e24c

Use this block to make it easy to manage the derived variables. More...
#include <containerTypes.h>
Data Fields  
unsigned short  LoadMain 
Configurable unit of load, same scale as VE by default.  
unsigned short  VEMain 
Divide by 512 to get 0  128%.  
unsigned short  Lambda 
Divide by 32768 to get Lamda 0  2.0.  
unsigned short  AirFlow 
Top half of the equation  intermediate, take this out of derived vars into own special struct with other intermediates.  
unsigned short  densityAndFuel 
Bottom half of the equation  ditto, or, just ditch. This is dev/debug code, really...  
unsigned short  BasePW 
Raw PW before corrections divide by PW_TICK_FACTOR for milli seconds.  
unsigned short  ETE 
Engine Temperature Enrichment percentage correction divide by 327.68 for 0  200%.  
signed short  TFCTotal 
Transient fuel correction PW (+/) divide by PW_TICK_FACTOR for milli seconds.  
unsigned short  EffectivePW 
Actual PW of fuel delivery, before per channel corrections, divide by PW_TICK_FACTOR for milli seconds.  
unsigned short  IDT 
PW duration before fuel flow begins, before per channel corrections, divide by PW_TICK_FACTOR for milli seconds.  
unsigned short  RefPW 
Reference electrical PW what each cylinder is based on, used for all general decisions, divide by PW_TICK_FACTOR for milli seconds.  
unsigned short  Advance 
Ignition advance (scaled degrees / ANGLE_FACTOR = degrees)  
unsigned short  Dwell 
Dwell period, divide by PW_TICK_FACTOR for milli seconds. 
Use this block to make it easy to manage the derived variables.
Calculated from core vars stored in CoreVar .
Definition at line 102 of file containerTypes.h.
unsigned short DerivedVar::LoadMain 
Configurable unit of load, same scale as VE by default.
Definition at line 104 of file containerTypes.h.
Referenced by generateDerivedVars().
unsigned short DerivedVar::VEMain 
Divide by 512 to get 0  128%.
Definition at line 105 of file containerTypes.h.
Referenced by calculateFuelAndIgnition().
unsigned short DerivedVar::Lambda 
Divide by 32768 to get Lamda 0  2.0.
Definition at line 106 of file containerTypes.h.
Referenced by calculateFuelAndIgnition(), and generateDerivedVars().
unsigned short DerivedVar::AirFlow 
Top half of the equation  intermediate, take this out of derived vars into own special struct with other intermediates.
Definition at line 109 of file containerTypes.h.
Referenced by calculateFuelAndIgnition().
unsigned short DerivedVar::densityAndFuel 
Bottom half of the equation  ditto, or, just ditch. This is dev/debug code, really...
Definition at line 110 of file containerTypes.h.
Referenced by calculateFuelAndIgnition().
unsigned short DerivedVar::BasePW 
Raw PW before corrections divide by PW_TICK_FACTOR for milli seconds.
Definition at line 112 of file containerTypes.h.
Referenced by calculateFuelAndIgnition().
unsigned short DerivedVar::ETE 
Engine Temperature Enrichment percentage correction divide by 327.68 for 0  200%.
Definition at line 113 of file containerTypes.h.
Referenced by calculateFuelAndIgnition(), and generateDerivedVars().
signed short DerivedVar::TFCTotal 
Transient fuel correction PW (+/) divide by PW_TICK_FACTOR for milli seconds.
Definition at line 114 of file containerTypes.h.
Referenced by calculateFuelAndIgnition(), and generateDerivedVars().
unsigned short DerivedVar::EffectivePW 
Actual PW of fuel delivery, before per channel corrections, divide by PW_TICK_FACTOR for milli seconds.
Definition at line 116 of file containerTypes.h.
Referenced by calculateFuelAndIgnition().
unsigned short DerivedVar::IDT 
PW duration before fuel flow begins, before per channel corrections, divide by PW_TICK_FACTOR for milli seconds.
Definition at line 117 of file containerTypes.h.
Referenced by calculateFuelAndIgnition(), generateDerivedVars(), and main().
unsigned short DerivedVar::RefPW 
Reference electrical PW what each cylinder is based on, used for all general decisions, divide by PW_TICK_FACTOR for milli seconds.
Definition at line 118 of file containerTypes.h.
Referenced by calculateFuelAndIgnition(), and decodePacketAndRespond().
unsigned short DerivedVar::Advance 
Ignition advance (scaled degrees / ANGLE_FACTOR = degrees)
Definition at line 120 of file containerTypes.h.
Referenced by generateDerivedVars(), and scheduleOutputs().
unsigned short DerivedVar::Dwell 
Dwell period, divide by PW_TICK_FACTOR for milli seconds.
Definition at line 121 of file containerTypes.h.
Referenced by decodePacketAndRespond(), generateDerivedVars(), and scheduleOutputs().