Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
main_fbw.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RC_LOST_FBW_MODE   FBW_MODE_FAILSAFE
 mode to enter when RC is lost while using a mode with RC input More...
 
#define RC_LOST_IN_AUTO_FBW_MODE   FBW_MODE_AUTO
 mode to enter when AP is lost while using autopilot More...
 
#define AP_LOST_FBW_MODE   FBW_MODE_FAILSAFE
 mode to enter when AP is lost while using autopilot More...
 
#define FBW_MODE_AUTO_ONLY   false
 holds whether the aircraft can only be flown with the AP and not RC-Direct/FBW-mode More...
 
#define RADIO_FBW_MODE   RADIO_MODE
 Switching between FBW and autopilot is done with RADIO_FBW_MODE: default is to re-use RADIO_MODE. More...
 

Enumerations

enum  fbw_mode_enum { FBW_MODE_MANUAL = 0, FBW_MODE_AUTO = 1, FBW_MODE_FAILSAFE = 2 }
 

Functions

void main_init (void)
 Main initialization. More...
 
void main_event (void)
 
void handle_periodic_tasks (void)
 
void main_periodic (void)
 
void telemetry_periodic (void)
 

Detailed Description

Fly By Wire:

Reads Radiocontrol Reads Intermcu Sets Actuators

if no rc but autopilot then RC_LOST_FBW_MODE (define below) if no rc while in auto mode then RC_LOST_IN_AUTO_FBW_MODE (define below) if no ap but rc then AP_LOST_FBW_MODE (define below)

Definition in file main_fbw.h.

Macro Definition Documentation

◆ AP_LOST_FBW_MODE

#define AP_LOST_FBW_MODE   FBW_MODE_FAILSAFE

mode to enter when AP is lost while using autopilot

Definition at line 51 of file main_fbw.h.

◆ FBW_MODE_AUTO_ONLY

#define FBW_MODE_AUTO_ONLY   false

holds whether the aircraft can only be flown with the AP and not RC-Direct/FBW-mode

Definition at line 56 of file main_fbw.h.

◆ RADIO_FBW_MODE

#define RADIO_FBW_MODE   RADIO_MODE

Switching between FBW and autopilot is done with RADIO_FBW_MODE: default is to re-use RADIO_MODE.

Definition at line 61 of file main_fbw.h.

◆ RC_LOST_FBW_MODE

#define RC_LOST_FBW_MODE   FBW_MODE_FAILSAFE

mode to enter when RC is lost while using a mode with RC input

Definition at line 41 of file main_fbw.h.

◆ RC_LOST_IN_AUTO_FBW_MODE

#define RC_LOST_IN_AUTO_FBW_MODE   FBW_MODE_AUTO

mode to enter when AP is lost while using autopilot

Definition at line 46 of file main_fbw.h.

Enumeration Type Documentation

◆ fbw_mode_enum

Enumerator
FBW_MODE_MANUAL 
FBW_MODE_AUTO 
FBW_MODE_FAILSAFE 

Definition at line 64 of file main_fbw.h.

Function Documentation

◆ handle_periodic_tasks()

void handle_periodic_tasks ( void  )

Definition at line 202 of file main_ap.c.

◆ main_event()

void main_event ( void  )
inline

Definition at line 336 of file main_ap.c.

◆ main_init()

void main_init ( void  )
inline

Main initialization.

Definition at line 118 of file main_ap.c.

◆ main_periodic()

void main_periodic ( void  )
inline

Definition at line 237 of file main_ap.c.

◆ telemetry_periodic()

void telemetry_periodic ( void  )

Definition at line 270 of file main_ap.c.