How do I discern Maidenhead Locator from GPS lat long info.


Results 1 to 40 of 126

Threaded View

  1. #34
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680

    Default Re: How do I discern Maidenhead Locator from GPS lat long info.

    ndays VAR BYTE [13] 'create an array with 12 byte location for months values
    nday[0] = 0
    nday[1] = 31
    ndays[2] = 28
    ndays[3] = 31
    ......
    ndays[11] = 30
    ndays[12] = 31

    ps its easier to arraywrite ndays,[0,31,28....]


    reason , when you get the month from the nmea sentence you will store the month as a number from 1 to 12
    for the sake of one byte why add the complication of needing to calculate an offset into the lookup table ?

    num_days_this_mth = ndays[month] where month = 1 to 12

    January VAR ndays[0]
    February VAR ndays[1]
    March VAR ndays[2]
    April VAR ndays[3]
    May VAR ndays[4]
    June VAR ndays[5]
    July VAR ndays[6]
    August VAR ndays[7]
    September VAR ndays[8]
    October VAR ndays[9]
    November VAR ndays[10]
    December VAR ndays[11]
    all of these aliases are just a pointless typing exercise ,unless you have something else in mind for them
    Last edited by richard; - 3rd June 2018 at 00:39.
    Warning I'm not a teacher

Similar Threads

  1. LAT replaces PORT command?
    By markscotford in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd December 2011, 16:37
  2. Need Info for PBP?
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th January 2009, 07:44
  3. Replies: 1
    Last Post: - 27th July 2008, 06:14
  4. dmx info.
    By oscar in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th May 2005, 11:54

Members who have read this thread : 1

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