Zephyr Scientific Library (zscilib)
|
Go to the documentation of this file.
28 #ifndef ZEPHYR_INCLUDE_ZSL_AHRS_H_
29 #define ZEPHYR_INCLUDE_ZSL_AHRS_H_
zsl_real_t roll
Longitudinal axis in degrees. A positive rolling motion lifts the left wing and lowers the right wing...
zsl_real_t pitch
Transverse axis in degrees. A positive pitching motion raises the nose of the aircraft and lowers the...
zsl_real_t idx[3]
Array-based access.
uint8_t status_bits
Invalid field indicators.
zsl_real_t yaw
Vertical axis in degrees. A positive yawing motion moves the nose of the aircraft to the right....
int zsl_att_from_accelmag(struct zsl_vec *accel, struct zsl_vec *mag, struct zsl_attitude *a)
Converts a three-axis accelerometer (in m/s^2) and a three-axis magnetometer sample (in micro-Tesla) ...
Represents the orientation of a rigid body with respect to the world frame in terms of roll,...
int zsl_att_to_vec(struct zsl_attitude *a, struct zsl_vec *v)
Takes the values in the supplied zsl_attitude, and assigns the same memory address to a zsl_vec,...
uint8_t roll_invalid
If non-zero, indicates that roll is invalid.
An ordered triplet of real numbers describing the orientation of a rigid body in three-dimensional (E...
struct zsl_attitude::@19::@23 status
int zsl_att_from_euler(struct zsl_euler *e, struct zsl_attitude *a)
Converts the input zsl_euler, expessed in radians, to it's equivalent in degrees in the output zsl_at...
API header file for vectors in zscilib.
uint8_t yaw_invalid
If non-zero, indicates that yaw is invalid.
API header file for zscilib.
int zsl_att_from_accel(struct zsl_vec *accel, struct zsl_attitude *a)
Converts a three-axis accelerometer sample (in m/s^2) to roll and pitch.
int zsl_att_accel_angle(struct zsl_vec *a1, struct zsl_vec *a2, zsl_real_t *b)
Calculates the angle between two accelerometers.
int zsl_att_to_euler(struct zsl_attitude *a, struct zsl_euler *e)
Converts the input zsl_attitude, expessed in degrees, to it's equivalent in radians in the output zsl...
uint8_t pitch_invalid
If non-zero, indicates that pitch is invalid.
API header file for euler angles in zscilib.