Does MPU6050 or 9250 could detect angle shock outside a car ?

Hello,

I'm coming back to you after some test and code taking into consideration your advices. I've succeded in configuring the accel in "Wake Motion Interrupt " Mode , I've setted up a treshold to pass to trigger the INT Pin and then I'm reading the value of X and Y axis. After that, I'm working with theses two values to get an angle with the following formula : atan2(Yaxis/Xavis)*(180/pi) and then I got the result in degres.

The problem is now that the results I receive doesn't really match with the reality or maybe 3 times ouf ot 10. I have to precise that for my tests, the board and the mpu are mounted on the car ceiling with some tape.

I'm still mistaking of the way of it's mounted on the car may cause theses problems ?

Thanks for helping me.

Have a great day.