Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbos Watchdog TextLCD mbed ConfigFile
gmath.h File Reference
Go to the source code of this file.
Functions | |
| double | nmea_ndeg2degree (double val) |
| Convert NDEG (NMEA degree) to fractional degree. | |
| double | nmea_degree2ndeg (double val) |
| Convert fractional degree to NDEG (NMEA degree) | |
| double | nmea_calc_pdop (double hdop, double vdop) |
| Calculate PDOP (Position Dilution Of Precision) factor. | |
| void | nmea_info2pos (const nmeaINFO *info, nmeaPOS *pos) |
| Convert position from INFO to radians position. | |
| void | nmea_pos2info (const nmeaPOS *pos, nmeaINFO *info) |
| Convert radians position to INFOs position. | |
| double | nmea_distance (const nmeaPOS *from_pos, const nmeaPOS *to_pos) |
| Calculate distance between two points. | |
| double | nmea_distance_ellipsoid (const nmeaPOS *from_pos, const nmeaPOS *to_pos, double *from_azimuth, double *to_azimuth) |
| Calculate distance between two points This function uses an algorithm for an oblate spheroid earth model. | |
| int | nmea_move_horz (const nmeaPOS *start_pos, nmeaPOS *end_pos, double azimuth, double distance) |
| Horizontal move of point position. | |
| int | nmea_move_horz_ellipsoid (const nmeaPOS *start_pos, nmeaPOS *end_pos, double azimuth, double distance, double *end_azimuth) |
| Horizontal move of point position This function uses an algorithm for an oblate spheroid earth model. | |
Detailed Description
Definition in file gmath.h.
Function Documentation
| double nmea_calc_pdop | ( | double | hdop, |
| double | vdop | ||
| ) |
| double nmea_degree2ndeg | ( | double | val ) |
| double nmea_distance_ellipsoid | ( | const nmeaPOS * | from_pos, |
| const nmeaPOS * | to_pos, | ||
| double * | from_azimuth, | ||
| double * | to_azimuth | ||
| ) |
Calculate distance between two points This function uses an algorithm for an oblate spheroid earth model.
The algorithm is described here: http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf
- Returns:
- Distance in meters
- Parameters:
-
from_pos From position in radians to_pos To position in radians from_azimuth (O) azimuth at "from" position in radians to_azimuth (O) azimuth at "to" position in radians
| int nmea_move_horz_ellipsoid | ( | const nmeaPOS * | start_pos, |
| nmeaPOS * | end_pos, | ||
| double | azimuth, | ||
| double | distance, | ||
| double * | end_azimuth | ||
| ) |
Horizontal move of point position This function uses an algorithm for an oblate spheroid earth model.
The algorithm is described here: http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf
- Parameters:
-
start_pos Start position in radians end_pos (O) Result position in radians azimuth Azimuth in radians distance Distance (km) end_azimuth (O) Azimuth at end position in radians
| double nmea_ndeg2degree | ( | double | val ) |
Generated on Thu Jul 14 2022 14:06:47 by
1.7.2