2024-01-01
12:07 PM
- last edited on
2024-01-22
05:18 AM
by
Lina_DABASINSKA
Greetings to everyone, I would like to ask you for help. I want to track GPS in a closed position. I get latitude and longitude information from GPS in an open area. In a closed position, I want to get location information with the accelerometer and speedometer. When the object is going straight, the data coming from the sensor is very healthy. I can't get accurate results from time to time, so I'm sending you a part of the code. Does this make sense? I also examined the documentation of the sensor, but I couldn't get much results. Thank you in advance.
2024-01-01 01:18 PM
The readings from accelerometers and gyros are not perfect. Even infinitesimally small errors in these values, which all sensors have, will cause enormous errors at the position level over relatively short amounts of time. If you only need 1-2 second of data, you might be able to do something like this, but at 10+ seconds the shortcomings will start to show, especially if the movement is dynamic.
There are devices which can do this accurately, but they are enormous in both size and expense due to the accuracy required.
https://en.wikipedia.org/wiki/Inertial_measurement_unit
2024-01-01 01:52 PM
Generally you'd also want to get some kind of sensor fusion externally with GPS/GNSS you can carry over into the building. Where you characterize the offset and drift of the 6 or 9-DOF sensor.
There's also schemes using BT 5.1 anchor/beacons, and angle-of-arrival / direction-finding receivers/sensors that would allow you to map indoor spaces.
2024-01-01 02:07 PM
First of all, thank you for your answer. As far as I understand, I should make my evaluations and transactions with the 10-second intervals you mentioned and I would also like to point out that I was going to use it for vehicle tracking in the closed position, so the movement is dynamic, yes. By the way, if you examine the codes, is the perspective approach correct? I got the algorithm form from this site https://stackoverflow.com/questions/19727298/my-algorithm-to-calculate-position-of-smartphone-gps-and-sensors/19764828# 19764828 I bought it from this site. Have I made a mistake or is there something different for the LSM6DSR sensor? Could you please let me know?
2024-02-01 06:44 AM
Hi @burak_Guzeller ,
You can use this code for your application but note that if you need help e can't support you because it is not developed by ST. We do not have a dedicated library.