Array and ASCII


Closed Thread
Results 1 to 19 of 19

Thread: Array and ASCII

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    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]=","

  2. #2
    Join Date
    Sep 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    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.

  3. #3
    Join Date
    Sep 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    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....

  4. #4
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    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

  5. #5
    Join Date
    Sep 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    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.

  6. #6
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    starting to bang my head against the wall here :>)

    Well, that's normally when the break through occurs.

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Array and ASCII

    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

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts