Thanks for your response with an example.
I have got an idea by looking at your code. My intention to implement the algorithm to find the Maximum and Minimum Position of X Acceleration when a wheel is rotating.
If found the Maximum and Minimum position then I have to transmit the RD data to Control Board for auto-location.
I have some issue when I'm using Inbuild Sensor Firmware routine to measure the DYNAMIC ACCELERATION function.
My Code:
u8OffSetZ = 7;
u8StatusAcq |= TPMS_READ_DYNAMIC_ACCEL_Z(0u,&u8OffSetZ,gu16UUMA);
if (u8OffSetZ < 7)
u16CompAccelZ = gu16UUMA[4u];
else
u16CompAccelZ = gu16UUMA[4u]+(u8OffSetZ-7)*256;
This code when I directly take out the values from UUMA Array is always greatest values even wheel has no motion.
Please help me to take out the RAW values from the UUMA Array. Because I'm trying to find the vehicle has motion detection or motionless conditions. using Z acceleration.
I'm looking forward your valuable response.