Merge branch 'cppcheck' into obd2-lambda
This commit is contained in:
commit
74767ed531
|
@ -47,6 +47,7 @@ static const int16_t supportedPids0120[] = {
|
|||
PID_FUEL_SYSTEM_STATUS,
|
||||
PID_ENGINE_LOAD,
|
||||
PID_COOLANT_TEMP,
|
||||
PID_STFT_BANK1,
|
||||
PID_INTAKE_MAP,
|
||||
PID_RPM,
|
||||
PID_SPEED,
|
||||
|
@ -129,6 +130,9 @@ static void handleGetDataRequest(const CANRxFrame& rx) {
|
|||
case PID_COOLANT_TEMP:
|
||||
obdSendValue(1, pid, 1, Sensor::get(SensorType::Clt).value_or(0) + 40.0f);
|
||||
break;
|
||||
case PID_STFT_BANK1:
|
||||
obdSendValue(1, pid, 1, 128 * (ENGINE(engineState.running.pidCorrection));
|
||||
break;
|
||||
case PID_INTAKE_MAP:
|
||||
obdSendValue(1, pid, 1, getMap(PASS_ENGINE_PARAMETER_SIGNATURE));
|
||||
break;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#define PID_FUEL_SYSTEM_STATUS 0x03
|
||||
#define PID_ENGINE_LOAD 0x04
|
||||
#define PID_COOLANT_TEMP 0x05
|
||||
#define PID_STFT_BANK1 0x06
|
||||
#define PID_FUEL_PRESSURE 0x0A
|
||||
#define PID_INTAKE_MAP 0x0B
|
||||
#define PID_RPM 0x0C
|
||||
|
|
Loading…
Reference in New Issue