#include "timers.h"
#include "config_pages.h"
#include "statuses.h"
#include "table2d.h"
Go to the source code of this file.
◆ ADCFILTER_BARO_DEFAULT
| #define ADCFILTER_BARO_DEFAULT 64U |
◆ ADCFILTER_BAT_DEFAULT
| #define ADCFILTER_BAT_DEFAULT 128U |
◆ ADCFILTER_CLT_DEFAULT
| #define ADCFILTER_CLT_DEFAULT 180U |
◆ ADCFILTER_IAT_DEFAULT
| #define ADCFILTER_IAT_DEFAULT 180U |
◆ ADCFILTER_MAP_DEFAULT
| #define ADCFILTER_MAP_DEFAULT 20U |
◆ ADCFILTER_O2_DEFAULT
| #define ADCFILTER_O2_DEFAULT 128U |
◆ ADCFILTER_PSI_DEFAULT
| #define ADCFILTER_PSI_DEFAULT 150U |
◆ ADCFILTER_TPS_DEFAULT
| #define ADCFILTER_TPS_DEFAULT 50U |
◆ BARO_READ_TIMER_BIT
Define the baro sensor read frequency.
◆ BAT_READ_TIMER_BIT
Define the battery sensor read frequency.
◆ BIT_SENSORS_AUX_ENBL
| #define BIT_SENSORS_AUX_ENBL 0 |
◆ BIT_SENSORS_BARO_SAVED
| #define BIT_SENSORS_BARO_SAVED 1 |
◆ BIT_SENSORS_UNUSED2
| #define BIT_SENSORS_UNUSED2 2 |
◆ BIT_SENSORS_UNUSED3
| #define BIT_SENSORS_UNUSED3 3 |
◆ BIT_SENSORS_UNUSED4
| #define BIT_SENSORS_UNUSED4 4 |
◆ BIT_SENSORS_UNUSED5
| #define BIT_SENSORS_UNUSED5 5 |
◆ BIT_SENSORS_UNUSED6
| #define BIT_SENSORS_UNUSED6 6 |
◆ BIT_SENSORS_UNUSED7
| #define BIT_SENSORS_UNUSED7 7 |
◆ CLT_READ_TIMER_BIT
Define the TPS sensor read frequency.
Define the coolant sensor read frequency.
◆ FILTER_FLEX_DEFAULT
| #define FILTER_FLEX_DEFAULT 75U |
◆ IAT_READ_TIMER_BIT
Define the IAT sensor read frequency.
◆ MAP_READ_TIMER_BIT
Define the MAP sensor read frequency.
◆ O2_READ_TIMER_BIT
Define the O2 sensor read frequency.
◆ TPS_READ_FREQUENCY
| #define TPS_READ_FREQUENCY 30 |
◆ VSS_GEAR_HYSTERESIS
| #define VSS_GEAR_HYSTERESIS 10U |
◆ VSS_SAMPLES
◆ flexPulse()
◆ getAnalogKnock()
| uint8_t getAnalogKnock |
( |
void |
| ) |
|
◆ getMAPDelta()
| int16_t getMAPDelta |
( |
void |
| ) |
|
Get the MAP change between the last 2 readings.
◆ getMAPDeltaTime()
| uint32_t getMAPDeltaTime |
( |
void |
| ) |
|
Get the time in µS between the last 2 MAP readings.
◆ initialiseADC()
| void initialiseADC |
( |
void |
| ) |
|
Init all ADC conversions by setting resolutions, etc.
◆ initialiseCLT()
| void initialiseCLT |
( |
void |
| ) |
|
Initial reading of the coolant sensor, primarily to make sure the priming pulsewidth is correct.
◆ initialiseFlexSensor()
| void initialiseFlexSensor |
( |
config2 & |
page2, |
|
|
statuses & |
current, |
|
|
uint8_t |
pin |
|
) |
| |
◆ initialiseMAPBaro()
| void initialiseMAPBaro |
( |
void |
| ) |
|
Initialize the MAP calculation & Baro values.
◆ initialiseTPS()
| void initialiseTPS |
( |
void |
| ) |
|
Initial reading of the TPS sensor, primarily to detect flood clear state.
◆ knockPulse()
◆ readAuxanalog()
| uint16_t readAuxanalog |
( |
uint8_t |
analogPin | ) |
|
◆ readAuxdigital()
| uint16_t readAuxdigital |
( |
uint8_t |
digitalPin | ) |
|
◆ readPolledSensors()
| void readPolledSensors |
( |
byte |
loopTimer | ) |
|
Read the sensors that are polled at every loop. This includes the TPS, MAP, CLT, IAT and O2 sensors.
◆ resetMAPcycleAndEvent()
| void resetMAPcycleAndEvent |
( |
void |
| ) |
|
◆ vssGetPulseGap()
| uint32_t vssGetPulseGap |
( |
uint8_t |
historyIndex | ) |
|
Returns the VSS pulse gap for a given history point.
- Parameters
-
| historyIndex | The gap number that is wanted. EG: historyIndex = 0 = Latest entry historyIndex = 1 = 2nd entry entry |
◆ vssPulse()
The ISR function for VSS pulses.
◆ cltCalibrationTable
◆ flexCounter
| volatile uint8_t flexCounter |
|
extern |
◆ flexPulseWidth
| volatile uint32_t flexPulseWidth |
|
extern |
◆ iatCalibrationTable
◆ o2CalibrationTable
◆ statusSensors