Speeduino
Loading...
Searching...
No Matches
Enumerations | Functions
load_source.h File Reference
#include "statuses.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  LoadSource { LOAD_SOURCE_MAP , LOAD_SOURCE_TPS , LOAD_SOURCE_IMAPEMAP }
 The load source for various tables. More...
 

Functions

static int16_t getLoad (LoadSource algorithm, const statuses &current)
 Get the load value, based the supplied algorithm.
 

Enumeration Type Documentation

◆ LoadSource

The load source for various tables.

Enumerator
LOAD_SOURCE_MAP 

Manifold Absolute Pressure (MAP). Aka Intake MAP (IMAP). I.e. a pressure sensor that reads the pressure (positive or negative) in the intake manifold

LOAD_SOURCE_TPS 

Throttle Position Sensor (TPS)

LOAD_SOURCE_IMAPEMAP 

Ratio of intake pressure to exhaust pressure. A variation of the standard MAP that uses the ratio of inlet manifold pressure to exhaust manifold pressure, something that is particularly useful on turbo engines.

Function Documentation

◆ getLoad()

static int16_t getLoad ( LoadSource  algorithm,
const statuses current 
)
inlinestatic

Get the load value, based the supplied algorithm.

Parameters
algorithmThe load algorithm
currentThe current system state, from which the load is computed.
Returns
The load.
Here is the call graph for this function:
Here is the caller graph for this function: