Hello Team,
I have been struggling to calculate Velocity and Distance traveled by XDK. For this, I am using the calibrated accelerometer and unfortunately, the results are not good. I have used both V = At ( to calculate instantaneous velocity )and V = U +At (U = Initial velocity). t = 5ms ( XDK is set to send data after every 5ms ).
I saw a demo of the XDK app using the mobile app. Is it possible to get the code used to find accurate measurements of XDK movements? I need precise movements so we can calculate mm (if not at least cm) level accuracy in XDK position shift. Please advice.
Thanks for reading.
Cheers,
Solved! Go to Solution.
Dear Members,
Kindly help
Hi Mishra,
In workbench there is an example application called SendVirtualSensorDataOverUsb.
in Appcontroller.c file enable linear accel sensor in VirtualSensor_Enable_T struct. Using linear accel value, I moved XDK device approx 6 cm.
I calculated displacement using V= At as u mentioned. I used average accel value. Refer attached image.
Thank You 🙂