OBD Source Code -Section 1- Without Car / Section 2 - With car
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:c23c05b36e33
- Parent:
- 0:e36d80703ed0
- Child:
- 2:49712259aa71
--- a/main.cpp Mon Feb 27 06:12:23 2017 +0000
+++ b/main.cpp Sun Mar 19 22:57:49 2017 +0000
@@ -58,6 +58,8 @@
extern char obd_reset_cmd[];
+extern char no_of_stored_dtc;
+
extern void OBD_onDataRx();
extern void interrupt_sudden_jerk();
extern void interrupt_activity_inactivity();
@@ -203,13 +205,19 @@
pcm.printf("\r\n\r\n\t\t>>>>>------>> OBD - ACCELEROMETER INTERFACE <<------<<<<<\r\n\r\n");
-
+ /*
initialize_obd(); // OBD- scan tool initialization would be done here
fetch_battery_voltage(); // OBD - section
fetch_vehicle_speed();
+ check_for_MIL();
+
+ if(no_of_stored_dtc > 0)
+ check_for_dtc();
+ */
+ fetch_vin_number();
//initialize_accelerometer(); // All Accerometer configurations will be done here
//while(1); // Wait forever, let the ISR do the rest