|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Navigation utilities. More...
Data Structures | |
| struct | navigation_data |
| Navigation data structure. More... | |
Functions | |
| 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 relative to. | |
| 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. | |
Navigation utilities.
| int navigation_bearing | ( | uint32_t * | bearing, |
| const struct navigation_data * | from, | ||
| const struct navigation_data * | to | ||
| ) |
#include <include/zephyr/data/navigation.h>
Calculate the bearing from one navigation point to another.
| bearing | Destination for calculated bearing angle in millidegrees |
| from | First navigation point |
| to | Second navigation point |
| int navigation_distance | ( | uint64_t * | distance, |
| const struct navigation_data * | p1, | ||
| const struct navigation_data * | p2 | ||
| ) |
#include <include/zephyr/data/navigation.h>
Calculate the distance between two navigation points along the surface of the sphere they are relative to.
| distance | Destination for calculated distance in millimeters |
| p1 | First navigation point |
| p2 | Second navigation point |