Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stabilization_attitude_rc_setpoint.h File Reference

Read an attitude setpoint from the RC. More...

#include "std.h"
#include "math/pprz_algebra_int.h"
#include "math/pprz_algebra_float.h"
+ Include dependency graph for stabilization_attitude_rc_setpoint.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void stabilization_attitude_reset_care_free_heading (void)
 reset the heading for care-free mode to current heading More...
 
int32_t stabilization_attitude_get_heading_i (void)
 
float stabilization_attitude_get_heading_f (void)
 
void stabilization_attitude_read_rc_setpoint_eulers (struct Int32Eulers *sp, bool_t in_flight, bool_t in_carefree, bool_t coordinated_turn)
 Read attitude setpoint from RC as euler angles. More...
 
void stabilization_attitude_read_rc_setpoint_eulers_f (struct FloatEulers *sp, bool_t in_flight, bool_t in_carefree, bool_t coordinated_turn)
 
void stabilization_attitude_read_rc_roll_pitch_quat_f (struct FloatQuat *q)
 Read roll/pitch command from RC as quaternion. More...
 
void stabilization_attitude_read_rc_roll_pitch_earth_quat_f (struct FloatQuat *q)
 Read roll/pitch command from RC as quaternion. More...
 
void stabilization_attitude_read_rc_setpoint_quat_f (struct FloatQuat *q_sp, bool_t in_flight, bool_t in_carefree, bool_t coordinated_turn)
 Read attitude setpoint from RC as quaternion Interprets the stick positions as axes. More...
 
void stabilization_attitude_read_rc_setpoint_quat_earth_bound_f (struct FloatQuat *q_sp, bool_t in_flight, bool_t in_carefree, bool_t coordinated_turn)
 

Detailed Description

Read an attitude setpoint from the RC.

Definition in file stabilization_attitude_rc_setpoint.h.

Function Documentation

float stabilization_attitude_get_heading_f ( void  )

Definition at line 135 of file stabilization_attitude_rc_setpoint.c.

References heading, FloatEulers::phi, FloatEulers::psi, stateGetNedToBodyEulers_f(), and FloatEulers::theta.

Referenced by stabilization_attitude_enter(), stabilization_attitude_read_rc_setpoint_eulers_f(), and stabilization_attitude_set_failsafe_setpoint().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int32_t stabilization_attitude_get_heading_i ( void  )
void stabilization_attitude_read_rc_roll_pitch_earth_quat_f ( struct FloatQuat q)

Read roll/pitch command from RC as quaternion.

Both angles are are interpreted relative to to the horizontal plane (earth bound).

Parameters
[out]qquaternion representing the RC roll/pitch input

Definition at line 308 of file stabilization_attitude_rc_setpoint.c.

References ANGLE_FLOAT_OF_BFP, get_rc_pitch_f(), get_rc_roll_f(), FloatQuat::qi, FloatQuat::qx, FloatQuat::qy, FloatQuat::qz, and transition_theta_offset.

Referenced by stabilization_attitude_read_rc_setpoint_quat_earth_bound_f().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stabilization_attitude_read_rc_roll_pitch_quat_f ( struct FloatQuat q)

Read roll/pitch command from RC as quaternion.

Interprets the stick positions as axes.

Parameters
[out]qquaternion representing the RC roll/pitch input

Definition at line 293 of file stabilization_attitude_rc_setpoint.c.

References FLOAT_QUAT_OF_ORIENTATION_VECT, get_rc_pitch_f(), get_rc_roll_f(), FloatVect3::x, FloatVect3::y, and FloatVect3::z.

Referenced by stabilization_attitude_read_rc_setpoint_quat_f().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stabilization_attitude_read_rc_setpoint_eulers ( struct Int32Eulers sp,
bool_t  in_flight,
bool_t  in_carefree,
bool_t  coordinated_turn 
)

Read attitude setpoint from RC as euler angles.

Parameters
[in]coordinated_turntrue if in horizontal mode forward
[in]in_carefreetrue if in carefree mode
[in]in_flighttrue if in flight
[out]spattitude setpoint as euler angles

Definition at line 158 of file stabilization_attitude_rc_setpoint.c.

References ANGLE_BFP_OF_REAL, ANGLE_FLOAT_OF_BFP, care_free_heading, get_rc_pitch(), get_rc_roll(), get_rc_yaw(), heading, INT32_ANGLE_FRAC, INT32_ANGLE_NORMALIZE, INT_MULT_RSHIFT, Int32Eulers::phi, PPRZ_ITRIG_COS, PPRZ_ITRIG_SIN, Int32Eulers::psi, RC_UPDATE_FREQ, stabilization_attitude_get_heading_i(), stateGetNedToBodyEulers_i(), Int32Eulers::theta, THROTTLE_STICK_DOWN, and YAW_DEADBAND_EXCEEDED.

Referenced by guidance_h_read_rc(), stabilization_attitude_read_rc(), stabilization_attitude_read_rc_setpoint_quat_earth_bound_f(), and stabilization_attitude_read_rc_setpoint_quat_f().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stabilization_attitude_read_rc_setpoint_eulers_f ( struct FloatEulers sp,
bool_t  in_flight,
bool_t  in_carefree,
bool_t  coordinated_turn 
)
void stabilization_attitude_read_rc_setpoint_quat_earth_bound_f ( struct FloatQuat q_sp,
bool_t  in_flight,
bool_t  in_carefree,
bool_t  coordinated_turn 
)
void stabilization_attitude_read_rc_setpoint_quat_f ( struct FloatQuat q_sp,
bool_t  in_flight,
bool_t  in_carefree,
bool_t  coordinated_turn 
)

Read attitude setpoint from RC as quaternion Interprets the stick positions as axes.

Parameters
[in]coordinated_turntrue if in horizontal mode forward
[in]in_carefreetrue if in carefree mode
[in]in_flighttrue if in flight
[out]q_spattitude setpoint as quaternion

Definition at line 334 of file stabilization_attitude_rc_setpoint.c.

References ANGLE_FLOAT_OF_BFP, care_free_heading, FLOAT_QUAT_COMP, FLOAT_QUAT_COMP_INV, FLOAT_QUAT_COMP_NORM_SHORTEST, FLOAT_QUAT_NORMALIZE, FLOAT_QUAT_OF_AXIS_ANGLE, Int32Eulers::psi, QUAT_COPY, stab_att_sp_euler, stabilization_attitude_read_rc_roll_pitch_quat_f(), stabilization_attitude_read_rc_setpoint_eulers(), stabilization_attitude_read_rc_setpoint_eulers_f(), and stateGetNedToBodyEulers_f().

Referenced by stabilization_attitude_read_rc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void stabilization_attitude_reset_care_free_heading ( void  )

reset the heading for care-free mode to current heading

Definition at line 110 of file stabilization_attitude_rc_setpoint.c.

References care_free_heading, FloatEulers::psi, and stateGetNedToBodyEulers_f().

Referenced by guidance_h_mode_changed().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: