|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
27 #ifndef INTERMCU_ROTORCRAFT_H
28 #define INTERMCU_ROTORCRAFT_H
32 #include "pprzlink/pprz_transport.h"
35 #define INTERMCU_FBW 1
37 #ifndef INTERMCU_LOST_CNT
38 #define INTERMCU_LOST_CNT 25
65 #define INTERMCU_SET_CMD_STATUS(_bit) { intermcu.cmd_status |= (1 << _bit); }
66 #define INTERMCU_CLR_CMD_STATUS(_bit) { intermcu.cmd_status &= ~(1 << _bit); }
67 #define INTERMCU_GET_CMD_STATUS(_bit) (intermcu.cmd_status & (1 << _bit))
@ INTERMCU_CMD_FAILSAFE
Set FBW in failsafe mode.
struct link_device * device
Device used for communication.
enum intermcu_status status
Status of the INTERMCU.
@ INTERMCU_CMD_TIPPROPS
Enable tip props.
uint8_t time_since_last_frame
Time since last frame.
bool enabled
If the InterMCU communication is enabled.
@ INTERMCU_LOST
No interMCU communication anymore.
void intermcu_periodic(void)
@ INTERMCU_CMD_MOTORS_ON
The status of autopilot_motors_on.
@ INTERMCU_OK
InterMCU communication is OK.
bool msg_available
If we have an InterMCU message.
uint8_t cmd_status
Command status information that is transfered (intermcu_cmd_status)
struct pprz_transport transport
Transport over communication line (PPRZ)
Hardware independent code for commands handling.
struct intermcu_t intermcu
@ INTERMCU_CMD_DISARM
Whether or not to dis-arm the FBW.