Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main_fbw.h File Reference

FBW ( FlyByWire ) process API. More...

#include "std.h"
+ Include dependency graph for main_fbw.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FBW_MODE_MANUAL   0
 Fly by wire modes. More...
 
#define FBW_MODE_AUTO   1
 
#define FBW_MODE_FAILSAFE   2
 
#define FBW_MODE_OF_PPRZ(mode)   ((mode) < THRESHOLD_MANUAL_PPRZ ? FBW_MODE_MANUAL : FBW_MODE_AUTO)
 

Functions

void init_fbw (void)
 
void handle_periodic_tasks_fbw (void)
 
void periodic_task_fbw (void)
 
void event_task_fbw (void)
 

Variables

uint8_t fbw_mode
 
bool_t failsafe_mode
 

Detailed Description

FBW ( FlyByWire ) process API.

Definition in file main_fbw.h.

Macro Definition Documentation

#define FBW_MODE_AUTO   1

Definition at line 36 of file main_fbw.h.

Referenced by event_task_fbw(), and periodic_task_fbw().

#define FBW_MODE_FAILSAFE   2

Definition at line 37 of file main_fbw.h.

Referenced by event_task_fbw(), init_fbw(), and set_failsafe_mode().

#define FBW_MODE_MANUAL   0

Fly by wire modes.

Definition at line 35 of file main_fbw.h.

Referenced by handle_rc_frame(), and periodic_task_fbw().

#define FBW_MODE_OF_PPRZ (   mode)    ((mode) < THRESHOLD_MANUAL_PPRZ ? FBW_MODE_MANUAL : FBW_MODE_AUTO)

Definition at line 38 of file main_fbw.h.

Referenced by handle_rc_frame().

Function Documentation

void handle_periodic_tasks_fbw ( void  )

Definition at line 260 of file main_fbw.c.

References electrical_periodic(), electrical_tid, fbw_periodic_tid, periodic_task_fbw(), and sys_time_check_and_ack_timer().

+ Here is the call graph for this function:

void init_fbw ( void  )

Definition at line 75 of file main_fbw.c.

References actuators_init(), commands_failsafe, electrical_init(), electrical_tid, fbw_mode, FBW_MODE_FAILSAFE, fbw_new_actuators, fbw_periodic_tid, link_mcu_init(), mcu_init(), mcu_int_enable, PERIODIC_FREQUENCY, radio_control_init(), SetCommands, and sys_time_register_timer().

Referenced by sim_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void periodic_task_fbw ( void  )

Variable Documentation

bool_t failsafe_mode
uint8_t fbw_mode