Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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)
 
void radio_control_event (void)
 
void fbw_datalink_periodic_handle (void)
 
void fbw_datalink_event_handle (void)
 
void radio_control_periodic_handle (void)
 
void inter_mcu_periodic_handle (void)
 
void inter_mcu_event_handle (void)
 
void periodic_telemetry_handle (void)
 

Variables

uint8_t fbw_mode
 Fly by wire modes. More...
 
bool 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 35 of file main_fbw.h.

#define FBW_MODE_FAILSAFE   2

Definition at line 36 of file main_fbw.h.

#define FBW_MODE_MANUAL   0

Fly by wire modes.

Definition at line 34 of file main_fbw.h.

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

Definition at line 37 of file main_fbw.h.

Referenced by handle_rc_frame().

Function Documentation

void event_task_fbw ( void  )

Definition at line 421 of file main_fbw.c.

References fbw_datalink_event_handle(), inter_mcu_event_handle(), mcu_event(), and radio_control_event().

Referenced by sim_periodic_task().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fbw_datalink_event_handle ( void  )

Definition at line 150 of file main_fbw.c.

Referenced by event_task_fbw().

+ Here is the caller graph for this function:

void fbw_datalink_periodic_handle ( void  )

Definition at line 149 of file main_fbw.c.

Referenced by periodic_task_fbw().

+ Here is the caller graph for this function:

void handle_periodic_tasks_fbw ( void  )

Definition at line 445 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 inter_mcu_event_handle ( void  )

Definition at line 314 of file main_fbw.c.

Referenced by event_task_fbw().

+ Here is the caller graph for this function:

void inter_mcu_periodic_handle ( void  )

Definition at line 313 of file main_fbw.c.

Referenced by periodic_task_fbw().

+ Here is the caller graph for this function:

void periodic_task_fbw ( void  )

Definition at line 434 of file main_fbw.c.

References fbw_datalink_periodic_handle(), inter_mcu_periodic_handle(), periodic_telemetry_handle(), and radio_control_periodic_handle().

Referenced by handle_periodic_tasks_fbw(), and sim_periodic_task().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void periodic_telemetry_handle ( void  )

Definition at line 352 of file main_fbw.c.

References DefaultChannel, DefaultDevice, and DefaultPeriodic.

Referenced by periodic_task_fbw().

+ Here is the caller graph for this function:

void radio_control_event ( void  )

Definition at line 121 of file main_fbw.c.

References handle_rc_frame(), and RadioControlEvent.

Referenced by event_task_fbw().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void radio_control_periodic_handle ( void  )

Definition at line 126 of file main_fbw.c.

References fbw_mode, FBW_MODE_MANUAL, radio_control, radio_control_periodic_task(), radio_lost_mode(), RC_REALLY_LOST, and RadioControl::status.

Referenced by periodic_task_fbw().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

bool failsafe_mode
uint8_t fbw_mode

Fly by wire modes.

Definition at line 63 of file main_fbw.c.