mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-10 18:24:11 +01:00
2621d07574
- Added FlighSituation Module (development module for sensor fusion, mostly stub, possibly renamed later) - Added Navigation Module (development module for navigating towards a point in space - DEVELOPMENT CODE, NOT STABLE YET (I am testing around with this)) - Changed Stabilization Module (uses local reference frame now. Stable except for code cleanup/review. Tested in simulator and outperforms old code.) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1154 ebee16cc-31ac-478f-84a7-5cbb03baadba
79 lines
3.5 KiB
C
79 lines
3.5 KiB
C
/**
|
|
******************************************************************************
|
|
*
|
|
* @file navigationdesired.h
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
* @brief Implementation of the NavigationDesired object. This file has been
|
|
* automatically generated by the UAVObjectGenerator.
|
|
*
|
|
* @note Object definition file: navigationdesired.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 NAVIGATIONDESIRED_H
|
|
#define NAVIGATIONDESIRED_H
|
|
|
|
// Object constants
|
|
#define NAVIGATIONDESIRED_OBJID 2357718118U
|
|
#define NAVIGATIONDESIRED_NAME "NavigationDesired"
|
|
#define NAVIGATIONDESIRED_METANAME "NavigationDesiredMeta"
|
|
#define NAVIGATIONDESIRED_ISSINGLEINST 1
|
|
#define NAVIGATIONDESIRED_ISSETTINGS 0
|
|
#define NAVIGATIONDESIRED_NUMBYTES sizeof(NavigationDesiredData)
|
|
|
|
// Object access macros
|
|
#define NavigationDesiredGet(dataOut) UAVObjGetData(NavigationDesiredHandle(), dataOut)
|
|
#define NavigationDesiredSet(dataIn) UAVObjSetData(NavigationDesiredHandle(), dataIn)
|
|
#define NavigationDesiredInstGet(instId, dataOut) UAVObjGetInstanceData(NavigationDesiredHandle(), instId, dataOut)
|
|
#define NavigationDesiredInstSet(instId, dataIn) UAVObjSetInstanceData(NavigationDesiredHandle(), instId, dataIn)
|
|
#define NavigationDesiredConnectQueue(queue) UAVObjConnectQueue(NavigationDesiredHandle(), queue, EV_MASK_ALL_UPDATES)
|
|
#define NavigationDesiredConnectCallback(cb) UAVObjConnectCallback(NavigationDesiredHandle(), cb, EV_MASK_ALL_UPDATES)
|
|
#define NavigationDesiredCreateInstance() UAVObjCreateInstance(NavigationDesiredHandle())
|
|
#define NavigationDesiredRequestUpdate() UAVObjRequestUpdate(NavigationDesiredHandle())
|
|
#define NavigationDesiredRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(NavigationDesiredHandle(), instId)
|
|
#define NavigationDesiredUpdated() UAVObjUpdated(NavigationDesiredHandle())
|
|
#define NavigationDesiredInstUpdated(instId) UAVObjUpdated(NavigationDesiredHandle(), instId)
|
|
#define NavigationDesiredGetMetadata(dataOut) UAVObjGetMetadata(NavigationDesiredHandle(), dataOut)
|
|
#define NavigationDesiredSetMetadata(dataIn) UAVObjSetMetadata(NavigationDesiredHandle(), dataIn)
|
|
|
|
// Object data
|
|
typedef struct {
|
|
float Latitude;
|
|
float Longitude;
|
|
float Altitude;
|
|
float Speed;
|
|
|
|
} __attribute__((packed)) NavigationDesiredData;
|
|
|
|
// Field information
|
|
// Field Latitude information
|
|
// Field Longitude information
|
|
// Field Altitude information
|
|
// Field Speed information
|
|
|
|
|
|
// Generic interface functions
|
|
int32_t NavigationDesiredInitialize();
|
|
UAVObjHandle NavigationDesiredHandle();
|
|
|
|
#endif // NAVIGATIONDESIRED_H
|