FreeEMS
0.2.0-SNAPSHOT-282-g9efc524
|
Generate the derived variables. More...
#include "inc/freeEMS.h"
#include "inc/commsCore.h"
#include "inc/tableLookup.h"
#include "inc/derivedVarsGenerator.h"
#include "inc/locationIDs.h"
#include "inc/decoderInterface.h"
Go to the source code of this file.
Macros | |
#define | DERIVEDVARSGENERATOR_C |
Functions | |
void | generateDerivedVars () |
Use core variables to lookup and calculate the derived variables. |
Generate the derived variables.
Second level variables are derived from the core variables and generated here.
Definition in file derivedVarsGenerator.c.
#define DERIVEDVARSGENERATOR_C |
Definition at line 37 of file derivedVarsGenerator.c.
void generateDerivedVars | ( | void | ) |
Use core variables to lookup and calculate the derived variables.
This function uses the core variables to lookup and calculate further second order variables such as load, VE, Lamdda, Transient fuel correction, engine temperature enrichment, Injector dead time, etc.
Definition at line 52 of file derivedVarsGenerator.c.
References CoreVar::AAP, DerivedVar::Advance, fixedConfig2::algorithmSettings, ANGLE_FACTOR, CoreVar::BRV, CoreVar::CHT, CoreVars, DerivedVars, CoreVar::DRPM, DerivedVar::Dwell, DWELL_FIXED, DWELL_RPM, algorithmSetting::dwellFixedPeriod, algorithmSetting::dwellType, DerivedVar::ETE, FALSE, fixedConfigs2, DerivedVar::IDT, IgnitionAdvanceTableMainLocationID, KPA, DerivedVar::Lambda, LambdaTableLocationID, LOAD_AAP, LOAD_TPS, DerivedVar::LoadMain, algorithmSetting::loadType, lookupMainTable(), lookupTwoDTableUS(), CoreVar::MAP, CoreVar::RPM, DerivedVar::TFCTotal, ticks_per_degree_multiplier, CoreVar::TPS, and TRUE.
Referenced by main().