28 #include "intermcu_msg.h"
34 #error "INTERMCU UART CAN ONLY SEND 8 COMMANDS OR THE UART WILL BE OVERFILLED"
70 case DL_IMCU_RADIO_COMMANDS: {
72 uint8_t size = DL_IMCU_RADIO_COMMANDS_values_length(trans->
payload);
73 int16_t *rc_values = DL_IMCU_RADIO_COMMANDS_values(trans->
payload);
74 for (i = 0; i < size; i++) {
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
volatile bool_t msg_received
message received flag
#define INTERMCU_LOST_CNT
void RadioControlEvent(void(*frame_handler)(void))
static void intermcu_parse_msg(struct transport_rx *trans, void(*rc_frame_handler)(void))
Generic reception transport header.
uint8_t payload[TRANSPORT_PAYLOAD_LEN]
payload buffer
static void parse_pprz(struct pprz_transport *t, uint8_t c)
void intermcu_periodic(void)
enum intermcu_status status
Building and parsing Paparazzi frames.
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
void * periph
pointer to parent implementation
void pprz_transport_init(struct pprz_transport *t)
struct transport_tx trans_tx
static struct pprz_transport intermcu_transport
struct intermcu_t inter_mcu
get_byte_t get_byte
get a new char
struct RadioControl radio_control
Rotorcraft Inter-MCU on the autopilot.
static struct link_device * intermcu_device
uint8_t time_since_last_frame
struct transport_rx trans_rx
char_available_t char_available
check if a new character is available
uint8_t time_since_last_frame
void intermcu_set_actuators(pprz_t *command_values, uint8_t ap_mode)