I got the LCD, accelerometer, and compass working yesterday, but I can't get any serial data from the GPS in raw mode, and I can't seem to find an object on the object exchange for running the GPS in smart mode--?
Dennis - This file has been returning good gps data from my old Parallax GPS the PMB 248 board for years, in both Smart Mode and Raw. I don't know if it works with the current Parallax GPS version or not, as I don't own one yet.
Sorry I missed that you solved your problem with the tx/rx pins but the code has worked well with my gps unit.
After reviewing the above links to videos, I see the code came from Perry Mole and Paul Hubner versions of OSD a number of years back. I couldn't recall who was the originators, so I modified the GPS_IO_mini to work with my GPS as I didn't have an Etrex GPS, Thank you Paul and Perry, now I can't wait to try your updated code
I must add that I had driven back and forth to work many times, with the OSD code running my GPS unit. I compared my Iphone gps to your code by looking at my Iphone position versus where I was actually at and found the Parallax GPS was more accurate than my Iphone position. Plus the Iphone would loose a gps lock more often than the PMB-248 would, This I did in Jacksonville, Florida over a 3 year period using the latitude and longitude points of my home and those of published lat/lons of local airports.
You guys are fantastic, I focused on this code for years, which has been my "Electron Therapy" since my first wife passed. It gave me something to do, which helped keep my sanity. You can't imagine how much this community helped me.
Can someone help point me in the correct direction? Im trying to get two know coordinates to spit out the correct result for a compass heading.
Im using Chuck Rice's GPS utilities.
For testing I am using Chuck Rice's example coordinates.
test case: Distance between 29 42.8428'N 095 45.1912'W and 29 40.4946'N 095 30.8299'W is 14.6344 statute miles
I confirm with google earth the distance is 14.6 miles. However the GPS utilities comes up with a result of 14.65 miles. Not a big concern. I think this is within a good margin of error.
The concern arrises when the bearing between the two points comes back with a float bearing of 1071705555 which using a float to string conversion comes back with heading of 1.757258 which is very wrong. The actual heading according to google earth shold be somewhere around 100 degrees or 280 degrees if you are traveling in the opposite direction.
The concern arrises when the bearing between the two points comes back with a float bearing of 1071705555 which using a float to string conversion comes back with heading of 1.757258 which is very wrong. The actual heading according to google earth shold be somewhere around 100 degrees or 280 degrees if you are traveling in the opposite direction.
100 degrees are about 1.745 radians. Does that ring a bell?
Of course... I should have known. I jumped to conclusion that the result was in degrees. I didnt think to check to see if the result was returning in radians.
Comments
take a look of my old OSD project, it shows distance and heading to waypoints without floating arithmetic
http://forums.parallax.com/showthread.php?p=721220
there is a video on YoutTube www.youtube.com/watch?v=OG0eXO5hV6M
Perry
Dennis - This file has been returning good gps data from my old Parallax GPS the PMB 248 board for years, in both Smart Mode and Raw. I don't know if it works with the current Parallax GPS version or not, as I don't own one yet.
Sorry I missed that you solved your problem with the tx/rx pins but the code has worked well with my gps unit.
I must add that I had driven back and forth to work many times, with the OSD code running my GPS unit. I compared my Iphone gps to your code by looking at my Iphone position versus where I was actually at and found the Parallax GPS was more accurate than my Iphone position. Plus the Iphone would loose a gps lock more often than the PMB-248 would, This I did in Jacksonville, Florida over a 3 year period using the latitude and longitude points of my home and those of published lat/lons of local airports.
You guys are fantastic, I focused on this code for years, which has been my "Electron Therapy" since my first wife passed. It gave me something to do, which helped keep my sanity. You can't imagine how much this community helped me.
Im using Chuck Rice's GPS utilities.
For testing I am using Chuck Rice's example coordinates.
test case: Distance between 29 42.8428'N 095 45.1912'W and 29 40.4946'N 095 30.8299'W is 14.6344 statute miles
I confirm with google earth the distance is 14.6 miles. However the GPS utilities comes up with a result of 14.65 miles. Not a big concern. I think this is within a good margin of error.
The concern arrises when the bearing between the two points comes back with a float bearing of 1071705555 which using a float to string conversion comes back with heading of 1.757258 which is very wrong. The actual heading according to google earth shold be somewhere around 100 degrees or 280 degrees if you are traveling in the opposite direction.
Here is my code...