C Attitude Math Library
Quaternion, Euler, and DCM math utilities for attitude control.
Loading...
Searching...
No Matches
attitude_utils.h
Go to the documentation of this file.
1#ifndef ATTITUDE_UTILS_H
2#define ATTITUDE_UTILS_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
11#define ATTITUDE_PI 3.14159265358979323846264338327950288
12#define DEG2RAD(x) ((x) * ATTITUDE_PI / 180.0)
16#define RAD2DEG(x) ((x) * 180.0 / ATTITUDE_PI)
17
24double deg2rad(double degrees);
25
32double rad2deg(double radians);
33
40double wrap_angle(double angle);
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif // ATTITUDE_UTILS_H
double rad2deg(double radians)
Convert radians to degrees.
double wrap_angle(double angle)
Wrap an angle to the interval.
double deg2rad(double degrees)
Convert degrees to radians.