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


Results 1 to 40 of 126

Threaded View

  1. #32
    Join Date
    Oct 2010
    Posts
    411

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

    Quote Originally Posted by richard View Post
    I have found that inline math for lcdout cmd on a pic16 turns to crap, serout2 may have the same issues

    you probably need to do the math first then print result

    i would do it this way

    hh=hh+3 ;utc+3
    hh=hh//24 ;REALLY SHOULD ADD A DAY TO DATE TOO IF day changes
    serout2 lcd,32,[$73,$00,$04,$00,$FF,$E0," TIME: ",dec2 hh," :",dec2 mm," :",dec2 ss,$00]
    pause 100
    Richard, really appreciate your help and time.

    Placing the math
    Code:
    hh = hh +3
    hh = hh//24
    before the actual command

    Code:
    serout2  lcd,32,[$73,$00,$04,$00,$FF,$E0,"  TIME: ",dec2 hh," :",dec2 mm," :",dec2 ss,$00]
    it solves the time UTC to local time, and the time when goes at 24 then aytomatically shows 00:

    Now i'm working on that point when time is 23:59:59 at the next second to change the date.

    As i think,it supose to be like that:
    Code:
    if hh = 23 : mm = 59 : ss = 59 
    then DAY = DAY +1
    But then when the Month has only 30 days or 28, we need to specify each month in order to fix the right values and set the parameters.
    Last edited by astanapane; - 26th May 2018 at 14:32.

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