How about this:
RMC_array[48]=","
RMC_array[49]= Heading DIG 2 + "0"
RMC_array[50]= Heading DIG 1 + "0"
RMC_array[51]= Heading DIG 0 + "0"
RMC_array[52]= "."
RMC_array[53]= "0"
RMC_array[54]=","
How about this:
RMC_array[48]=","
RMC_array[49]= Heading DIG 2 + "0"
RMC_array[50]= Heading DIG 1 + "0"
RMC_array[51]= Heading DIG 0 + "0"
RMC_array[52]= "."
RMC_array[53]= "0"
RMC_array[54]=","
Let me give it a whirl and see.....
Just tried it and it doesn't work...but great idea though...thanks
Last edited by Seahound1; - 25th May 2012 at 20:45.
I tried to use other modifiers as well...but then saw they can only be used in the send statement ...Serout2 ( #heading) which converts the heading into a set of ASCII characters. Tried this combination too
WPT_array[47]=Dec_off Dig 0+"0"
WPT_array[48]=","
WPT_array[49]= #course1
WPT_array[50]= Hex2 course2
WPT_array[51]= Hex course3
WPT_array[52]="."
But it won't compile....
Have you tried to send some test strings? something like:
SEROUT2 bob, baud, ["$GPRMC,220516,A,5133.82,N,00042.24,W,173.8,231.8,1 30694,004.2,W*70"]
If that works, try this (assuming Heading is the variable that contians your heading data):
SEROUT2 bob, baud, ["$GPRMC,220516,A,5133.82,N,00042.24,W,173.8,",DEC3 Heading,".0,130694,004.2,W*70"]
Last edited by SteveB; - 25th May 2012 at 21:36. Reason: corrction
Tried that too....just testin to see if I can split the Array....send upto 48 then insert dec3 heading and then send the remainder of the string....see if that works....worth a try....starting to bang my head against the wall here :>)
Serout2 bob, baud, [Str WPT_array\48,dec3 heading, Str WPT_array_2\13,13,10] just tried this as well and that doesn't work....oh well
Last edited by Seahound1; - 25th May 2012 at 22:48.
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
Bookmarks