|
RAVE
|
Navigation routines for calculating distances and heights. More...
#include "polar.h"#include <math.h>#include <stdlib.h>#include <stdio.h>#include "rave_alloc.h"#include "rave_debug.h"Functions | |
| void | resetPosStruct (Position *pos) |
| Resets the position struct to have all values set to 0. | |
| Position * | copyPosStruct (Position *src) |
| Copies a position struct and returns an allocated instance with the same values. | |
| double | getEarthRadius (double lat0) |
| Returns the earth radius at the specified latitude. | |
| void | llToDa (Position *src, Position *tgt) |
| Latitude/Longitude to Distance/Azimuth. | |
| void | daToLl (Position *src, Position *tgt) |
| Distance/Azimuth to Latitude/Longitude. | |
| void | dhToRe (Position *src, Position *tgt) |
| Distance/Altitude to Range/Elevation. | |
| void | deToRh (Position *src, Position *tgt) |
| Distance/Elevation to Range/Altitude. | |
| void | reToDh (Position *src, Position *tgt) |
| Range/Elevation to Distance/Altitude. | |
| void | ehToRd (Position *src, Position *tgt) |
| Elevation/Height to Range/Distance. | |
Variables | |
| const double | R_EQU = 6378160.0 |
| Radius at the equator. | |
| const double | R_POL = 6356780.0 |
| Radius to the poles. | |
Navigation routines for calculating distances and heights.
Copies a position struct and returns an allocated instance with the same values.
| [in] | src | the struct to be copied |
Distance/Azimuth to Latitude/Longitude.
| [in] | src | the position object, lon0, lat0, distance and azimuth should be specified |
| [in,out] | tgt | the resulting position object, lon and lat will be set |
Distance/Elevation to Range/Altitude.
| [in] | src | the position object, lat0, dndh, alt0, alt, distance and elevation should be specified |
| [in,out] | tgt | the resulting position object, range, alt and momelev will be set |
Distance/Altitude to Range/Elevation.
| [in] | src | the position object, lat0, dndh, alt, alt0, distance, elevation should be specified |
| [in,out] | tgt | the resulting position object, range, elevation and momelev will be set |
Elevation/Height to Range/Distance.
| [in] | src | the position object, lat0, dndh, alt, alt0 and elevation should be specified |
| [in,out] | tgt | the resulting position object, range, distance and momelev will be set |
| double getEarthRadius | ( | double | lat0 | ) |
Returns the earth radius at the specified latitude.
| [in] | lat0 | the latitude in radians |
Latitude/Longitude to Distance/Azimuth.
| [in] | src | the position object, lon0, lat0, lon and lat should be specified |
| [in,out] | tgt | the resulting position object, distanze and azimuth will be set. |
| void resetPosStruct | ( | Position * | pos | ) |
Resets the position struct to have all values set to 0.
| [in] | pos | the position struct |
Range/Elevation to Distance/Altitude.
| [in] | src | the position object, lat0, dndh, alt0, range and elevation should be specified |
| [in,out] | tgt | the resulting position object, alt, distance and momelev will be set |
| const double R_EQU = 6378160.0 |
Radius at the equator.
| const double R_POL = 6356780.0 |
Radius to the poles.