Basically, I hope to use the sensor to get the position of a vehicle. Is there anyone knows how to do this? it would be nice if there is a sample code or interface for the positioning.
You can only use an inertial navigation system to measure changes in position. For each time interval, determine the orientation and acceleration to get the 3D velocity vector. Integrate that vector over time to get position.
Thanks for your reply, I understand that I need integration to get the change in position. My problem is that my programming skill is really bad...
I have the firmware given in the tutorial, but I don't know how should I write the code based on the firmware to achieve it. Could you pls kindly help me on this?
Many thanks!
wanget1234:
Thanks for your reply, I understand that I need integration to get the change in position. My problem is that my programming skill is really bad...
I have the firmware given in the tutorial, but I don't know how should I write the code based on the firmware to achieve it. Could you pls kindly help me on this?
Many thanks!
The level of programming required to do what you're looking for is quite advanced. This is not your basic issue a call and get your coordinate type of thing. Basically, even if someone wrote custom code for you to calculate your position you still wouldn't be able to implement that information to do anything useful as that would also require a bunch of custom programming, and so on...
Here's a thread that may help you grasp the complexity of what you're asking for:
In most circumstances GPS will give you the position of a car much easier than an IMU. Trying to get your position in an urban canyon with GPS can be difficult because you may not have large enough view of the sky to be able to connect to 4 or more sats, in this instance you may want to try an IMU and update the the position as soon as you get a GPS lock to correct the drift the IMU WILL have.