Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
autopilot_rc_helpers.h File Reference
+ Include dependency graph for autopilot_rc_helpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AUTOPILOT_THROTTLE_THRESHOLD   (MAX_PPRZ / 20)
 
#define AUTOPILOT_YAW_THRESHOLD   (MAX_PPRZ * 19 / 20)
 
#define AUTOPILOT_STICK_CENTER_THRESHOLD   (MAX_PPRZ * 1 / 20)
 
#define THROTTLE_STICK_DOWN()   (radio_control.values[RADIO_THROTTLE] < AUTOPILOT_THROTTLE_THRESHOLD)
 
#define YAW_STICK_PUSHED()
 
#define YAW_STICK_CENTERED()
 
#define PITCH_STICK_CENTERED()
 
#define ROLL_STICK_CENTERED()
 

Functions

static bool_t rc_attitude_sticks_centered (void)
 
static bool_t kill_switch_is_on (void)
 

Macro Definition Documentation

#define AUTOPILOT_STICK_CENTER_THRESHOLD   (MAX_PPRZ * 1 / 20)

Definition at line 30 of file autopilot_rc_helpers.h.

#define AUTOPILOT_THROTTLE_THRESHOLD   (MAX_PPRZ / 20)

Definition at line 27 of file autopilot_rc_helpers.h.

#define AUTOPILOT_YAW_THRESHOLD   (MAX_PPRZ * 19 / 20)

Definition at line 28 of file autopilot_rc_helpers.h.

#define PITCH_STICK_CENTERED ( )
Value:
#define RADIO_PITCH
Definition: spektrum_arch.h:42
struct RadioControl radio_control
Definition: radio_control.c:27
#define AUTOPILOT_STICK_CENTER_THRESHOLD

Definition at line 41 of file autopilot_rc_helpers.h.

Referenced by rc_attitude_sticks_centered().

#define ROLL_STICK_CENTERED ( )
Value:
struct RadioControl radio_control
Definition: radio_control.c:27
#define AUTOPILOT_STICK_CENTER_THRESHOLD
#define RADIO_ROLL
Definition: spektrum_arch.h:41

Definition at line 44 of file autopilot_rc_helpers.h.

Referenced by rc_attitude_sticks_centered().

#define THROTTLE_STICK_DOWN ( )    (radio_control.values[RADIO_THROTTLE] < AUTOPILOT_THROTTLE_THRESHOLD)
#define YAW_STICK_CENTERED ( )
Value:
struct RadioControl radio_control
Definition: radio_control.c:27
#define RADIO_YAW
Definition: spektrum_arch.h:43
#define AUTOPILOT_STICK_CENTER_THRESHOLD

Definition at line 38 of file autopilot_rc_helpers.h.

Referenced by rc_attitude_sticks_centered().

#define YAW_STICK_PUSHED ( )
Value:
#define AUTOPILOT_YAW_THRESHOLD
struct RadioControl radio_control
Definition: radio_control.c:27
#define RADIO_YAW
Definition: spektrum_arch.h:43

Definition at line 35 of file autopilot_rc_helpers.h.

Referenced by autopilot_arming_check_motors_on().

Function Documentation

static bool_t kill_switch_is_on ( void  )
inlinestatic

Definition at line 60 of file autopilot_rc_helpers.h.

References FALSE.

Referenced by autopilot_arming_check_motors_on(), and autopilot_on_rc_frame().

+ Here is the caller graph for this function:

static bool_t rc_attitude_sticks_centered ( void  )
inlinestatic

Definition at line 48 of file autopilot_rc_helpers.h.

References PITCH_STICK_CENTERED, ROLL_STICK_CENTERED, and YAW_STICK_CENTERED.

Referenced by autopilot_arming_check_motors_on().

+ Here is the caller graph for this function: