dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mspuavobridge.c File Reference
#include "openpilot.h"
#include "pios_hal.h"
#include "pios_thread.h"
#include "coordinate_conversions.h"
#include "msp.h"
#include "modulesettings.h"
#include "attitudeactual.h"
#include "accels.h"
#include "gyros.h"
#include "flightbatterystate.h"
#include "manualcontrolcommand.h"

Go to the source code of this file.

Data Structures

struct  msp_bridge
 
struct  msp_message_list_item
 

Macros

#define STACK_SIZE_BYTES   800
 
#define THREAD_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define MSP_TIMEOUT   10
 
#define MSP_BRIDGE_MAGIC   0x97a4dc58
 
#define INIT_CHECK_UAVO(name)   name##Initialize(); check &= (name##Handle() != NULL)
 

Functions

static bool msp_bridge_validate (struct msp_bridge *m)
 
static bool msp_unpack_attitude (void *data, uint8_t len)
 
static bool msp_unpack_raw_imu (void *data, uint8_t len)
 
static bool msp_unpack_analog (void *data, uint8_t len)
 
static void set_baudrate (struct msp_bridge *m)
 
static bool msp_handler (enum msp_message_id msg_id, void *data, uint8_t len, void *context)
 
static enum msp_message_id get_next_message (void)
 
static void mspUavoBridge_Task (void *parameters)
 MSP to UAVO bridge main task. More...
 
static int32_t mspUavoBridge_Start (void)
 Start the MSP to UAVO bridge module. More...
 
static int32_t mspUavoBridge_Init (void)
 Initialize the MSP to UAVO bridge module. More...
 

Variables

static struct msp_message_list_item message_list []
 
static bool module_enabled = false
 
static struct msp_bridgemsp
 
uintptr_t pios_com_msp_id
 

Detailed Description

Author
dRonin, http://dRonin.org/, Copyright (C) 2016

Definition in file mspuavobridge.c.

Macro Definition Documentation

#define INIT_CHECK_UAVO (   name)    name##Initialize(); check &= (name##Handle() != NULL)