Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mavlink.h File Reference

Basic MAVLink datalink implementation. More...

#include <mavlink/mavlink_types.h>
#include "mcu_periph/uart.h"
#include <stdio.h>
+ Include dependency graph for mavlink.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define MAVLINK_DEBUG(...)   {}
#define MAVLINK_DEV   uart1
#define MAVLinkDev   (&(MAVLINK_DEV).device)
#define MAVLinkTransmit(c)   MAVLinkDev->put_byte(MAVLinkDev->periph, 0, c)
#define MAVLinkChAvailable()   MAVLinkDev->char_available(MAVLinkDev->periph)
#define MAVLinkGetch()   MAVLinkDev->get_byte(MAVLinkDev->periph)
#define MAVLinkSendMessage()   MAVLinkDev->send_message(MAVLinkDev->periph, 0)


void mavlink_init (void)
 Module functions. More...
void mavlink_periodic (void)
 Periodic MAVLink calls. More...
void mavlink_periodic_telemetry (void)
 Send periodic mavlink messages as defined in Mavlink process of telemetry xml file. More...
void mavlink_event (void)
 Event MAVLink calls. More...
static void comm_send_ch (mavlink_channel_t chan, uint8_t ch)
 Send one char (uint8_t) over a comm channel. More...


mavlink_system_t mavlink_system

Detailed Description

Basic MAVLink datalink implementation.

Definition in file mavlink.h.

Macro Definition Documentation


Definition at line 31 of file mavlink.h.

#define MAVLINK_DEV   uart1

Definition at line 57 of file mavlink.h.


Definition at line 30 of file mavlink.h.

#define MAVLinkChAvailable ( )    MAVLinkDev->char_available(MAVLinkDev->periph)

Definition at line 65 of file mavlink.h.

Referenced by mavlink_event().

#define MAVLinkDev   (&(MAVLINK_DEV).device)

Definition at line 63 of file mavlink.h.

#define MAVLinkGetch ( )    MAVLinkDev->get_byte(MAVLinkDev->periph)

Definition at line 66 of file mavlink.h.

Referenced by mavlink_event().

#define MAVLinkTransmit (   c)    MAVLinkDev->put_byte(MAVLinkDev->periph, 0, c)

Definition at line 64 of file mavlink.h.

Referenced by comm_send_ch().

Function Documentation

static void comm_send_ch ( mavlink_channel_t  chan,
uint8_t  ch 

Send one char (uint8_t) over a comm channel.

chanMAVLink channel to use, usually MAVLINK_COMM_0 = UART0
chCharacter to send

Definition at line 83 of file mavlink.h.

References MAVLinkTransmit.

void mavlink_event ( void  )

Event MAVLink calls.

Definition at line 203 of file mavlink.c.

References mavlink_common_message_handler(), mavlink_mission_message_handler(), MAVLinkChAvailable, MAVLinkGetch, and msg.

+ Here is the call graph for this function:

void mavlink_periodic_telemetry ( void  )

Send periodic mavlink messages as defined in Mavlink process of telemetry xml file.


Definition at line 136 of file mavlink.c.

Variable Documentation

mavlink_system_t mavlink_system