rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
init_can_sensors.cpp
Go to the documentation of this file.
1/**
2 * @file init_can_sensors.cpp
3 * body control unit use-case: inject many sensors from external ECU via ODB-II request/response
4 * this is totally different from Lua "set" sensor method
5 *
6 * @date March 31, 2020
7 * @author Matthew Kennedy, (c) 2020
8 */
9
10#include "pch.h"
11
12#if EFI_PROD_CODE && EFI_CAN_SUPPORT
13#include "can_sensor.h"
14#include "can.h"
15
17 PID_RPM, ODB_RPM_MULT,
19);
20
22 PID_COOLANT_TEMP, 1,
24);
25
27 PID_INTAKE_TEMP, 1,
29);
30
32 PID_INTAKE_TEMP, ODB_TPS_BYTE_PERCENT,
34);
35
36//ObdCanSensor<1, ODB_TPS_BYTE_PERCENT> obdTpsSensor(
37// PID_ENGINE_LOAD,
38// SensorType::Tps, TIMEOUT
39//);
40
49#endif // EFI_PROD_CODE && EFI_CAN_SUPPORT
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)
void initCanSensors()
ObdCanSensor< 1, 0 > obdTpsSensor(PID_INTAKE_TEMP, ODB_TPS_BYTE_PERCENT, SensorType::Tps1)
ObdCanSensor< 2, 0 > obdRpmSensor(PID_RPM, ODB_RPM_MULT, SensorType::Rpm)