This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P401R: How to calculate vehicle direction with accelerometer and gyroscope

Part Number: MSP432P401R


Hello,

In our project we are using MSP432P401R controller, it is interfaced to a ADXL345 accelerometer  and FXAS21002C gyroscope sensor.

the application is Vehicle tracking system. The orientation of accelerometer is not fixed. i.e. the accelerometer can be installed in any position in a vehicle.

I need help in the following.

  1. How to get the calculate vehicle movement direction using these sensors.
  2. How to calculate harsh acceleration and harsh braking.

`Please Help

**Attention** This is a public forum