Navigation utilities.
More...
|
| file | navigation.h |
| | Header file for navigation data structures.
|
◆ navigation_bearing()
#include <zephyr/data/navigation.h>
Calculate the bearing from one navigation point to another.
- Parameters
-
| bearing | Destination for calculated bearing angle in millidegrees |
| from | First navigation point |
| to | Second navigation point |
- Return values
-
| 0 | Success |
| -EINVAL | Either navigation point is invalid |
◆ navigation_distance()
#include <zephyr/data/navigation.h>
Calculate the distance between two navigation points along the surface of the sphere they are relative to.
- Parameters
-
| distance | Destination for calculated distance in millimeters |
| p1 | First navigation point |
| p2 | Second navigation point |
- Return values
-
| 0 | Success |
| -EINVAL | Either navigation point is invalid |