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


Results 1 to 40 of 126

Threaded View

  1. #32
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653

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

    if your time offset from utc is 3.00 hours then the minutes and seconds are irrelevant.
    after adding your offset then you need to check if the new hours is >23
    if so then add a day to the date then test if that is greater
    than the number of days for that month [ don't forget leap years / leap centuries],
    then increment the month if there are too many days
    you may even need to increment the year , not forgetting to set the new day/month to the appropriate value after all
    the incrementing and the new hour to modulo 24

    better still get a raspberry pi use python datetime
    now=datetime.datetime.utcnow()+datetime.timedelta( hours=3)
    and it does everything in one line
    Last edited by richard; - 26th May 2018 at 16:24. Reason: fixed datetime
    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