Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
autopilot_utils.c File Reference

Utility functions and includes for autopilots. More...

+ Include dependency graph for autopilot_utils.c:

Go to the source code of this file.

Macros

#define THRESHOLD_1_PPRZ   (MIN_PPRZ / 2)
 Display descent speed in failsafe mode if needed. More...
 
#define THRESHOLD_2_PPRZ   (MAX_PPRZ / 2)
 

Functions

uint8_t ap_mode_of_3way_switch (void)
 get autopilot mode as set by RADIO_MODE 3-way switch More...
 

Detailed Description

Utility functions and includes for autopilots.

Definition in file autopilot_utils.c.

Macro Definition Documentation

◆ THRESHOLD_1_PPRZ

#define THRESHOLD_1_PPRZ   (MIN_PPRZ / 2)

Display descent speed in failsafe mode if needed.

Definition at line 37 of file autopilot_utils.c.

◆ THRESHOLD_2_PPRZ

#define THRESHOLD_2_PPRZ   (MAX_PPRZ / 2)

Definition at line 38 of file autopilot_utils.c.

Function Documentation

◆ ap_mode_of_3way_switch()

uint8_t ap_mode_of_3way_switch ( void  )

get autopilot mode as set by RADIO_MODE 3-way switch

Definition at line 41 of file autopilot_utils.c.

References MODE_AUTO1, MODE_AUTO2, MODE_MANUAL, radio_control, RADIO_MODE, THRESHOLD_1_PPRZ, THRESHOLD_2_PPRZ, and RadioControl::values.

Referenced by autopilot_static_on_rc_frame().

+ Here is the caller graph for this function: