7#ifndef ZEPHYR_INCLUDE_DATA_NAVIGATION_H_
8#define ZEPHYR_INCLUDE_DATA_NAVIGATION_H_
int navigation_bearing(uint32_t *bearing, const struct navigation_data *from, const struct navigation_data *to)
Calculate the bearing from one navigation point to another.
int navigation_distance(uint64_t *distance, const struct navigation_data *p1, const struct navigation_data *p2)
Calculate the distance between two navigation points along the surface of the sphere they are relativ...
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__INT64_TYPE__ int64_t
Definition stdint.h:75
Navigation data structure.
Definition navigation.h:25
int64_t latitude
Latitudal position in nanodegrees (0 to +-180E9)
Definition navigation.h:27
int64_t longitude
Longitudal position in nanodegrees (0 to +-180E9)
Definition navigation.h:29
uint32_t speed
Speed in millimeters per second.
Definition navigation.h:33
int32_t altitude
Altitude in millimeters.
Definition navigation.h:35
uint32_t bearing
Bearing angle in millidegrees (0 to 360E3)
Definition navigation.h:31