1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-13 20:48:42 +01:00
LibrePilot/flight/OpenPilot/UAVObjects/inc/attitudedesired.h
vassilis 6b6740109e OP-32 Flight Initial release of Actuator (ServoOut) and ManualControl (ServoIn) modules, still work in progress (not fully tested).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@632 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-05-17 01:58:38 +00:00

79 lines
3.4 KiB
C

/**
******************************************************************************
*
* @file attitudedesired.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief Implementation of the AttitudeDesired object. This file has been
* automatically generated by the UAVObjectGenerator.
*
* @note Object definition file: attitudedesired.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 ATTITUDEDESIRED_H
#define ATTITUDEDESIRED_H
// Object constants
#define ATTITUDEDESIRED_OBJID 1412270808U
#define ATTITUDEDESIRED_NAME "AttitudeDesired"
#define ATTITUDEDESIRED_METANAME "AttitudeDesiredMeta"
#define ATTITUDEDESIRED_ISSINGLEINST 1
#define ATTITUDEDESIRED_ISSETTINGS 0
#define ATTITUDEDESIRED_NUMBYTES sizeof(AttitudeDesiredData)
// Object access macros
#define AttitudeDesiredGet(dataOut) UAVObjGetData(AttitudeDesiredHandle(), dataOut)
#define AttitudeDesiredSet(dataIn) UAVObjSetData(AttitudeDesiredHandle(), dataIn)
#define AttitudeDesiredInstGet(instId, dataOut) UAVObjGetInstanceData(AttitudeDesiredHandle(), instId, dataOut)
#define AttitudeDesiredInstSet(instId, dataIn) UAVObjSetInstanceData(AttitudeDesiredHandle(), instId, dataIn)
#define AttitudeDesiredConnectQueue(queue) UAVObjConnectQueue(AttitudeDesiredHandle(), queue, EV_MASK_ALL_UPDATES)
#define AttitudeDesiredConnectCallback(cb) UAVObjConnectCallback(AttitudeDesiredHandle(), cb, EV_MASK_ALL_UPDATES)
#define AttitudeDesiredCreateInstance() UAVObjCreateInstance(AttitudeDesiredHandle())
#define AttitudeDesiredRequestUpdate() UAVObjRequestUpdate(AttitudeDesiredHandle())
#define AttitudeDesiredRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(AttitudeDesiredHandle(), instId)
#define AttitudeDesiredUpdated() UAVObjUpdated(AttitudeDesiredHandle())
#define AttitudeDesiredInstUpdated(instId) UAVObjUpdated(AttitudeDesiredHandle(), instId)
#define AttitudeDesiredGetMetadata(dataOut) UAVObjGetMetadata(AttitudeDesiredHandle(), dataOut)
#define AttitudeDesiredSetMetadata(dataIn) UAVObjSetMetadata(AttitudeDesiredHandle(), dataIn)
// Object data
typedef struct {
float Roll;
float Pitch;
float Yaw;
float Throttle;
} __attribute__((packed)) AttitudeDesiredData;
// Field information
// Field Roll information
// Field Pitch information
// Field Yaw information
// Field Throttle information
// Generic interface functions
int32_t AttitudeDesiredInitialize();
UAVObjHandle AttitudeDesiredHandle();
#endif // ATTITUDEDESIRED_H