Speeduino
Loading...
Searching...
No Matches
Enumerations | Functions
load_source.h File Reference
#include <avr-fast-div.h>
#include "statuses.h"

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 uint16_t getLoad (LoadSource algorithm, const statuses &current)
 Get the load value, based the supplied algorithm.
 

Enumeration Type Documentation

◆ LoadSource

enum 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 uint16_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.