[Date Prev][Date Next][Thread Prev][Thread Next] - [Date Index][Thread Index][Author Index]

Re: Will try for 22:41 Mir



Richard,
These should do the trick!
Here are some Qbasic programs for converting Lat,Lon to and from Locator.
They were copied from text printout in AR magazine or the like.

73 de Bruce VK4EHT
**************************************************************
PRINT "CONVERTS LOCATOR TO LAT LONG"
INPUT "MAIDENHEAD LOCATOR IN CAPITALS "; A$
FOR K = 1 TO 6
A(K) = ASC(MID$(A$, K, 1))
NEXT K
LO = -180 + (A(1) - 65) * 20 + (A(3) - 48) * 2 + (A(5) - 64.5) / 12
LA = -90 + (A(2) - 65) * 10 + A(4) - 48 + (A(6) - 64.5) / 24
PRINT "MID POINT OF LOCATOR SQUARE"
PRINT "LO "; LO, "LA "; LA
END



*************************************
PRINT "Lat Long to Locator"
PRINT "LAT LON IN DEGREES DECIMAL, SOUTH LAT IS -ve ,WEST LON is -ve"
INPUT "LOngditude,LAtitude"; LO, LA
LO = (LO + 180) / 20
LA = (LA + 90) / 10
A = INT(LO)
B = INT(LA)
LO = (LO - A) * 10
LA = (LA - B) * 10
C = INT(LO)
D = INT(LA)
A$ = CHR$(A + 65) + CHR$(B + 65) + CHR$(C + 48) + CHR$(D + 48)
A$ = A$ + CHR$(INT((LO - C) * 24) + 65) + CHR$(INT((LA - D) * 24) + 65)
PRINT "MAIDENHEAD LOCATOR "; A$
END

----------
> From: Richard Bleeker <richardbleeker@geocities.com>
> To: Sarex (E-mail) <sarex@AMSAT.Org>
> Subject: [sarex] Will try for 22:41 Mir
> Date: Friday, July 30, 1999 6:47 AM
> 
> Hi All
> 
> I am going to try (AGAIN!) for a voice QSO with Mir here in South Africa
> Local time of the pass will be 0:41 and UTC is 22:41.  I read the
> message re voice comms in UK yesterday at the 22:20 UTC pass, so
> because mine is reasonably close to that, I am hoping for success!!!
> 
> Will let you all know how it goes.....
> 
> BTW, does anybody know the equation for converting locators eg KG50DK
> into the Lat and Long??? Perhaps a little QBASIC code would help or any
> other programming language, or even a formula.....Also, if you know of
> some software which will plot an entered locator on a world map, I would
> be grateful for that information. :)
> 
> Regards,
> 
> Richard (ZR5RJB)
> -- 
> ==============================================================
> Address: 29 Bergview Road, Hilton, KwaZulu Natal, South Africa
> Locator: KG50DK
> Telephone: +27 82 723 8215
> Email:  <zr5rjb@amsat.org>
> Packet: ZR5RJB @ ZS5V.ZAF.AF
> ==============================================================
> ----
> Via the sarex mailing list at AMSAT.ORG courtesy of AMSAT-NA.
> To unsubscribe, send "unsubscribe sarex" to Majordomo@amsat.org
----
Via the sarex mailing list at AMSAT.ORG courtesy of AMSAT-NA.
To unsubscribe, send "unsubscribe sarex" to Majordomo@amsat.org



AMSAT Top AMSAT Home