dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
UAVOMavlinkBridge.c File Reference

Bridges selected UAVObjects to Mavlink. More...

#include "openpilot.h"
#include "physical_constants.h"
#include "modulesettings.h"
#include "flightbatterysettings.h"
#include "flightbatterystate.h"
#include "gpsposition.h"
#include "manualcontrolcommand.h"
#include "attitudeactual.h"
#include "airspeedactual.h"
#include "actuatordesired.h"
#include "flightstatus.h"
#include "systemstats.h"
#include "homelocation.h"
#include "baroaltitude.h"
#include "mavlink.h"
#include "pios_thread.h"
#include "pios_modules.h"
#include <pios_hal.h>
#include "custom_types.h"

Go to the source code of this file.

Macros

#define STACK_SIZE_BYTES   696
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define TASK_RATE_HZ   10
 
#define MAXSTREAMS   sizeof(mav_rates)
 

Functions

static void uavoMavlinkBridgeTask (void *parameters)
 
static bool stream_trigger (enum MAV_DATA_STREAM stream_num)
 
static void updateSettings ()
 
static int32_t uavoMavlinkBridgeStart (void)
 
static int32_t uavoMavlinkBridgeInitialize (void)
 
static void send_message ()
 

Variables

static const uint8_t mav_rates []
 
static struct pios_thread * uavoMavlinkBridgeTaskHandle
 
static uint32_t mavlink_port
 
static bool module_enabled = false
 
static uint8_t * stream_ticks
 
static mavlink_message_t * mav_msg
 

Detailed Description

Bridges selected UAVObjects to Mavlink.

Author
dRonin, http://dRonin.org/, Copyright (C) 2015-2016
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
See Also
The GNU Public License (GPL) Version 3

Definition in file UAVOMavlinkBridge.c.