Bug fix IOTA not clearing

Added clear IOTA field when QSO log saved to logbook
Added comments to locator.c
pull/2/head
David Freese 2008-12-29 07:51:16 -06:00
rodzic 568f5c555a
commit fccba5c6d9
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -572,6 +572,7 @@ void AddRecord ()
inpComment_log->value (inpNotes->value());
inpTX_pwr_log->value (progdefaults.mytxpower.c_str());
inpIOTA_log->value("");
saveRecord();
qsodb.SortByDate();

Wyświetl plik

@ -539,9 +539,12 @@ int HAMLIB_API qrb(double lon1, double lat1, double lon2, double lat2, double *d
* This method is easier than the one in the handbook
*/
/* Short Path */
*distance = ARC_IN_KM * RADIAN * arc;
/* Short Path */
/* Change to azimuth computation by Dave Freese, W1HKJ */
az = RADIAN * atan2(sin(lon2 - lon1) * cos(lat2),
(cos(lat1) * sin(lat2) - sin(lat1) * cos(lat2) * cos(lon2 - lon1)));
@ -552,7 +555,6 @@ int HAMLIB_API qrb(double lon1, double lat1, double lon2, double lat2, double *d
az -= 360.0;
*azimuth = floor(az + 0.5);
return RIG_OK;
}