2010-03-27 04:19:56 +01:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
2010-08-27 02:15:42 +02:00
|
|
|
* @addtogroup UAVObjects OpenPilot UAVObjects
|
|
|
|
* @{
|
|
|
|
* @addtogroup ExampleObject1 ExampleObject1
|
|
|
|
* @brief Example object
|
|
|
|
*
|
|
|
|
* Autogenerated files and functions for ExampleObject1 Object
|
|
|
|
|
|
|
|
* @{
|
2010-03-27 04:19:56 +01:00
|
|
|
*
|
2010-04-02 05:26:02 +02:00
|
|
|
* @file exampleobject1.h
|
2010-03-27 04:19:56 +01:00
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
2010-04-02 05:26:02 +02:00
|
|
|
* @brief Implementation of the ExampleObject1 object. This file has been
|
2010-03-27 04:19:56 +01:00
|
|
|
* automatically generated by the UAVObjectGenerator.
|
|
|
|
*
|
2010-04-02 05:26:02 +02:00
|
|
|
* @note Object definition file: exampleobject1.xml.
|
2010-03-27 04:19:56 +01:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2010-04-02 05:26:02 +02:00
|
|
|
#ifndef EXAMPLEOBJECT1_H
|
|
|
|
#define EXAMPLEOBJECT1_H
|
2010-03-27 04:19:56 +01:00
|
|
|
|
|
|
|
// Object constants
|
2010-04-02 05:26:02 +02:00
|
|
|
#define EXAMPLEOBJECT1_OBJID 3852936276U
|
|
|
|
#define EXAMPLEOBJECT1_NAME "ExampleObject1"
|
2010-04-28 03:54:24 +02:00
|
|
|
#define EXAMPLEOBJECT1_METANAME "ExampleObject1Meta"
|
2010-04-02 05:26:02 +02:00
|
|
|
#define EXAMPLEOBJECT1_ISSINGLEINST 0
|
|
|
|
#define EXAMPLEOBJECT1_ISSETTINGS 0
|
|
|
|
#define EXAMPLEOBJECT1_NUMBYTES sizeof(ExampleObject1Data)
|
2010-03-27 04:19:56 +01:00
|
|
|
|
2010-04-04 04:11:51 +02:00
|
|
|
// Object access macros
|
2010-08-27 02:15:42 +02:00
|
|
|
/**
|
|
|
|
* @function ExampleObject1Get(dataOut)
|
|
|
|
* @brief Populate a ExampleObject1Data object
|
|
|
|
* @param[out] dataOut
|
|
|
|
*/
|
2010-04-02 05:26:02 +02:00
|
|
|
#define ExampleObject1Get(dataOut) UAVObjGetData(ExampleObject1Handle(), dataOut)
|
|
|
|
#define ExampleObject1Set(dataIn) UAVObjSetData(ExampleObject1Handle(), dataIn)
|
2010-04-04 04:11:51 +02:00
|
|
|
#define ExampleObject1InstGet(instId, dataOut) UAVObjGetInstanceData(ExampleObject1Handle(), instId, dataOut)
|
|
|
|
#define ExampleObject1InstSet(instId, dataIn) UAVObjSetInstanceData(ExampleObject1Handle(), instId, dataIn)
|
2010-04-02 05:26:02 +02:00
|
|
|
#define ExampleObject1ConnectQueue(queue) UAVObjConnectQueue(ExampleObject1Handle(), queue, EV_MASK_ALL_UPDATES)
|
|
|
|
#define ExampleObject1ConnectCallback(cb) UAVObjConnectCallback(ExampleObject1Handle(), cb, EV_MASK_ALL_UPDATES)
|
2010-04-04 04:11:51 +02:00
|
|
|
#define ExampleObject1CreateInstance() UAVObjCreateInstance(ExampleObject1Handle())
|
|
|
|
#define ExampleObject1RequestUpdate() UAVObjRequestUpdate(ExampleObject1Handle())
|
|
|
|
#define ExampleObject1RequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ExampleObject1Handle(), instId)
|
|
|
|
#define ExampleObject1Updated() UAVObjUpdated(ExampleObject1Handle())
|
|
|
|
#define ExampleObject1InstUpdated(instId) UAVObjUpdated(ExampleObject1Handle(), instId)
|
|
|
|
#define ExampleObject1GetMetadata(dataOut) UAVObjGetMetadata(ExampleObject1Handle(), dataOut)
|
|
|
|
#define ExampleObject1SetMetadata(dataIn) UAVObjSetMetadata(ExampleObject1Handle(), dataIn)
|
2010-08-27 02:15:42 +02:00
|
|
|
#define ExampleObject1ReadOnly(dataIn) UAVObjReadOnly(ExampleObject1Handle(), dataIn)
|
2010-03-27 04:19:56 +01:00
|
|
|
|
|
|
|
// Object data
|
|
|
|
typedef struct {
|
2010-04-02 05:26:02 +02:00
|
|
|
int8_t Field1;
|
|
|
|
int16_t Field2;
|
|
|
|
int32_t Field3;
|
|
|
|
float Field4[4];
|
|
|
|
uint8_t Field5;
|
|
|
|
uint16_t Field6;
|
|
|
|
uint32_t Field7;
|
|
|
|
uint8_t Field8;
|
2010-03-27 04:19:56 +01:00
|
|
|
|
2010-04-02 05:26:02 +02:00
|
|
|
} __attribute__((packed)) ExampleObject1Data;
|
2010-03-27 04:19:56 +01:00
|
|
|
|
2010-04-27 03:55:28 +02:00
|
|
|
// Field information
|
|
|
|
// Field Field1 information
|
|
|
|
// Field Field2 information
|
|
|
|
// Field Field3 information
|
|
|
|
// Field Field4 information
|
|
|
|
/* Number of elements for field Field4 */
|
|
|
|
#define EXAMPLEOBJECT1_FIELD4_NUMELEM 4
|
|
|
|
// Field Field5 information
|
|
|
|
// Field Field6 information
|
|
|
|
// Field Field7 information
|
|
|
|
// Field Field8 information
|
2010-04-21 04:49:11 +02:00
|
|
|
/* Enumeration options for field Field8 */
|
2010-08-15 01:42:07 +02:00
|
|
|
typedef enum { EXAMPLEOBJECT1_FIELD8_OPTION1=0, EXAMPLEOBJECT1_FIELD8_OPTION2=1 } ExampleObject1Field8Options;
|
2010-04-01 04:03:40 +02:00
|
|
|
|
|
|
|
|
2010-03-27 04:19:56 +01:00
|
|
|
// Generic interface functions
|
2010-04-02 05:26:02 +02:00
|
|
|
int32_t ExampleObject1Initialize();
|
|
|
|
UAVObjHandle ExampleObject1Handle();
|
2010-03-27 04:19:56 +01:00
|
|
|
|
2010-04-02 05:26:02 +02:00
|
|
|
#endif // EXAMPLEOBJECT1_H
|
2010-08-27 02:15:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
* @}
|
|
|
|
*/
|