211 #ifdef SetCommandsFromRC
214 #warning "FBW: needs commands from RC in order to be useful."
void intermcu_send_status(uint8_t mode)
void mcu_init(void)
Microcontroller peripherals initialization.
void InterMcuEvent(void(*frame_handler)(void))
tid_t radio_control_tid
id for radio_control_periodic_task() timer
static void autopilot_on_rc_frame(void)
pprz_t intermcu_commands[COMMANDS_NB]
tid_t electrical_tid
id for electrical_periodic() timer
STATIC_INLINE void telemetry_periodic(void)
void intermcu_periodic(void)
enum intermcu_status status
uint8_t tid_t
sys_time timer id type
tid_t telemetry_tid
id for telemetry_periodic() timer
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
void radio_control_init(void)
const pprz_t commands_failsafe[COMMANDS_NB]
Rotorcraft Inter-MCU on FlyByWire.
#define RadioControlEvent(_received_frame_handler)
Hardware independent API for actuators (servos, motor controllers).
void electrical_init(void)
Interface for electrical status: supply voltage, current, battery status, etc.
Architecture independent timing functions.
void motor_mixing_init(void)
void radio_control_periodic_task(void)
struct intermcu_t inter_mcu
tid_t main_periodic_tid
id for main_periodic() timer
Hardware independent code for commands handling.
struct RadioControl radio_control
static void autopilot_on_ap_command(void)
void intermcu_on_rc_frame(void)
int sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.
static bool_t sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.
Some helper functions to check RC sticks.
void electrical_periodic(void)
STATIC_INLINE void main_periodic(void)
Arch independent mcu ( Micro Controller Unit ) utilities.
pprz_t commands[COMMANDS_NB]
Storage of intermediate command values.
#define RC_LOST_FBW_MODE
mode to enter when RC is lost while using a mode with RC input
#define RADIO_FBW_MODE
Switching between FBW and autopilot is done with RADIO_FBW_MODE: default is to re-use RADIO_MODE...
STATIC_INLINE void main_init(void)
#define PERIODIC_FREQUENCY
arch independent LED (Light Emitting Diodes) API
void mcu_event(void)
MCU event functions.
STATIC_INLINE void main_event(void)
#define AP_LOST_FBW_MODE
mode to enter when AP is lost while using autopilot
#define RC_LOST_IN_AUTO_FBW_MODE
mode to enter when AP is lost while using autopilot
fbw_mode_enum
Fly by wire modes.
STATIC_INLINE void handle_periodic_tasks(void)