Flexible Tilt angle measurement/interrupt in LIS2DW12
Hi ,
. I uses LIS2DW12. I have seen that 6D orientation angle is from 45 or 50 degrees only. So setting an interrupt for this wont be useful for my purpose.
I would like to wake up on minimum angle that I sets, say 5degree/10 degree . How could I achieve It. Is there any pseudo code available for that Like one is for 6D orientation (DT0097)?. When checked the STmem driver, I have seen that WAKE_UP_THS(34h) API is available for setting threshold values.
How I can get interrupt for a the tilt value I set (say 10 degree) for only one axis by setting threshold in this register. Also how to calculate to and from mg to degree(getting from raw value and setting to threshold)?.
Awaiting for the earliest response.
regards,
SV
