|
C Attitude Math Library
Quaternion, Euler, and DCM math utilities for attitude control.
|
Go to the source code of this file.
Macros | |
| #define | ATTITUDE_PI 3.14159265358979323846264338327950288 |
| Macro helper converting degrees to radians. | |
| #define | DEG2RAD(x) ((x) * ATTITUDE_PI / 180.0) |
| #define | RAD2DEG(x) ((x) * 180.0 / ATTITUDE_PI) |
| Macro helper converting radians to degrees. | |
Functions | |
| double | deg2rad (double degrees) |
| Convert degrees to radians. | |
| double | rad2deg (double radians) |
| Convert radians to degrees. | |
| double | wrap_angle (double angle) |
| Wrap an angle to the \((-\pi, \pi]\) interval. | |
| #define ATTITUDE_PI 3.14159265358979323846264338327950288 |
Macro helper converting degrees to radians.
Definition at line 11 of file attitude_utils.h.
| #define DEG2RAD | ( | x | ) | ((x) * ATTITUDE_PI / 180.0) |
Definition at line 12 of file attitude_utils.h.
| #define RAD2DEG | ( | x | ) | ((x) * 180.0 / ATTITUDE_PI) |
Macro helper converting radians to degrees.
Definition at line 16 of file attitude_utils.h.
| double deg2rad | ( | double | degrees | ) |
Convert degrees to radians.
| degrees | Angle in degrees. |
Definition at line 4 of file attitude_utils.c.
| double rad2deg | ( | double | radians | ) |
Convert radians to degrees.
| radians | Angle in radians. |
Definition at line 8 of file attitude_utils.c.
| double wrap_angle | ( | double | angle | ) |
Wrap an angle to the \((-\pi, \pi]\) interval.
| angle | Angle in radians. |
Definition at line 12 of file attitude_utils.c.