mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
1425ab1786
This object currently only holds the serial number of the attached AHRS board. This will be retrieved each time communications are (re)established with the AHRS board. This will eventually be extended to hold some statistics for OP to AHRS comms. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1008 ebee16cc-31ac-478f-84a7-5cbb03baadba
75 lines
3.2 KiB
C
75 lines
3.2 KiB
C
/**
|
|
******************************************************************************
|
|
*
|
|
* @file ahrsstatus.h
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
* @brief Implementation of the AhrsStatus object. This file has been
|
|
* automatically generated by the UAVObjectGenerator.
|
|
*
|
|
* @note Object definition file: ahrsstatus.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 AHRSSTATUS_H
|
|
#define AHRSSTATUS_H
|
|
|
|
// Object constants
|
|
#define AHRSSTATUS_OBJID 3344048156U
|
|
#define AHRSSTATUS_NAME "AhrsStatus"
|
|
#define AHRSSTATUS_METANAME "AhrsStatusMeta"
|
|
#define AHRSSTATUS_ISSINGLEINST 1
|
|
#define AHRSSTATUS_ISSETTINGS 0
|
|
#define AHRSSTATUS_NUMBYTES sizeof(AhrsStatusData)
|
|
|
|
// Object access macros
|
|
#define AhrsStatusGet(dataOut) UAVObjGetData(AhrsStatusHandle(), dataOut)
|
|
#define AhrsStatusSet(dataIn) UAVObjSetData(AhrsStatusHandle(), dataIn)
|
|
#define AhrsStatusInstGet(instId, dataOut) UAVObjGetInstanceData(AhrsStatusHandle(), instId, dataOut)
|
|
#define AhrsStatusInstSet(instId, dataIn) UAVObjSetInstanceData(AhrsStatusHandle(), instId, dataIn)
|
|
#define AhrsStatusConnectQueue(queue) UAVObjConnectQueue(AhrsStatusHandle(), queue, EV_MASK_ALL_UPDATES)
|
|
#define AhrsStatusConnectCallback(cb) UAVObjConnectCallback(AhrsStatusHandle(), cb, EV_MASK_ALL_UPDATES)
|
|
#define AhrsStatusCreateInstance() UAVObjCreateInstance(AhrsStatusHandle())
|
|
#define AhrsStatusRequestUpdate() UAVObjRequestUpdate(AhrsStatusHandle())
|
|
#define AhrsStatusRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(AhrsStatusHandle(), instId)
|
|
#define AhrsStatusUpdated() UAVObjUpdated(AhrsStatusHandle())
|
|
#define AhrsStatusInstUpdated(instId) UAVObjUpdated(AhrsStatusHandle(), instId)
|
|
#define AhrsStatusGetMetadata(dataOut) UAVObjGetMetadata(AhrsStatusHandle(), dataOut)
|
|
#define AhrsStatusSetMetadata(dataIn) UAVObjSetMetadata(AhrsStatusHandle(), dataIn)
|
|
|
|
// Object data
|
|
typedef struct {
|
|
uint8_t SerialNumber[25];
|
|
|
|
} __attribute__((packed)) AhrsStatusData;
|
|
|
|
// Field information
|
|
// Field SerialNumber information
|
|
/* Number of elements for field SerialNumber */
|
|
#define AHRSSTATUS_SERIALNUMBER_NUMELEM 25
|
|
|
|
|
|
// Generic interface functions
|
|
int32_t AhrsStatusInitialize();
|
|
UAVObjHandle AhrsStatusHandle();
|
|
|
|
#endif // AHRSSTATUS_H
|