Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
FBW ( FlyByWire ) process API. More...
#include "std.h"
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 |
FBW ( FlyByWire ) process API.
Definition in file main_fbw.h.
#define FBW_MODE_AUTO 1 |
Definition at line 36 of file main_fbw.h.
#define FBW_MODE_FAILSAFE 2 |
Definition at line 37 of file main_fbw.h.
#define FBW_MODE_MANUAL 0 |
Fly by wire modes.
Definition at line 35 of file main_fbw.h.
#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().
void event_task_fbw | ( | void | ) |
Definition at line 190 of file main_fbw.c.
References ap_state, autopilot_mode, command_pitch_trim, command_roll_trim, command_yaw_trim, commands, FALSE, fbw_datalink_event(), fbw_mode, FBW_MODE_AUTO, FBW_MODE_FAILSAFE, fbw_new_actuators, handle_rc_frame(), inter_mcu_received_ap, link_mcu_event_task(), link_mcu_received, MAX_PPRZ, mcu_event(), RadioControlEvent, set_failsafe_mode(), SetCommands, and TRUE.
Referenced by sim_periodic_task().
void handle_periodic_tasks_fbw | ( | void | ) |
Definition at line 345 of file main_fbw.c.
References electrical_periodic(), electrical_tid, fbw_periodic_tid, periodic_task_fbw(), and sys_time_check_and_ack_timer().
void init_fbw | ( | void | ) |
Definition at line 116 of file main_fbw.c.
References commands_failsafe, DefaultPeriodic, electrical_init(), electrical_tid, fbw_mode, FBW_MODE_FAILSAFE, fbw_new_actuators, fbw_periodic_tid, link_mcu_init(), mcu_init(), mcu_int_enable, radio_control_init(), register_periodic_telemetry(), send_actuators(), send_commands(), send_rc(), SetCommands, and sys_time_register_timer().
Referenced by sim_init().
void periodic_task_fbw | ( | void | ) |
Definition at line 304 of file main_fbw.c.
References commands, DefaultChannel, DefaultDevice, DefaultPeriodic, fbw_datalink_periodic(), fbw_mode, FBW_MODE_AUTO, FBW_MODE_MANUAL, link_mcu_periodic_task(), radio_control, radio_control_periodic_task(), RC_REALLY_LOST, set_failsafe_mode(), and RadioControl::status.
Referenced by handle_periodic_tasks_fbw(), and sim_periodic_task().
bool_t failsafe_mode |
uint8_t fbw_mode |
Definition at line 56 of file main_fbw.c.
Referenced by autopilot_on_ap_command(), autopilot_on_rc_frame(), event_task_fbw(), handle_rc_frame(), init_fbw(), main_init(), main_periodic(), periodic_task_fbw(), set_failsafe_mode(), and telemetry_periodic().