Hamlib  3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
locator.c File Reference

locator and bearing conversion interface More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <hamlib/rotator.h>
Include dependency graph for locator.c:

Functions

double dms2dec (int degrees, int minutes, double seconds, int sw)
 Convert DMS to decimal degrees. More...
 
double dmmm2dec (int degrees, double minutes, int sw)
 Convert D M.MMM notation to decimal degrees. More...
 
int dec2dms (double dec, int *degrees, int *minutes, double *seconds, int *sw)
 Convert decimal degrees angle into DMS notation. More...
 
int dec2dmmm (double dec, int *degrees, double *minutes, int *sw)
 Convert a decimal angle into D M.MMM notation. More...
 
int locator2longlat (double *longitude, double *latitude, const char *locator)
 Convert Maidenhead grid locator to Longitude/Latitude. More...
 
int longlat2locator (double longitude, double latitude, char *locator, int pair_count)
 Convert longitude/latitude to Maidenhead grid locator. More...
 
int qrb (double lon1, double lat1, double lon2, double lat2, double *distance, double *azimuth)
 Calculate the distance and bearing between two points. More...
 
double distance_long_path (double distance)
 Calculate the long path distance between two points. More...
 
double azimuth_long_path (double azimuth)
 Calculate the long path bearing between two points. More...
 

Detailed Description

locator and bearing conversion interface

Author
Stephane Fillod and the Hamlib Group
Date
2000-2010

Hamlib Interface - locator, bearing, and conversion calls


Generated by doxygen 1.8.8

Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org