开发者

Where can I find some GPS unit test data? [closed]

开发者 https://www.devze.com 2023-02-08 14:52 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

Where can I find some GPS unit test data to validate my code?

For example:

  1. Distance between two coordinates (miles / kilometers)
  2. Heading/bearing from Point A to Point B
  3. Speed from Ponit A to Point B given a duration

Right now I'm using Google Ear开发者_Go百科th to fumble around with this, but it would be nice to know I'm validating my calculations against something, well, valid.


"GPS unit test data" is quite vague. You could easily have a pile of data, but if you don't know what they represent, what value are the tests?

If you're looking for a math sample of latitude/longitude calculations, check out the example on Wikipedia's Great Circle distances article: http://en.wikipedia.org/wiki/Great-circle_distance#Worked_example It has two points and works the math to compute the distance between them.

Or are you looking for the data that comes directly from a GPS unit? These are called NMEA sentences. An NMEA sentence begins with $GP and the next 3 characters are the sentence code, followed by the sentence data. http://aprs.gids.nl/nmea/ has a list.

You could certainly Google for "sample nmea data". The magnalox site appears to have some downloadable sample files, but I didn't check them to see if they'd be useful to you.

A better option would probably be to record your own data. Connect your laptop to your GPS unit, set it up to capture the serial data being emitted from the GPS, set the GPS to record your track, and take it for a short test drive. You can then compare how you processed the captured data based on what you know from the stored track (and from your little drive.) You could even have a web cam record the screen of the GPS to record heading/bearing information that doesn't arrive in the sentences.

Use caution if screen scraping NMEA sentences from a web site. All valid NMEA sentences begin with a "$GP"


RandomProfile offers randomly generated valid NMEA sentences.

0

精彩评论

暂无评论...
验证码 换一张
取 消