コードを検証するための GPS 単体テスト データはどこにありますか?
例えば:
- 2 つの座標間の距離 (マイル/キロメートル)
- 地点 A から地点 B までの進行方向/方位
- 与えられた持続時間でポイント A からポイント B までの速度
現在、私は Google Earth を使用してこれをいじっていますが、自分の計算を有効なものに対して検証していることを知っておくとよいでしょう。
コードを検証するための GPS 単体テスト データはどこにありますか?
例えば:
現在、私は Google Earth を使用してこれをいじっていますが、自分の計算を有効なものに対して検証していることを知っておくとよいでしょう。
"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"