Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Utility functions and includes for autopilots. More...
#include "firmwares/rotorcraft/autopilot_utils.h"
#include "autopilot.h"
#include "firmwares/rotorcraft/autopilot_rc_helpers.h"
#include "state.h"
#include "subsystems/radio_control.h"
Go to the source code of this file.
Macros | |
#define | THRESHOLD_1_PPRZ (MIN_PPRZ / 2) |
#define | THRESHOLD_2_PPRZ (MAX_PPRZ / 2) |
Functions | |
bool | ap_ahrs_is_aligned (void) |
Display descent speed in failsafe mode if needed. More... | |
uint8_t | ap_mode_of_3way_switch (void) |
get autopilot mode as set by RADIO_MODE 3-way switch More... | |
Utility functions and includes for autopilots.
Definition in file autopilot_utils.c.
#define THRESHOLD_1_PPRZ (MIN_PPRZ / 2) |
Definition at line 52 of file autopilot_utils.c.
Referenced by ap_mode_of_3way_switch().
#define THRESHOLD_2_PPRZ (MAX_PPRZ / 2) |
Definition at line 53 of file autopilot_utils.c.
Referenced by ap_mode_of_3way_switch().
bool ap_ahrs_is_aligned | ( | void | ) |
Display descent speed in failsafe mode if needed.
Definition at line 40 of file autopilot_utils.c.
References stateIsAttitudeValid().
uint8_t ap_mode_of_3way_switch | ( | void | ) |
get autopilot mode as set by RADIO_MODE 3-way switch
Definition at line 56 of file autopilot_utils.c.
References autopilot_mode_auto2, MODE_AUTO1, MODE_AUTO2, MODE_MANUAL, radio_control, RADIO_MODE, THRESHOLD_1_PPRZ, THRESHOLD_2_PPRZ, and RadioControl::values.