starting to bang my head against the wall here :>)
Well, that's normally when the break through occurs.![]()
starting to bang my head against the wall here :>)
Well, that's normally when the break through occurs.![]()
The OSD may be verifying the Checksum in the NMEA sentance.
When it doesn't match, it'll throw away the whole thing.
If so, you'll need to recalculate it each time.
http://www.picbasic.co.uk/forum/showthread.php?t=1469
http://rietman.wordpress.com/2008/09...nmea-checksum/
DT
The code has the checksum calculation in it....but I have cracked it!
For some reason I don't understand ....not unusual tho......if the Array is constructed the other way around..
WPT_array[44]=Dec_off Dig 1+"0"
WPT_array[45]=Dec_off Dig 0+"0"
WPT_array[46]="."
WPT_array[47]=Dec_off Dig 0+"0"
WPT_array[48]=","
[B]WPT_array[49]= "0" + heading dig 2
WPT_array[50]= "0" + heading dig 1 'Course Dig 2+"0"
WPT_array[51]= "0" + heading dig 0
so the "0" is in front of the variable it works......then you just add a bit of code to fill the array with the heading and hey presto! It has taken a lot of head banging and scratching.
Last edited by Seahound1; - 27th May 2012 at 22:07. Reason: bad english
I suspect something else is going on. As a test, I constructed my own array and sent the data out to an LCD using the STR variable\6 command. Worked either way I constructed the equation.
ab_Test[0] = "0" + Heading DIG 2
ab_Test[1] = "0" + Heading DIG 1
ab_Test[2] = "0" + Heading DIG 0
ab_Test[3] = Heading DIG 2 + "0"
ab_Test[4] = Heading DIG 1 + "0"
ab_Test[5] = Heading DIG 0 + "0"
You're right there is something else going on....turned the power off and back on and now it's not working again! trying to think of what I did the first time I got it working.
Bookmarks