1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 Gpredict: Real-time satellite tracking and orbit prediction program 4 5 Copyright (C) 2001-2009 Alexandru Csete, OZ9AEC. 6 7 Authors: Alexandru Csete <oz9aec@gmail.com> 8 9 10 Comments, questions and bugreports should be submitted via 11 http://sourceforge.net/projects/gpredict/ 12 More details can be found at the project home page: 13 14 http://gpredict.oz9aec.net/ 15 16 This program is free software; you can redistribute it and/or modify 17 it under the terms of the GNU General Public License as published by 18 the Free Software Foundation; either version 2 of the License, or 19 (at your option) any later version. 20 21 This program is distributed in the hope that it will be useful, 22 but WITHOUT ANY WARRANTY; without even the implied warranty of 23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 GNU General Public License for more details. 25 26 You should have received a copy of the GNU General Public License 27 along with this program; if not, visit http://www.fsf.org/ 28 */ 29 #ifndef LOCATOR_H 30 #define LOCATOR_H 1 31 32 #define RIG_OK 0 33 #define RIG_EINVAL 1 34 35 36 int qrb (double lon1, double lat1, double lon2, double lat2, 37 double *distance, double *azimuth); 38 39 double distance_long_path (double distance); 40 41 double azimuth_long_path (double azimuth); 42 43 int longlat2locator (double longitude, double latitude, 44 char *locator, int pair_count); 45 46 int locator2longlat (double *longitude, double *latitude, 47 const char *locator); 48 49 double dms2dec (int degrees, int minutes, double seconds, int sw); 50 51 int dec2dms (double dec, 52 int *degrees, int *minutes, double *seconds, int *sw); 53 54 int dec2dmmm (double dec, int *degrees, double *minutes, int *sw); 55 56 double dmmm2dec (int degrees, double minutes, int sw); 57 58 59 #endif 60