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

Forward a set of UAVObjects when updated out a PIOS_COM port. More...

#include "openpilot.h"
#include "modulesettings.h"
#include "pios_thread.h"
#include "pios_queue.h"
#include "pios_mutex.h"
#include "uavobjectmanager.h"
#include "pios_modules.h"
#include "cameradesired.h"

Go to the source code of this file.

Macros

#define STACK_SIZE_BYTES   512
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define STORM32BGC_PERIOD_MS   20
 
#define STORM32BGC_QUEUE_SIZE   64
 
#define X25_INIT_CRC   0xFFFF
 

Functions

static void storm32bgcTask (void *parameters)
 
static uint16_t crc_calculate (uint8_t *pBuffer, int length)
 Calculates the X.25 checksum on a byte buffer. More...
 
static uint8_t cmd_set_angle (float pitch, float roll, float yaw, uint8_t flags, uint8_t type)
 
int32_t Storm32BgcInitialize (void)
 
int32_t Storm32BgcStart (void)
 
 MODULE_INITCALL (Storm32BgcInitialize, Storm32BgcStart)
 
static void crc_accumulate (uint8_t data, uint16_t *crcAccum)
 Accumulate the X.25 CRC by adding one char at a time. More...
 

Variables

static struct pios_thread * storm32bgcTaskHandle
 
static bool module_enabled
 
struct pios_queuestorm32bgc_queue
 
static struct
pios_recursive_mutex
mutex
 
static uintptr_t storm32bgc_com_id
 
union {
   uint16_t   value
 
   uint8_t   bytes [2]
 
crc
 
union {
   uint16_t   value
 
   uint8_t   bytes [2]
 
dataU16
 
union {
   float   value
 
   uint8_t   bytes [4]
 
dataFloat
 

Detailed Description

Forward a set of UAVObjects when updated out a PIOS_COM port.

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

Definition in file storm32bgc.c.

Variable Documentation

uint8_t bytes[4]

Definition at line 156 of file storm32bgc.c.

float value

Definition at line 155 of file storm32bgc.c.