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

Detailed Description

body control unit use-case: inject many sensors from external ECU via ODB-II request/response this is totally different from Lua "set" sensor method

Date
March 31, 2020
Author
Matthew Kennedy, (c) 2020

Definition in file init_can_sensors.cpp.

Functions

void initCanSensors ()
 

Variables

ObdCanSensor< 2, 0 > obdRpmSensor (PID_RPM, ODB_RPM_MULT, SensorType::Rpm)
 
ObdCanSensor< 1, ODB_TEMP_EXTRA > obdCltSensor (PID_COOLANT_TEMP, 1, SensorType::Clt)
 
ObdCanSensor< 1, ODB_TEMP_EXTRA > obdIatSensor (PID_INTAKE_TEMP, 1, SensorType::Iat)
 
ObdCanSensor< 1, 0 > obdTpsSensor (PID_INTAKE_TEMP, ODB_TPS_BYTE_PERCENT, SensorType::Tps1)
 

Function Documentation

◆ initCanSensors()

void initCanSensors ( )

Definition at line 41 of file init_can_sensors.cpp.

41 {
47 }
48}
void registerCanSensor(CanSensorBase &sensor)
Definition can_rx.cpp:92
static constexpr engine_configuration_s * engineConfiguration
ObdCanSensor< 1, ODB_TEMP_EXTRA > obdIatSensor(PID_INTAKE_TEMP, 1, SensorType::Iat)
ObdCanSensor< 1, ODB_TEMP_EXTRA > obdCltSensor(PID_COOLANT_TEMP, 1, SensorType::Clt)
ObdCanSensor< 1, 0 > obdTpsSensor(PID_INTAKE_TEMP, ODB_TPS_BYTE_PERCENT, SensorType::Tps1)
ObdCanSensor< 2, 0 > obdRpmSensor(PID_RPM, ODB_RPM_MULT, SensorType::Rpm)

Referenced by initNewSensors().

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

Variable Documentation

◆ obdCltSensor

ObdCanSensor< 1, ODB_TEMP_EXTRA > obdCltSensor(PID_COOLANT_TEMP, 1, SensorType::Clt) ( PID_COOLANT_TEMP  ,
,
SensorType::Clt   
)

Referenced by initCanSensors().

◆ obdIatSensor

ObdCanSensor< 1, ODB_TEMP_EXTRA > obdIatSensor(PID_INTAKE_TEMP, 1, SensorType::Iat) ( PID_INTAKE_TEMP  ,
,
SensorType::Iat   
)

Referenced by initCanSensors().

◆ obdRpmSensor

ObdCanSensor< 2, 0 > obdRpmSensor(PID_RPM, ODB_RPM_MULT, SensorType::Rpm) ( PID_RPM  ,
ODB_RPM_MULT  ,
SensorType::Rpm   
)

Referenced by initCanSensors().

◆ obdTpsSensor

ObdCanSensor< 1, 0 > obdTpsSensor(PID_INTAKE_TEMP, ODB_TPS_BYTE_PERCENT, SensorType::Tps1) ( PID_INTAKE_TEMP  ,
ODB_TPS_BYTE_PERCENT  ,
SensorType::Tps1   
)

Referenced by initCanSensors().

Go to the source code of this file.