Hi, I'm using the Sparkfun Ublox Zoe m8q GPS module. Connected to a Sparkfun Artemis Thing Plus. And I'm trying to get my horizontal speed in 2 dimensions. But the speed code from the Sparkfun Ublox library example "Example5_SpeedHeadingPrecision" only outputs one parameter called speed. What is this parameter and can I get it split into 2 separate speed values for the x and y dimensions?
From successive (lat,lon) pairs, work out the distance traveled in each dimension, and divide by the time between readings.
For short distances, you will want to use the equirectangular approximation, described here.
Most all GPS libraries will only give you the ground speed, 2D. So you would need to work out 3D speed yourself based on distance and heigh differences.
The Ublox GPSs can, if they have a 3D fix, be polled with custom code, for a 3D speed value, details as ever are in the GPS manual.
RMC and VTG sentences both give speed over ground and course over ground
That example (well the version I found) uses getGroundSpeed() and getHeading() which
clearly are the same data.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.