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
63 #define INTERMCU_SET_CMD_STATUS(_bit) { intermcu.cmd_status |= (1 << _bit); }
64 #define INTERMCU_CLR_CMD_STATUS(_bit) { intermcu.cmd_status &= ~(1 << _bit); }
65 #define INTERMCU_GET_CMD_STATUS(_bit) (intermcu.cmd_status & (1 << _bit))
struct link_device * device
Device used for communication.
uint8_t cmd_status
Command status information that is transfered (intermcu_cmd_status)
enum intermcu_status status
Status of the INTERMCU.
InterMCU communication is OK.
bool msg_available
If we have an InterMCU message.
bool enabled
If the InterMCU communication is enabled.
No interMCU communication anymore.
struct intermcu_t intermcu
The status of autopilot_motors_on.
Hardware independent code for commands handling.
void intermcu_periodic(void)
struct pprz_transport transport
Transport over communication line (PPRZ)
uint8_t time_since_last_frame
Time since last frame.
Whether or not to dis-arm the FBW.