Found an error in the GPS_Basic.spin in APP note AN002
w4fej
Posts: 264
While playing with the new GPS from Parallax I discovered an error in the conversion from meters to feet.
The method "pub n_altf" has the conversion as follows:
Return (n_altm * 3048 / 10_000)
The computation should be :
Return (n_altm * 10_000 / 3048)
To check this use this test:
10668 meters SHOULD yield exactly 35_000 feet but instead yields 3_251.6
Using the other computation does indeed yield 35_000.
Mike B.
The method "pub n_altf" has the conversion as follows:
Return (n_altm * 3048 / 10_000)
The computation should be :
Return (n_altm * 10_000 / 3048)
To check this use this test:
10668 meters SHOULD yield exactly 35_000 feet but instead yields 3_251.6
Using the other computation does indeed yield 35_000.
Mike B.
Comments
Sigh...... I had a error in my report of an error!! lol. Yes, indeed it is in the app note, sorry about that...
Mike B. (Hey, I'm old, cut me some slack !! lol)
When I get my workbench cleaned off, (ha), I'll fire up to new GPS.
Perhaps, I'm 70....
Mike B.
That was part of Parallax Semiconductor which doesn't exist anymore, so I'm not sure if the App Note is posted anywhere.
Yup, still in the downloads section, (But it's hard to find).
http://www.parallax.com/downloads/an002-real-time-gps-data-reception-and-parsing
Hi Johnny
The app note is listed on the 28509 info page at the bottom..
Mike B.
Mike B.
I the future, if you find an error, you can send it directly to
webmaster@parallax.com . It will get serviced faster than through the forums.
Thanks....