This commit is contained in:
Sem van der Hoeven
2024-11-12 00:14:45 +01:00
parent ac2c2d6643
commit cf24296f63
6 changed files with 168 additions and 40 deletions

View File

@@ -68,6 +68,25 @@ Be sure to disconnect the TX and RX pins from the BT module when programming the
#define UPDATE_MANIFOLD_PRESSURE_POS 0x0A
#define UPDATE_FUEL_LEVEL_POS 0x0B
#define COOLANT_TEMP_MIN 0
#define COOLANT_TEMP_MAX 120
#define INTAKE_AIR_TEMP_MIN -40
#define INTAKE_AIR_TEMP_MAX 120
#define AMBIENT_AIR_TEMP_MIN -40
#define AMBIENT_AIR_TEMP_MAX 120
#define OIL_TEMP_MIN -40
#define OIL_TEMP_MAX 120
#define ENGINE_LOAD_MIN 0
#define ENGINE_LOAD_MAX 100
#define BATTERY_VOLTAGE_MIN 0
#define BATTERY_VOLTAGE_MAX 16
#define FUEL_PRESSURE_MIN 0
#define FUEL_PRESSURE_MAX 765
#define MANIFOLD_PRESSURE_MIN 0
#define MANIFOLD_PRESSURE_MAX 255
#define FUEL_LEVEL_MIN 0
#define FUEL_LEVEL_MAX 100
enum BluetoothState
{
BT_INITIALISING = 0,
@@ -116,7 +135,7 @@ char obd2_elm327_init(obd2_elm327_t *elm327);
void obd2_elm327_process_fast(obd2_elm327_t *elm327);
/**
* @brief processes the bluetooth module communication with the OBD2 reader for variables that change slowly
* @brief processes the bluetooth module communication with the OBD2 reader for variables that change slowly (checks every 5 seconds)
*
* @param bt pointer to struct holding bluetooth driver data
*/