mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
OP-25 Flight/GPS: Speed from knots to m/s
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@691 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
76802e0d38
commit
c53aa219d5
@ -513,7 +513,7 @@ void nmeaProcessGPRMC(char* packet)
|
||||
tokens = strsep(&packet, delimiter);
|
||||
deg=strtol (tokens,&pEnd,10);
|
||||
desim=strtol (pEnd+1,NULL,10);
|
||||
GpsData.GroundSpeed = deg+(desim/100.0); //OPGPS style
|
||||
GpsData.GroundSpeed = (deg+(desim/100.0))*0.51444; //OPGPS style to m/s
|
||||
|
||||
// next field: True course
|
||||
// get True course
|
||||
|
Loading…
x
Reference in New Issue
Block a user