diff options
Diffstat (limited to 'libraries/OBD/OBD.h')
-rw-r--r-- | libraries/OBD/OBD.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index 93856d6..82e1c1a 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -8,7 +8,7 @@ #define OBD_TIMEOUT_SHORT 2000 /* ms */ #define OBD_TIMEOUT_LONG 7000 /* ms */ #define OBD_SERIAL_BAUDRATE 38400 -#define OBD_RECV_BUF_SIZE 128 +#define OBD_RECV_BUF_SIZE 80 #ifndef OBDUART #if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega644P__) @@ -19,22 +19,30 @@ #endif // mode 0 pids -#define PID_RPM 0x0C -#define PID_SPEED 0x0D -#define PID_THROTTLE 0x11 #define PID_ENGINE_LOAD 0x04 #define PID_COOLANT_TEMP 0x05 -#define PID_INTAKE_TEMP 0x0F -#define PID_MAF_FLOW 0x10 -#define PID_ABS_ENGINE_LOAD 0x43 -#define PID_AMBIENT_TEMP 0x46 #define PID_FUEL_PRESSURE 0x0A #define PID_INTAKE_MAP 0x0B -#define PID_BAROMETRIC 0x33 +#define PID_RPM 0x0C +#define PID_SPEED 0x0D #define PID_TIMING_ADVANCE 0x0E -#define PID_FUEL_LEVEL 0x2F +#define PID_INTAKE_TEMP 0x0F +#define PID_MAF_FLOW 0x10 +#define PID_THROTTLE 0x11 #define PID_RUNTIME 0x1F +#define PID_FUEL_LEVEL 0x2F #define PID_DISTANCE 0x31 +#define PID_BAROMETRIC 0x33 +#define PID_CONTROL_MODULE_VOLTAGE 0x42 +#define PID_ABSOLUTE_ENGINE_LOAD 0x43 +#define PID_AMBIENT_TEMP 0x46 +#define PID_ETHANOL_PERCENTAGE 0x52 +#define PID_FUEL_RAIL_PRESSURE 0x59 +#define PID_HYBRID_BATTERY_PERCENTAGE 0x5B +#define PID_ENGINE_OIL_TEMP 0x5C +#define PID_ENGINE_FUEL_RATE 0x5E +#define PID_ENGINE_TORQUE_PERCENTAGE 0x62 +#define PID_ENGINE_REF_TORQUE 0x63 // states #define OBD_DISCONNECTED 0 |