dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ups.h File Reference

Go to the source code of this file.

Macros

#define UPS_NO_ERROR   0x0000
 
#define UPS_LAT_ERROR   0x0001
 
#define UPS_LON_ERROR   0x0002
 
#define UPS_HEMISPHERE_ERROR   0x0004
 
#define UPS_EASTING_ERROR   0x0008
 
#define UPS_NORTHING_ERROR   0x0010
 
#define UPS_A_ERROR   0x0020
 
#define UPS_INV_F_ERROR   0x0040
 

Functions

int Set_UPS_Parameters (double a, double f)
 
void Get_UPS_Parameters (double *a, double *f)
 
int Convert_Geodetic_To_UPS (double Latitude, double longitude, char *Hemisphere, double *Easting, double *Northing)
 
int Convert_UPS_To_Geodetic (char Hemisphere, double Easting, double Northing, double *Latitude, double *longitude)
 

Macro Definition Documentation

#define UPS_A_ERROR   0x0020

Definition at line 94 of file ups.h.

#define UPS_EASTING_ERROR   0x0008

Definition at line 92 of file ups.h.

#define UPS_HEMISPHERE_ERROR   0x0004

Definition at line 91 of file ups.h.

#define UPS_INV_F_ERROR   0x0040

Definition at line 95 of file ups.h.

#define UPS_LAT_ERROR   0x0001

Definition at line 89 of file ups.h.

#define UPS_LON_ERROR   0x0002

Definition at line 90 of file ups.h.

#define UPS_NO_ERROR   0x0000

Definition at line 88 of file ups.h.

#define UPS_NORTHING_ERROR   0x0010

Definition at line 93 of file ups.h.

Function Documentation

int Convert_Geodetic_To_UPS ( double  Latitude,
double  longitude,
char *  Hemisphere,
double *  Easting,
double *  Northing 
)

Definition at line 174 of file ups.c.

int Convert_UPS_To_Geodetic ( char  Hemisphere,
double  Easting,
double  Northing,
double *  Latitude,
double *  longitude 
)

Definition at line 244 of file ups.c.

void Get_UPS_Parameters ( double *  a,
double *  f 
)

Definition at line 158 of file ups.c.

int Set_UPS_Parameters ( double  a,
double  f 
)

Definition at line 125 of file ups.c.