mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-12 20:08:48 +01:00
79 lines
3.5 KiB
C
79 lines
3.5 KiB
C
|
/**
|
||
|
******************************************************************************
|
||
|
*
|
||
|
* @file headingactual.h
|
||
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||
|
* @brief Implementation of the HeadingActual object. This file has been
|
||
|
* automatically generated by the UAVObjectGenerator.
|
||
|
*
|
||
|
* @note Object definition file: headingactual.xml.
|
||
|
* This is an automatically generated file.
|
||
|
* DO NOT modify manually.
|
||
|
*
|
||
|
* @see The GNU Public License (GPL) Version 3
|
||
|
*
|
||
|
*****************************************************************************/
|
||
|
/*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful, but
|
||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||
|
* for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License along
|
||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
*/
|
||
|
|
||
|
#ifndef HEADINGACTUAL_H
|
||
|
#define HEADINGACTUAL_H
|
||
|
|
||
|
// Object constants
|
||
|
#define HEADINGACTUAL_OBJID 2921442332U
|
||
|
#define HEADINGACTUAL_NAME "HeadingActual"
|
||
|
#define HEADINGACTUAL_METANAME "HeadingActualMeta"
|
||
|
#define HEADINGACTUAL_ISSINGLEINST 1
|
||
|
#define HEADINGACTUAL_ISSETTINGS 0
|
||
|
#define HEADINGACTUAL_NUMBYTES sizeof(HeadingActualData)
|
||
|
|
||
|
// Object access macros
|
||
|
#define HeadingActualGet(dataOut) UAVObjGetData(HeadingActualHandle(), dataOut)
|
||
|
#define HeadingActualSet(dataIn) UAVObjSetData(HeadingActualHandle(), dataIn)
|
||
|
#define HeadingActualInstGet(instId, dataOut) UAVObjGetInstanceData(HeadingActualHandle(), instId, dataOut)
|
||
|
#define HeadingActualInstSet(instId, dataIn) UAVObjSetInstanceData(HeadingActualHandle(), instId, dataIn)
|
||
|
#define HeadingActualConnectQueue(queue) UAVObjConnectQueue(HeadingActualHandle(), queue, EV_MASK_ALL_UPDATES)
|
||
|
#define HeadingActualConnectCallback(cb) UAVObjConnectCallback(HeadingActualHandle(), cb, EV_MASK_ALL_UPDATES)
|
||
|
#define HeadingActualCreateInstance() UAVObjCreateInstance(HeadingActualHandle())
|
||
|
#define HeadingActualRequestUpdate() UAVObjRequestUpdate(HeadingActualHandle())
|
||
|
#define HeadingActualRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(HeadingActualHandle(), instId)
|
||
|
#define HeadingActualUpdated() UAVObjUpdated(HeadingActualHandle())
|
||
|
#define HeadingActualInstUpdated(instId) UAVObjUpdated(HeadingActualHandle(), instId)
|
||
|
#define HeadingActualGetMetadata(dataOut) UAVObjGetMetadata(HeadingActualHandle(), dataOut)
|
||
|
#define HeadingActualSetMetadata(dataIn) UAVObjSetMetadata(HeadingActualHandle(), dataIn)
|
||
|
|
||
|
// Object data
|
||
|
typedef struct {
|
||
|
int16_t raw[3];
|
||
|
float heading;
|
||
|
|
||
|
} __attribute__((packed)) HeadingActualData;
|
||
|
|
||
|
// Field information
|
||
|
// Field raw information
|
||
|
/* Array element names for field raw */
|
||
|
typedef enum { HEADINGACTUAL_RAW_X=0, HEADINGACTUAL_RAW_Y=1, HEADINGACTUAL_RAW_Z=2, } HeadingActualrawElem;
|
||
|
/* Number of elements for field raw */
|
||
|
#define HEADINGACTUAL_RAW_NUMELEM 3
|
||
|
// Field heading information
|
||
|
|
||
|
|
||
|
// Generic interface functions
|
||
|
int32_t HeadingActualInitialize();
|
||
|
UAVObjHandle HeadingActualHandle();
|
||
|
|
||
|
#endif // HEADINGACTUAL_H
|