FreeEMS
0.2.0-SNAPSHOT-282-g9efc524
|
Generate and average the core variables. More...
#include "inc/freeEMS.h"
#include "inc/commsCore.h"
#include "inc/coreVarsGenerator.h"
#include "inc/decoderInterface.h"
Go to the source code of this file.
Macros | |
#define | COREVARSGENERATOR_C |
Functions | |
void | generateCoreVars () |
Calculate and obtain the core variables. |
Generate and average the core variables.
This file contains the function that transfers the raw ADC values to actual physical measurements and averages them.
Definition in file coreVarsGenerator.c.
#define COREVARSGENERATOR_C |
Definition at line 38 of file coreVarsGenerator.c.
void generateCoreVars | ( | void | ) |
Calculate and obtain the core variables.
Each raw ADC value is converted to a usable measurement via a variety of methods. They are then stored in a struct and used as input to the next phase.
Definition at line 50 of file coreVarsGenerator.c.
References ADCBuffer::AAP, CoreVar::AAP, sensorRange::AAPMinimum, sensorRange::AAPRange, ADC_DIVISIONS, ADCBuffers, ADCBuffer::BRV, sensorSource::BRV, CoreVar::BRV, sensorRange::BRVMinimum, sensorRange::BRVRange, ADCBuffer::CHT, sensorSource::CHT, CoreVar::CHT, CHTTransferTable, CoreVars, DEGREES_C, degreeTicksPerMinute, CoreVar::DRPM, ADCBuffer::EGO, CoreVar::EGO, ADCBuffer::EGO2, CoreVar::EGO2, sensorRange::EGOMinimum, sensorRange::EGORange, fixedConfigs2, ADCBuffer::IAP, CoreVar::IAP, ADCBuffer::IAT, sensorSource::IAT, CoreVar::IAT, IATTransferTable, ADCBuffer::MAF, CoreVar::MAF, MAFTransferTable, ADCBuffer::MAP, CoreVar::MAP, sensorRange::MAPMinimum, sensorRange::MAPRange, ADCBuffer::MAT, CoreVar::MAT, PERCENT, sensorPreset::presetBRV, sensorPreset::presetCHT, sensorPreset::presetIAT, CoreVar::RPM, fixedConfig2::sensorPresets, fixedConfig2::sensorRanges, fixedConfig2::sensorSources, SOURCE_LINEAR, SOURCE_PRESET, ticksPerDegree, ADCBuffer::TPS, CoreVar::TPS, TPSADCRange, sensorRange::TPSMaximumADC, sensorRange::TPSMinimumADC, and VOLTS.
Referenced by main().