APM:Libraries
Functions | Variables
GCS_MAVLink.cpp File Reference
#include "GCS.h"
#include "GCS_MAVLink.h"
#include <AP_Common/AP_Common.h>
#include <AP_GPS/AP_GPS.h>
#include <AP_HAL/AP_HAL.h>
#include "include/mavlink/v2.0/mavlink_helpers.h"
Include dependency graph for GCS_MAVLink.cpp:

Go to the source code of this file.

Functions

uint8_t mav_var_type (enum ap_var_type t)
 
uint16_t comm_get_txspace (mavlink_channel_t chan)
 
uint16_t comm_get_available (mavlink_channel_t chan)
 
void comm_send_buffer (mavlink_channel_t chan, const uint8_t *buf, uint8_t len)
 

Variables

AP_HAL::UARTDrivermavlink_comm_port [MAVLINK_COMM_NUM_BUFFERS]
 MAVLink stream used for uartA. More...
 
bool gcs_alternative_active [MAVLINK_COMM_NUM_BUFFERS]
 
mavlink_system_t mavlink_system = {7,1}
 MAVLink system definition. More...
 
static uint8_t mavlink_locked_mask
 

Function Documentation

◆ comm_get_available()

uint16_t comm_get_available ( mavlink_channel_t  chan)

Check for available data on the nominated MAVLink channel

Parameters
chanChannel to check
Returns
Number of bytes available

Definition at line 108 of file GCS_MAVLink.cpp.

Referenced by valid_channel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ comm_get_txspace()

uint16_t comm_get_txspace ( mavlink_channel_t  chan)

Check for available transmit space on the nominated MAVLink channel

Parameters
chanChannel to check
Returns
Number of bytes available

Definition at line 89 of file GCS_MAVLink.cpp.

Referenced by valid_channel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ comm_send_buffer()

void comm_send_buffer ( mavlink_channel_t  chan,
const uint8_t *  buf,
uint8_t  len 
)

Definition at line 126 of file GCS_MAVLink.cpp.

Referenced by valid_channel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mav_var_type()

uint8_t mav_var_type ( enum ap_var_type  t)

Definition at line 69 of file GCS_MAVLink.cpp.

Referenced by GCS_MAVLINK::queued_param_send(), GCS_MAVLINK::send_parameter_reply(), and GCS::send_parameter_value().

Here is the caller graph for this function:

Variable Documentation

◆ gcs_alternative_active

bool gcs_alternative_active[MAVLINK_COMM_NUM_BUFFERS]

Definition at line 40 of file GCS_MAVLink.cpp.

Referenced by comm_send_buffer(), and GCS_MAVLINK::update().

◆ mavlink_comm_port

MAVLink stream used for uartA.

Definition at line 39 of file GCS_MAVLink.cpp.

Referenced by GCS_MAVLINK::init(), and GCS_MAVLINK::update().

◆ mavlink_locked_mask

uint8_t mavlink_locked_mask
static

Definition at line 45 of file GCS_MAVLink.cpp.

Referenced by comm_get_available(), comm_get_txspace(), and GCS_MAVLINK::lock_channel().

◆ mavlink_system

mavlink_system_t mavlink_system = {7,1}