[Hamlib-developer] Re: [ANN] Hamlib 1.1.3 released
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Stephane F. <f4...@fr...> - 2002-07-01 22:03:10
|
On Mon, Jul 01, 2002, Riley Williams wrote: > > (fillods@charybde:tests)$ ./testloc IN98EC DM33DX > > Locator1: IN98EC > > Longitude: -0.666667, -1° 40' 0" > > Latitude: 48.083333, 48° 5' 0" > > Recoded: IN98QC > > > > Locator2: DM33DX > > Longitude: -112.750000, -113° 45' 0" > > Latitude: 33.958333, 33° 57' 30" > > Recoded: DM33PX > > > > Bearing: 8677.35km > > Azimuth: 51.782422, 51° 46' 56" > > > > Have you noticed ? The recoded locator is broken. > > Not by my calculation - the recoded locator perfectly matches the > DMS coordinates given. > > > AFAIR, dec2dms() in src/locator.c is broken, unless it is longlat2locator. > > Looking at the above, there are two obvious bugs: > > 1. dec2dms() is returning the wrong value when given a negative > input value. Both negative longitudes are out by exactly 1°, > but the positive latitudes are both correct. okay, thank you for the analisys. Now it should be easy to fix. > > 2. The value labelled "Bearing" is not a bearing, but a distance. oops, sorry. Looks definitely like english is not my mother-tongue. I'll have to fix also the comments in the code. Thank you for that one too! Cheers, Stephane |