i need help with c++ program, if either the airbag is triggered or the deceleration detected is greater than 5 Gs, we consider that an accident occurred. The vehicle decides to ask nearby by sendig SMS.
closed as too broad by Bob Cross♦ May 22 '14 at 17:08
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
This will be specific to each vehicle Manufacturer and some specific to make and model. It's not covered in OBD-II and is propitiatory for each manufacturer. You might be able to detect by monitoring the CAN buss but again it will be specific to each manufacturer. You may be better off using your own G-force sensor to determine if there has been an accident, although you want the threshold to be much lower than 5 G's. The sensor type varies but all but rollover sensors measure G-force, and require two separate sensors to close at the same time, sometimes called an arming and discriminating sensor.