m5stack / M5-ProductExampleCodes

All example codes of products supplied by M5Stack have been collected in this reposity.
MIT License
339 stars 484 forks source link

AtomicGPS speed of movement - unit of measurement? #24

Closed MacLe7400 closed 4 years ago

MacLe7400 commented 4 years ago

Hello,

I'm trying to get speed of movement of GPS module (AtomicGPS) using your example code via GPS.s_GNRMC.TrackSpeed parameter from GPSAnalyse::AnaGPRMC function in GPSAnalyse.cpp.

It seems this parameter returns speed values but in unknown (for me) scale.

I've compare with speed measurement with my car measurement (kmh) and it seems AtomicGPS, results about half of the real speed (there is correlation).

What is unit of measurement returned by this function in example library??

Regards, M

MacLe7400 commented 4 years ago

anyone??

vkichline commented 4 years ago

Typically, GPS reports speed in knots. One knot = 1.852 KPH.

MacLe7400 commented 4 years ago

Typically, GPS reports speed in knots. One knot = 1.852 KPH.

Thank you for answer. It seems that simple conversion knots -> kmh delivered proper results