rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
init_aux_speed_sensor.cpp File Reference

Functions

void initAuxSpeedSensors ()
 
void deinitAuxSpeedSensors ()
 

Variables

static FrequencySensor auxSpeed1 (SensorType::AuxSpeed1, MS2NT(500))
 
static FrequencySensor auxSpeed2 (SensorType::AuxSpeed2, MS2NT(500))
 
 converter
 
static WheelSlipBasedOnAuxSpeedSensor wheelSlipSensor
 

Function Documentation

◆ deinitAuxSpeedSensors()

void deinitAuxSpeedSensors ( )

Definition at line 51 of file init_aux_speed_sensor.cpp.

51 {
54 wheelSlipSensor.unregister();
55}
static FrequencySensor auxSpeed2(SensorType::AuxSpeed2, MS2NT(500))
static WheelSlipBasedOnAuxSpeedSensor wheelSlipSensor
static FrequencySensor auxSpeed1(SensorType::AuxSpeed1, MS2NT(500))

Referenced by stopSensors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initAuxSpeedSensors()

void initAuxSpeedSensors ( )

Definition at line 41 of file init_aux_speed_sensor.cpp.

41 {
42 auxSpeed1.useBiQuad = engineConfiguration->useBiQuadOnAuxSpeedSensors;
43 auxSpeed1.initIfValid(engineConfiguration->auxSpeedSensorInputPin[0], converter, engineConfiguration->auxFrequencyFilter);
44 auxSpeed2.initIfValid(engineConfiguration->auxSpeedSensorInputPin[1], converter, 0.05f);
45
46 if (engineConfiguration->useAuxSpeedForSlipRatio) {
47 wheelSlipSensor.Register();
48 }
49}
void initIfValid(brain_pin_e pin, SensorConverter &converter, float filterParameter)
static constexpr engine_configuration_s * engineConfiguration
converter

Referenced by sensorStartUpOrReconfiguration().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ auxSpeed1

FrequencySensor auxSpeed1(SensorType::AuxSpeed1, MS2NT(500)) ( SensorType::AuxSpeed1  ,
MS2NT(500)   
)
static

◆ auxSpeed2

FrequencySensor auxSpeed2(SensorType::AuxSpeed2, MS2NT(500)) ( SensorType::AuxSpeed2  ,
MS2NT(500)   
)
static

◆ converter

converter
static

◆ wheelSlipSensor

WheelSlipBasedOnAuxSpeedSensor wheelSlipSensor
static

Definition at line 39 of file init_aux_speed_sensor.cpp.

Referenced by deinitAuxSpeedSensors(), and initAuxSpeedSensors().

Go to the source code of this file.