mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
removing autogenerated flight/uavobject files with @ref http://forums.openpilot.org/topic/2811-uavtalk-code-generation/
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2396 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
3c8ee7a9d0
commit
2db5d0eb1a
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ActuatorCommand ActuatorCommand
|
||||
* @brief Contains the pulse duration sent to each of the channels. Set by @ref ActuatorModule
|
||||
*
|
||||
* Autogenerated files and functions for ActuatorCommand Object
|
||||
* @{
|
||||
*
|
||||
* @file actuatorcommand.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ActuatorCommand object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: actuatorcommand.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "actuatorcommand.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t ActuatorCommandInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(ACTUATORCOMMAND_OBJID, ACTUATORCOMMAND_NAME, ACTUATORCOMMAND_METANAME, 0,
|
||||
ACTUATORCOMMAND_ISSINGLEINST, ACTUATORCOMMAND_ISSETTINGS, ACTUATORCOMMAND_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
ActuatorCommandData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(ActuatorCommandData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle ActuatorCommandHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ActuatorDesired ActuatorDesired
|
||||
* @brief Desired raw, pitch and yaw actuator settings. Comes from either @ref StabilizationModule or @ref ManualControlModule depending on FlightMode.
|
||||
*
|
||||
* Autogenerated files and functions for ActuatorDesired Object
|
||||
* @{
|
||||
*
|
||||
* @file actuatordesired.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ActuatorDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: actuatordesired.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "actuatordesired.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t ActuatorDesiredInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(ACTUATORDESIRED_OBJID, ACTUATORDESIRED_NAME, ACTUATORDESIRED_METANAME, 0,
|
||||
ACTUATORDESIRED_ISSINGLEINST, ACTUATORDESIRED_ISSETTINGS, ACTUATORDESIRED_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
ActuatorDesiredData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(ActuatorDesiredData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle ActuatorDesiredHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,167 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ActuatorSettings ActuatorSettings
|
||||
* @brief Settings for the @ref ActuatorModule that controls the channel assignments for the mixer based on AircraftType
|
||||
*
|
||||
* Autogenerated files and functions for ActuatorSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file actuatorsettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ActuatorSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: actuatorsettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "actuatorsettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t ActuatorSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(ACTUATORSETTINGS_OBJID, ACTUATORSETTINGS_NAME, ACTUATORSETTINGS_METANAME, 0,
|
||||
ACTUATORSETTINGS_ISSINGLEINST, ACTUATORSETTINGS_ISSETTINGS, ACTUATORSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
ActuatorSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(ActuatorSettingsData));
|
||||
data.FixedWingRoll1 = 8;
|
||||
data.FixedWingRoll2 = 8;
|
||||
data.FixedWingPitch1 = 8;
|
||||
data.FixedWingPitch2 = 8;
|
||||
data.FixedWingYaw = 8;
|
||||
data.FixedWingThrottle = 8;
|
||||
data.VTOLMotorN = 8;
|
||||
data.VTOLMotorNE = 8;
|
||||
data.VTOLMotorE = 8;
|
||||
data.VTOLMotorSE = 8;
|
||||
data.VTOLMotorS = 8;
|
||||
data.VTOLMotorSW = 8;
|
||||
data.VTOLMotorW = 8;
|
||||
data.VTOLMotorNW = 8;
|
||||
data.ChannelUpdateFreq[0] = 50;
|
||||
data.ChannelUpdateFreq[1] = 50;
|
||||
data.ChannelMax[0] = 1000;
|
||||
data.ChannelMax[1] = 1000;
|
||||
data.ChannelMax[2] = 1000;
|
||||
data.ChannelMax[3] = 1000;
|
||||
data.ChannelMax[4] = 1000;
|
||||
data.ChannelMax[5] = 1000;
|
||||
data.ChannelMax[6] = 1000;
|
||||
data.ChannelMax[7] = 1000;
|
||||
data.ChannelNeutral[0] = 1000;
|
||||
data.ChannelNeutral[1] = 1000;
|
||||
data.ChannelNeutral[2] = 1000;
|
||||
data.ChannelNeutral[3] = 1000;
|
||||
data.ChannelNeutral[4] = 1000;
|
||||
data.ChannelNeutral[5] = 1000;
|
||||
data.ChannelNeutral[6] = 1000;
|
||||
data.ChannelNeutral[7] = 1000;
|
||||
data.ChannelMin[0] = 1000;
|
||||
data.ChannelMin[1] = 1000;
|
||||
data.ChannelMin[2] = 1000;
|
||||
data.ChannelMin[3] = 1000;
|
||||
data.ChannelMin[4] = 1000;
|
||||
data.ChannelMin[5] = 1000;
|
||||
data.ChannelMin[6] = 1000;
|
||||
data.ChannelMin[7] = 1000;
|
||||
data.ChannelType[0] = 0;
|
||||
data.ChannelType[1] = 0;
|
||||
data.ChannelType[2] = 0;
|
||||
data.ChannelType[3] = 0;
|
||||
data.ChannelType[4] = 0;
|
||||
data.ChannelType[5] = 0;
|
||||
data.ChannelType[6] = 0;
|
||||
data.ChannelType[7] = 0;
|
||||
data.ChannelAddr[0] = 0;
|
||||
data.ChannelAddr[1] = 1;
|
||||
data.ChannelAddr[2] = 2;
|
||||
data.ChannelAddr[3] = 3;
|
||||
data.ChannelAddr[4] = 4;
|
||||
data.ChannelAddr[5] = 5;
|
||||
data.ChannelAddr[6] = 6;
|
||||
data.ChannelAddr[7] = 7;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle ActuatorSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,144 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AHRSCalibration AHRSCalibration
|
||||
* @brief Contains the calibration settings for the @ref AHRSCommsModule
|
||||
*
|
||||
* Autogenerated files and functions for AHRSCalibration Object
|
||||
* @{
|
||||
*
|
||||
* @file ahrscalibration.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AHRSCalibration object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: ahrscalibration.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "ahrscalibration.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t AHRSCalibrationInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(AHRSCALIBRATION_OBJID, AHRSCALIBRATION_NAME, AHRSCALIBRATION_METANAME, 0,
|
||||
AHRSCALIBRATION_ISSINGLEINST, AHRSCALIBRATION_ISSETTINGS, AHRSCALIBRATION_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
AHRSCalibrationData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(AHRSCalibrationData));
|
||||
data.measure_var = 0;
|
||||
data.accel_bias[0] = -72;
|
||||
data.accel_bias[1] = -72;
|
||||
data.accel_bias[2] = 72;
|
||||
data.accel_scale[0] = 0.003;
|
||||
data.accel_scale[1] = 0.003;
|
||||
data.accel_scale[2] = -0.003;
|
||||
data.accel_var[0] = 5e-05;
|
||||
data.accel_var[1] = 5e-05;
|
||||
data.accel_var[2] = 5e-05;
|
||||
data.gyro_bias[0] = 23;
|
||||
data.gyro_bias[1] = -23;
|
||||
data.gyro_bias[2] = 23;
|
||||
data.gyro_scale[0] = -0.014;
|
||||
data.gyro_scale[1] = 0.014;
|
||||
data.gyro_scale[2] = -0.014;
|
||||
data.gyro_var[0] = 0.0001;
|
||||
data.gyro_var[1] = 0.0001;
|
||||
data.gyro_var[2] = 0.0001;
|
||||
data.gyro_tempcompfactor[0] = 0;
|
||||
data.gyro_tempcompfactor[1] = 0;
|
||||
data.gyro_tempcompfactor[2] = 0;
|
||||
data.mag_bias[0] = 0;
|
||||
data.mag_bias[1] = 0;
|
||||
data.mag_bias[2] = 0;
|
||||
data.mag_scale[0] = 1;
|
||||
data.mag_scale[1] = 1;
|
||||
data.mag_scale[2] = 1;
|
||||
data.mag_var[0] = 5e-05;
|
||||
data.mag_var[1] = 5e-05;
|
||||
data.mag_var[2] = 5e-05;
|
||||
data.vel_var = 0.4;
|
||||
data.pos_var = 0.4;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle AHRSCalibrationHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,118 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AHRSSettings AHRSSettings
|
||||
* @brief Settings for the @ref AHRSCommsModule to control the algorithm and what is updated
|
||||
*
|
||||
* Autogenerated files and functions for AHRSSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file ahrssettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AHRSSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: ahrssettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "ahrssettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t AHRSSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(AHRSSETTINGS_OBJID, AHRSSETTINGS_NAME, AHRSSETTINGS_METANAME, 0,
|
||||
AHRSSETTINGS_ISSINGLEINST, AHRSSETTINGS_ISSETTINGS, AHRSSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
AHRSSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(AHRSSettingsData));
|
||||
data.Algorithm = 1;
|
||||
data.Downsampling = 20;
|
||||
data.UpdatePeriod = 1;
|
||||
data.BiasCorrectedRaw = 0;
|
||||
data.YawBias = 0;
|
||||
data.PitchBias = 0;
|
||||
data.RollBias = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle AHRSSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AhrsStatus AhrsStatus
|
||||
* @brief Status for the @ref AHRSCommsModule, including communication errors
|
||||
*
|
||||
* Autogenerated files and functions for AhrsStatus Object
|
||||
* @{
|
||||
*
|
||||
* @file ahrsstatus.c
|
||||
* @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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "ahrsstatus.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t AhrsStatusInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(AHRSSTATUS_OBJID, AHRSSTATUS_NAME, AHRSSTATUS_METANAME, 0,
|
||||
AHRSSTATUS_ISSINGLEINST, AHRSSTATUS_ISSETTINGS, AHRSSTATUS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
AhrsStatusData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(AhrsStatusData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle AhrsStatusHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AttitudeActual AttitudeActual
|
||||
* @brief The updated Attitude estimation from @ref AHRSCommsModule.
|
||||
*
|
||||
* Autogenerated files and functions for AttitudeActual Object
|
||||
* @{
|
||||
*
|
||||
* @file attitudeactual.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AttitudeActual object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: attitudeactual.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "attitudeactual.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t AttitudeActualInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(ATTITUDEACTUAL_OBJID, ATTITUDEACTUAL_NAME, ATTITUDEACTUAL_METANAME, 0,
|
||||
ATTITUDEACTUAL_ISSINGLEINST, ATTITUDEACTUAL_ISSETTINGS, ATTITUDEACTUAL_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
AttitudeActualData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(AttitudeActualData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 500;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle AttitudeActualHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AttitudeDesired AttitudeDesired
|
||||
* @brief The desired attitude that @ref StabilizationModule will try and achieve if FlightMode is Stabilized. Comes from @ref ManaulControlModule.
|
||||
*
|
||||
* Autogenerated files and functions for AttitudeDesired Object
|
||||
* @{
|
||||
*
|
||||
* @file attitudedesired.c
|
||||
* @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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "attitudedesired.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t AttitudeDesiredInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(ATTITUDEDESIRED_OBJID, ATTITUDEDESIRED_NAME, ATTITUDEDESIRED_METANAME, 0,
|
||||
ATTITUDEDESIRED_ISSINGLEINST, ATTITUDEDESIRED_ISSETTINGS, ATTITUDEDESIRED_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
AttitudeDesiredData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(AttitudeDesiredData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle AttitudeDesiredHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AttitudeRaw AttitudeRaw
|
||||
* @brief The raw attitude sensor data from @ref AHRSCommsModule. Not always updated.
|
||||
*
|
||||
* Autogenerated files and functions for AttitudeRaw Object
|
||||
* @{
|
||||
*
|
||||
* @file attituderaw.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AttitudeRaw object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: attituderaw.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "attituderaw.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t AttitudeRawInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(ATTITUDERAW_OBJID, ATTITUDERAW_NAME, ATTITUDERAW_METANAME, 0,
|
||||
ATTITUDERAW_ISSINGLEINST, ATTITUDERAW_ISSETTINGS, ATTITUDERAW_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
AttitudeRawData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(AttitudeRawData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle AttitudeRawHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup BaroAltitude BaroAltitude
|
||||
* @brief The raw data from the barometric sensor with pressure, temperature and altitude estimate.
|
||||
*
|
||||
* Autogenerated files and functions for BaroAltitude Object
|
||||
* @{
|
||||
*
|
||||
* @file baroaltitude.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the BaroAltitude object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: baroaltitude.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "baroaltitude.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t BaroAltitudeInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(BAROALTITUDE_OBJID, BAROALTITUDE_NAME, BAROALTITUDE_METANAME, 0,
|
||||
BAROALTITUDE_ISSINGLEINST, BAROALTITUDE_ISSETTINGS, BAROALTITUDE_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
BaroAltitudeData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(BaroAltitudeData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle BaroAltitudeHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,116 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup BatterySettings BatterySettings
|
||||
* @brief Battery configuration information.
|
||||
*
|
||||
* Autogenerated files and functions for BatterySettings Object
|
||||
* @{
|
||||
*
|
||||
* @file batterysettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the BatterySettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: batterysettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "batterysettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t BatterySettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(BATTERYSETTINGS_OBJID, BATTERYSETTINGS_NAME, BATTERYSETTINGS_METANAME, 0,
|
||||
BATTERYSETTINGS_ISSINGLEINST, BATTERYSETTINGS_ISSETTINGS, BATTERYSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
BatterySettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(BatterySettingsData));
|
||||
data.BatteryVoltage = 11.1;
|
||||
data.BatteryCapacity = 2200;
|
||||
data.BatteryType = 0;
|
||||
data.Calibrations[0] = 1;
|
||||
data.Calibrations[1] = 1;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle BatterySettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FirmwareIAPObj FirmwareIAPObj
|
||||
* @brief Firmware IAP
|
||||
*
|
||||
* Autogenerated files and functions for FirmwareIAPObj Object
|
||||
* @{
|
||||
*
|
||||
* @file firmwareiapobj.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FirmwareIAPObj object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: firmwareiap.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "firmwareiapobj.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t FirmwareIAPObjInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(FIRMWAREIAPOBJ_OBJID, FIRMWAREIAPOBJ_NAME, FIRMWAREIAPOBJ_METANAME, 0,
|
||||
FIRMWAREIAPOBJ_ISSINGLEINST, FIRMWAREIAPOBJ_ISSETTINGS, FIRMWAREIAPOBJ_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
FirmwareIAPObjData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(FirmwareIAPObjData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle FirmwareIAPObjHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,117 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightBatteryState FlightBatteryState
|
||||
* @brief Battery status information.
|
||||
*
|
||||
* Autogenerated files and functions for FlightBatteryState Object
|
||||
* @{
|
||||
*
|
||||
* @file flightbatterystate.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightBatteryState object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightbatterystate.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "flightbatterystate.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t FlightBatteryStateInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(FLIGHTBATTERYSTATE_OBJID, FLIGHTBATTERYSTATE_NAME, FLIGHTBATTERYSTATE_METANAME, 0,
|
||||
FLIGHTBATTERYSTATE_ISSINGLEINST, FLIGHTBATTERYSTATE_ISSETTINGS, FLIGHTBATTERYSTATE_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
FlightBatteryStateData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(FlightBatteryStateData));
|
||||
data.Voltage = 0;
|
||||
data.Current = 0;
|
||||
data.PeakCurrent = 0;
|
||||
data.AvgCurrent = 0;
|
||||
data.ConsumedEnergy = 0;
|
||||
data.EstimatedFlightTime = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READONLY;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle FlightBatteryStateHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightPlanControl FlightPlanControl
|
||||
* @brief Control the flight plan script
|
||||
*
|
||||
* Autogenerated files and functions for FlightPlanControl Object
|
||||
* @{
|
||||
*
|
||||
* @file flightplancontrol.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightPlanControl object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightplancontrol.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "flightplancontrol.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t FlightPlanControlInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(FLIGHTPLANCONTROL_OBJID, FLIGHTPLANCONTROL_NAME, FLIGHTPLANCONTROL_METANAME, 0,
|
||||
FLIGHTPLANCONTROL_ISSINGLEINST, FLIGHTPLANCONTROL_ISSETTINGS, FLIGHTPLANCONTROL_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
FlightPlanControlData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(FlightPlanControlData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle FlightPlanControlHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,112 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightPlanSettings FlightPlanSettings
|
||||
* @brief Settings for the flight plan module, control the execution of the script
|
||||
*
|
||||
* Autogenerated files and functions for FlightPlanSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file flightplansettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightPlanSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightplansettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "flightplansettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t FlightPlanSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(FLIGHTPLANSETTINGS_OBJID, FLIGHTPLANSETTINGS_NAME, FLIGHTPLANSETTINGS_METANAME, 0,
|
||||
FLIGHTPLANSETTINGS_ISSINGLEINST, FLIGHTPLANSETTINGS_ISSETTINGS, FLIGHTPLANSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
FlightPlanSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(FlightPlanSettingsData));
|
||||
data.Test = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle FlightPlanSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,113 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightPlanStatus FlightPlanStatus
|
||||
* @brief Status of the flight plan script
|
||||
*
|
||||
* Autogenerated files and functions for FlightPlanStatus Object
|
||||
* @{
|
||||
*
|
||||
* @file flightplanstatus.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightPlanStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightplanstatus.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "flightplanstatus.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t FlightPlanStatusInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(FLIGHTPLANSTATUS_OBJID, FLIGHTPLANSTATUS_NAME, FLIGHTPLANSTATUS_METANAME, 0,
|
||||
FLIGHTPLANSTATUS_ISSINGLEINST, FLIGHTPLANSTATUS_ISSETTINGS, FLIGHTPLANSTATUS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
FlightPlanStatusData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(FlightPlanStatusData));
|
||||
data.Status = 0;
|
||||
data.ErrorType = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 2000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle FlightPlanStatusHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightTelemetryStats FlightTelemetryStats
|
||||
* @brief Maintains the telemetry statistics from the OpenPilot flight computer.
|
||||
*
|
||||
* Autogenerated files and functions for FlightTelemetryStats Object
|
||||
* @{
|
||||
*
|
||||
* @file flighttelemetrystats.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightTelemetryStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flighttelemetrystats.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "flighttelemetrystats.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t FlightTelemetryStatsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(FLIGHTTELEMETRYSTATS_OBJID, FLIGHTTELEMETRYSTATS_NAME, FLIGHTTELEMETRYSTATS_METANAME, 0,
|
||||
FLIGHTTELEMETRYSTATS_ISSINGLEINST, FLIGHTTELEMETRYSTATS_ISSETTINGS, FLIGHTTELEMETRYSTATS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
FlightTelemetryStatsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(FlightTelemetryStatsData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 5000;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 5000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle FlightTelemetryStatsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GCSTelemetryStats GCSTelemetryStats
|
||||
* @brief The telemetry statistics from the ground computer
|
||||
*
|
||||
* Autogenerated files and functions for GCSTelemetryStats Object
|
||||
* @{
|
||||
*
|
||||
* @file gcstelemetrystats.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GCSTelemetryStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gcstelemetrystats.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "gcstelemetrystats.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t GCSTelemetryStatsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(GCSTELEMETRYSTATS_OBJID, GCSTELEMETRYSTATS_NAME, GCSTELEMETRYSTATS_METANAME, 0,
|
||||
GCSTELEMETRYSTATS_ISSINGLEINST, GCSTELEMETRYSTATS_ISSETTINGS, GCSTELEMETRYSTATS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
GCSTelemetryStatsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(GCSTelemetryStatsData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.gcsTelemetryUpdatePeriod = 5000;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle GCSTelemetryStatsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GPSPosition GPSPosition
|
||||
* @brief Future object for the raw GPS data from @ref GPSModule. Only should be used by @ref AHRSCommsModule.
|
||||
*
|
||||
* Autogenerated files and functions for GPSPosition Object
|
||||
* @{
|
||||
*
|
||||
* @file gpsposition.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GPSPosition object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gpsposition.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "gpsposition.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t GPSPositionInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(GPSPOSITION_OBJID, GPSPOSITION_NAME, GPSPOSITION_METANAME, 0,
|
||||
GPSPOSITION_ISSINGLEINST, GPSPOSITION_ISSETTINGS, GPSPOSITION_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
GPSPositionData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(GPSPositionData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle GPSPositionHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GPSSatellites GPSSatellites
|
||||
* @brief Contains information about the GPS satellites in view from @ref GPSModule.
|
||||
*
|
||||
* Autogenerated files and functions for GPSSatellites Object
|
||||
* @{
|
||||
*
|
||||
* @file gpssatellites.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GPSSatellites object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gpssatellites.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "gpssatellites.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t GPSSatellitesInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(GPSSATELLITES_OBJID, GPSSATELLITES_NAME, GPSSATELLITES_METANAME, 0,
|
||||
GPSSATELLITES_ISSINGLEINST, GPSSATELLITES_ISSETTINGS, GPSSATELLITES_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
GPSSatellitesData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(GPSSatellitesData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 10000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 30000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle GPSSatellitesHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GPSTime GPSTime
|
||||
* @brief Contains the GPS time from @ref GPSModule. Required to compute the world magnetic model correctly when setting the home location.
|
||||
*
|
||||
* Autogenerated files and functions for GPSTime Object
|
||||
* @{
|
||||
*
|
||||
* @file gpstime.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GPSTime object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gpstime.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "gpstime.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t GPSTimeInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(GPSTIME_OBJID, GPSTIME_NAME, GPSTIME_METANAME, 0,
|
||||
GPSTIME_ISSINGLEINST, GPSTIME_ISSETTINGS, GPSTIME_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
GPSTimeData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(GPSTimeData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 10000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 30000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle GPSTimeHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,126 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GuidanceSettings GuidanceSettings
|
||||
* @brief Settings for the @ref GuidanceModule
|
||||
*
|
||||
* Autogenerated files and functions for GuidanceSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file guidancesettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GuidanceSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: guidancesettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "guidancesettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t GuidanceSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(GUIDANCESETTINGS_OBJID, GUIDANCESETTINGS_NAME, GUIDANCESETTINGS_METANAME, 0,
|
||||
GUIDANCESETTINGS_ISSINGLEINST, GUIDANCESETTINGS_ISSETTINGS, GUIDANCESETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
GuidanceSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(GuidanceSettingsData));
|
||||
data.GuidanceMode = 0;
|
||||
data.MaxGroundspeed = 100;
|
||||
data.GroundVelocityP = 0.1;
|
||||
data.MaxVerticalSpeed = 100;
|
||||
data.VertVelocityP = 0.1;
|
||||
data.VelP = 0.1;
|
||||
data.VelI = 0.1;
|
||||
data.VelD = 0;
|
||||
data.DownP = 0;
|
||||
data.DownI = 0;
|
||||
data.DownD = 0;
|
||||
data.MaxVelIntegral = 2;
|
||||
data.MaxThrottleIntegral = 1;
|
||||
data.VelUpdatePeriod = 100;
|
||||
data.VelPIDUpdatePeriod = 20;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle GuidanceSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,130 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup HomeLocation HomeLocation
|
||||
* @brief HomeLocation setting which contains the constants to tranlate from longitutde and latitude to NED reference frame. Automatically set by @ref GPSModule after acquiring a 3D lock. Used by @ref AHRSCommsModule.
|
||||
*
|
||||
* Autogenerated files and functions for HomeLocation Object
|
||||
* @{
|
||||
*
|
||||
* @file homelocation.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the HomeLocation object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: homelocation.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "homelocation.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t HomeLocationInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(HOMELOCATION_OBJID, HOMELOCATION_NAME, HOMELOCATION_METANAME, 0,
|
||||
HOMELOCATION_ISSINGLEINST, HOMELOCATION_ISSETTINGS, HOMELOCATION_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
HomeLocationData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(HomeLocationData));
|
||||
data.Set = 0;
|
||||
data.Latitude = 0;
|
||||
data.Longitude = 0;
|
||||
data.Altitude = 0;
|
||||
data.ECEF[0] = 0;
|
||||
data.ECEF[1] = 0;
|
||||
data.ECEF[2] = 0;
|
||||
data.RNE[0] = 0;
|
||||
data.RNE[1] = 0;
|
||||
data.RNE[2] = 0;
|
||||
data.RNE[3] = 0;
|
||||
data.RNE[4] = 0;
|
||||
data.RNE[5] = 0;
|
||||
data.RNE[6] = 0;
|
||||
data.RNE[7] = 0;
|
||||
data.RNE[8] = 0;
|
||||
data.Be[0] = 0;
|
||||
data.Be[1] = 0;
|
||||
data.Be[2] = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle HomeLocationHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup I2CStats I2CStats
|
||||
* @brief Tracks statistics on the I2C bus.
|
||||
*
|
||||
* Autogenerated files and functions for I2CStats Object
|
||||
* @{
|
||||
*
|
||||
* @file i2cstats.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the I2CStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: i2cstats.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "i2cstats.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t I2CStatsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(I2CSTATS_OBJID, I2CSTATS_NAME, I2CSTATS_METANAME, 0,
|
||||
I2CSTATS_ISSINGLEINST, I2CSTATS_ISSETTINGS, I2CSTATS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
I2CStatsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(I2CStatsData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 10000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 30000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle I2CStatsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,99 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ActuatorCommand ActuatorCommand
|
||||
* @brief Contains the pulse duration sent to each of the channels. Set by @ref ActuatorModule
|
||||
*
|
||||
* Autogenerated files and functions for ActuatorCommand Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file actuatorcommand.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ActuatorCommand object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: actuatorcommand.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 ACTUATORCOMMAND_H
|
||||
#define ACTUATORCOMMAND_H
|
||||
|
||||
// Object constants
|
||||
#define ACTUATORCOMMAND_OBJID 3907024856U
|
||||
#define ACTUATORCOMMAND_NAME "ActuatorCommand"
|
||||
#define ACTUATORCOMMAND_METANAME "ActuatorCommandMeta"
|
||||
#define ACTUATORCOMMAND_ISSINGLEINST 1
|
||||
#define ACTUATORCOMMAND_ISSETTINGS 0
|
||||
#define ACTUATORCOMMAND_NUMBYTES sizeof(ActuatorCommandData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function ActuatorCommandGet(dataOut)
|
||||
* @brief Populate a ActuatorCommandData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define ActuatorCommandGet(dataOut) UAVObjGetData(ActuatorCommandHandle(), dataOut)
|
||||
#define ActuatorCommandSet(dataIn) UAVObjSetData(ActuatorCommandHandle(), dataIn)
|
||||
#define ActuatorCommandInstGet(instId, dataOut) UAVObjGetInstanceData(ActuatorCommandHandle(), instId, dataOut)
|
||||
#define ActuatorCommandInstSet(instId, dataIn) UAVObjSetInstanceData(ActuatorCommandHandle(), instId, dataIn)
|
||||
#define ActuatorCommandConnectQueue(queue) UAVObjConnectQueue(ActuatorCommandHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define ActuatorCommandConnectCallback(cb) UAVObjConnectCallback(ActuatorCommandHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define ActuatorCommandCreateInstance() UAVObjCreateInstance(ActuatorCommandHandle())
|
||||
#define ActuatorCommandRequestUpdate() UAVObjRequestUpdate(ActuatorCommandHandle())
|
||||
#define ActuatorCommandRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ActuatorCommandHandle(), instId)
|
||||
#define ActuatorCommandUpdated() UAVObjUpdated(ActuatorCommandHandle())
|
||||
#define ActuatorCommandInstUpdated(instId) UAVObjUpdated(ActuatorCommandHandle(), instId)
|
||||
#define ActuatorCommandGetMetadata(dataOut) UAVObjGetMetadata(ActuatorCommandHandle(), dataOut)
|
||||
#define ActuatorCommandSetMetadata(dataIn) UAVObjSetMetadata(ActuatorCommandHandle(), dataIn)
|
||||
#define ActuatorCommandReadOnly(dataIn) UAVObjReadOnly(ActuatorCommandHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int16_t Channel[8];
|
||||
uint8_t UpdateTime;
|
||||
uint8_t MaxUpdateTime;
|
||||
uint8_t NumFailedUpdates;
|
||||
|
||||
} __attribute__((packed)) ActuatorCommandData;
|
||||
|
||||
// Field information
|
||||
// Field Channel information
|
||||
/* Number of elements for field Channel */
|
||||
#define ACTUATORCOMMAND_CHANNEL_NUMELEM 8
|
||||
// Field UpdateTime information
|
||||
// Field MaxUpdateTime information
|
||||
// Field NumFailedUpdates information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t ActuatorCommandInitialize();
|
||||
UAVObjHandle ActuatorCommandHandle();
|
||||
|
||||
#endif // ACTUATORCOMMAND_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,101 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ActuatorDesired ActuatorDesired
|
||||
* @brief Desired raw, pitch and yaw actuator settings. Comes from either @ref StabilizationModule or @ref ManualControlModule depending on FlightMode.
|
||||
*
|
||||
* Autogenerated files and functions for ActuatorDesired Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file actuatordesired.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ActuatorDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: actuatordesired.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 ACTUATORDESIRED_H
|
||||
#define ACTUATORDESIRED_H
|
||||
|
||||
// Object constants
|
||||
#define ACTUATORDESIRED_OBJID 3562104706U
|
||||
#define ACTUATORDESIRED_NAME "ActuatorDesired"
|
||||
#define ACTUATORDESIRED_METANAME "ActuatorDesiredMeta"
|
||||
#define ACTUATORDESIRED_ISSINGLEINST 1
|
||||
#define ACTUATORDESIRED_ISSETTINGS 0
|
||||
#define ACTUATORDESIRED_NUMBYTES sizeof(ActuatorDesiredData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function ActuatorDesiredGet(dataOut)
|
||||
* @brief Populate a ActuatorDesiredData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define ActuatorDesiredGet(dataOut) UAVObjGetData(ActuatorDesiredHandle(), dataOut)
|
||||
#define ActuatorDesiredSet(dataIn) UAVObjSetData(ActuatorDesiredHandle(), dataIn)
|
||||
#define ActuatorDesiredInstGet(instId, dataOut) UAVObjGetInstanceData(ActuatorDesiredHandle(), instId, dataOut)
|
||||
#define ActuatorDesiredInstSet(instId, dataIn) UAVObjSetInstanceData(ActuatorDesiredHandle(), instId, dataIn)
|
||||
#define ActuatorDesiredConnectQueue(queue) UAVObjConnectQueue(ActuatorDesiredHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define ActuatorDesiredConnectCallback(cb) UAVObjConnectCallback(ActuatorDesiredHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define ActuatorDesiredCreateInstance() UAVObjCreateInstance(ActuatorDesiredHandle())
|
||||
#define ActuatorDesiredRequestUpdate() UAVObjRequestUpdate(ActuatorDesiredHandle())
|
||||
#define ActuatorDesiredRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ActuatorDesiredHandle(), instId)
|
||||
#define ActuatorDesiredUpdated() UAVObjUpdated(ActuatorDesiredHandle())
|
||||
#define ActuatorDesiredInstUpdated(instId) UAVObjUpdated(ActuatorDesiredHandle(), instId)
|
||||
#define ActuatorDesiredGetMetadata(dataOut) UAVObjGetMetadata(ActuatorDesiredHandle(), dataOut)
|
||||
#define ActuatorDesiredSetMetadata(dataIn) UAVObjSetMetadata(ActuatorDesiredHandle(), dataIn)
|
||||
#define ActuatorDesiredReadOnly(dataIn) UAVObjReadOnly(ActuatorDesiredHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Roll;
|
||||
float Pitch;
|
||||
float Yaw;
|
||||
float Throttle;
|
||||
float UpdateTime;
|
||||
float NumLongUpdates;
|
||||
|
||||
} __attribute__((packed)) ActuatorDesiredData;
|
||||
|
||||
// Field information
|
||||
// Field Roll information
|
||||
// Field Pitch information
|
||||
// Field Yaw information
|
||||
// Field Throttle information
|
||||
// Field UpdateTime information
|
||||
// Field NumLongUpdates information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t ActuatorDesiredInitialize();
|
||||
UAVObjHandle ActuatorDesiredHandle();
|
||||
|
||||
#endif // ACTUATORDESIRED_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,171 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ActuatorSettings ActuatorSettings
|
||||
* @brief Settings for the @ref ActuatorModule that controls the channel assignments for the mixer based on AircraftType
|
||||
*
|
||||
* Autogenerated files and functions for ActuatorSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file actuatorsettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ActuatorSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: actuatorsettings.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 ACTUATORSETTINGS_H
|
||||
#define ACTUATORSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define ACTUATORSETTINGS_OBJID 844831578U
|
||||
#define ACTUATORSETTINGS_NAME "ActuatorSettings"
|
||||
#define ACTUATORSETTINGS_METANAME "ActuatorSettingsMeta"
|
||||
#define ACTUATORSETTINGS_ISSINGLEINST 1
|
||||
#define ACTUATORSETTINGS_ISSETTINGS 1
|
||||
#define ACTUATORSETTINGS_NUMBYTES sizeof(ActuatorSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function ActuatorSettingsGet(dataOut)
|
||||
* @brief Populate a ActuatorSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define ActuatorSettingsGet(dataOut) UAVObjGetData(ActuatorSettingsHandle(), dataOut)
|
||||
#define ActuatorSettingsSet(dataIn) UAVObjSetData(ActuatorSettingsHandle(), dataIn)
|
||||
#define ActuatorSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(ActuatorSettingsHandle(), instId, dataOut)
|
||||
#define ActuatorSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(ActuatorSettingsHandle(), instId, dataIn)
|
||||
#define ActuatorSettingsConnectQueue(queue) UAVObjConnectQueue(ActuatorSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define ActuatorSettingsConnectCallback(cb) UAVObjConnectCallback(ActuatorSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define ActuatorSettingsCreateInstance() UAVObjCreateInstance(ActuatorSettingsHandle())
|
||||
#define ActuatorSettingsRequestUpdate() UAVObjRequestUpdate(ActuatorSettingsHandle())
|
||||
#define ActuatorSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ActuatorSettingsHandle(), instId)
|
||||
#define ActuatorSettingsUpdated() UAVObjUpdated(ActuatorSettingsHandle())
|
||||
#define ActuatorSettingsInstUpdated(instId) UAVObjUpdated(ActuatorSettingsHandle(), instId)
|
||||
#define ActuatorSettingsGetMetadata(dataOut) UAVObjGetMetadata(ActuatorSettingsHandle(), dataOut)
|
||||
#define ActuatorSettingsSetMetadata(dataIn) UAVObjSetMetadata(ActuatorSettingsHandle(), dataIn)
|
||||
#define ActuatorSettingsReadOnly(dataIn) UAVObjReadOnly(ActuatorSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t FixedWingRoll1;
|
||||
uint8_t FixedWingRoll2;
|
||||
uint8_t FixedWingPitch1;
|
||||
uint8_t FixedWingPitch2;
|
||||
uint8_t FixedWingYaw;
|
||||
uint8_t FixedWingThrottle;
|
||||
uint8_t VTOLMotorN;
|
||||
uint8_t VTOLMotorNE;
|
||||
uint8_t VTOLMotorE;
|
||||
uint8_t VTOLMotorSE;
|
||||
uint8_t VTOLMotorS;
|
||||
uint8_t VTOLMotorSW;
|
||||
uint8_t VTOLMotorW;
|
||||
uint8_t VTOLMotorNW;
|
||||
int16_t ChannelUpdateFreq[2];
|
||||
int16_t ChannelMax[8];
|
||||
int16_t ChannelNeutral[8];
|
||||
int16_t ChannelMin[8];
|
||||
uint8_t ChannelType[8];
|
||||
uint8_t ChannelAddr[8];
|
||||
|
||||
} __attribute__((packed)) ActuatorSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field FixedWingRoll1 information
|
||||
/* Enumeration options for field FixedWingRoll1 */
|
||||
typedef enum { ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL1=0, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL2=1, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL3=2, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL4=3, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL5=4, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL6=5, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL7=6, ACTUATORSETTINGS_FIXEDWINGROLL1_CHANNEL8=7, ACTUATORSETTINGS_FIXEDWINGROLL1_NONE=8 } ActuatorSettingsFixedWingRoll1Options;
|
||||
// Field FixedWingRoll2 information
|
||||
/* Enumeration options for field FixedWingRoll2 */
|
||||
typedef enum { ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL1=0, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL2=1, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL3=2, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL4=3, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL5=4, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL6=5, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL7=6, ACTUATORSETTINGS_FIXEDWINGROLL2_CHANNEL8=7, ACTUATORSETTINGS_FIXEDWINGROLL2_NONE=8 } ActuatorSettingsFixedWingRoll2Options;
|
||||
// Field FixedWingPitch1 information
|
||||
/* Enumeration options for field FixedWingPitch1 */
|
||||
typedef enum { ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL1=0, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL2=1, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL3=2, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL4=3, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL5=4, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL6=5, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL7=6, ACTUATORSETTINGS_FIXEDWINGPITCH1_CHANNEL8=7, ACTUATORSETTINGS_FIXEDWINGPITCH1_NONE=8 } ActuatorSettingsFixedWingPitch1Options;
|
||||
// Field FixedWingPitch2 information
|
||||
/* Enumeration options for field FixedWingPitch2 */
|
||||
typedef enum { ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL1=0, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL2=1, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL3=2, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL4=3, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL5=4, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL6=5, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL7=6, ACTUATORSETTINGS_FIXEDWINGPITCH2_CHANNEL8=7, ACTUATORSETTINGS_FIXEDWINGPITCH2_NONE=8 } ActuatorSettingsFixedWingPitch2Options;
|
||||
// Field FixedWingYaw information
|
||||
/* Enumeration options for field FixedWingYaw */
|
||||
typedef enum { ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL1=0, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL2=1, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL3=2, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL4=3, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL5=4, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL6=5, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL7=6, ACTUATORSETTINGS_FIXEDWINGYAW_CHANNEL8=7, ACTUATORSETTINGS_FIXEDWINGYAW_NONE=8 } ActuatorSettingsFixedWingYawOptions;
|
||||
// Field FixedWingThrottle information
|
||||
/* Enumeration options for field FixedWingThrottle */
|
||||
typedef enum { ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL1=0, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL2=1, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL3=2, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL4=3, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL5=4, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL6=5, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL7=6, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_CHANNEL8=7, ACTUATORSETTINGS_FIXEDWINGTHROTTLE_NONE=8 } ActuatorSettingsFixedWingThrottleOptions;
|
||||
// Field VTOLMotorN information
|
||||
/* Enumeration options for field VTOLMotorN */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORN_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORN_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORN_NONE=8 } ActuatorSettingsVTOLMotorNOptions;
|
||||
// Field VTOLMotorNE information
|
||||
/* Enumeration options for field VTOLMotorNE */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORNE_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORNE_NONE=8 } ActuatorSettingsVTOLMotorNEOptions;
|
||||
// Field VTOLMotorE information
|
||||
/* Enumeration options for field VTOLMotorE */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORE_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORE_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORE_NONE=8 } ActuatorSettingsVTOLMotorEOptions;
|
||||
// Field VTOLMotorSE information
|
||||
/* Enumeration options for field VTOLMotorSE */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORSE_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORSE_NONE=8 } ActuatorSettingsVTOLMotorSEOptions;
|
||||
// Field VTOLMotorS information
|
||||
/* Enumeration options for field VTOLMotorS */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORS_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORS_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORS_NONE=8 } ActuatorSettingsVTOLMotorSOptions;
|
||||
// Field VTOLMotorSW information
|
||||
/* Enumeration options for field VTOLMotorSW */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORSW_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORSW_NONE=8 } ActuatorSettingsVTOLMotorSWOptions;
|
||||
// Field VTOLMotorW information
|
||||
/* Enumeration options for field VTOLMotorW */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORW_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORW_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORW_NONE=8 } ActuatorSettingsVTOLMotorWOptions;
|
||||
// Field VTOLMotorNW information
|
||||
/* Enumeration options for field VTOLMotorNW */
|
||||
typedef enum { ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL1=0, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL2=1, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL3=2, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL4=3, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL5=4, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL6=5, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL7=6, ACTUATORSETTINGS_VTOLMOTORNW_CHANNEL8=7, ACTUATORSETTINGS_VTOLMOTORNW_NONE=8 } ActuatorSettingsVTOLMotorNWOptions;
|
||||
// Field ChannelUpdateFreq information
|
||||
/* Number of elements for field ChannelUpdateFreq */
|
||||
#define ACTUATORSETTINGS_CHANNELUPDATEFREQ_NUMELEM 2
|
||||
// Field ChannelMax information
|
||||
/* Number of elements for field ChannelMax */
|
||||
#define ACTUATORSETTINGS_CHANNELMAX_NUMELEM 8
|
||||
// Field ChannelNeutral information
|
||||
/* Number of elements for field ChannelNeutral */
|
||||
#define ACTUATORSETTINGS_CHANNELNEUTRAL_NUMELEM 8
|
||||
// Field ChannelMin information
|
||||
/* Number of elements for field ChannelMin */
|
||||
#define ACTUATORSETTINGS_CHANNELMIN_NUMELEM 8
|
||||
// Field ChannelType information
|
||||
/* Enumeration options for field ChannelType */
|
||||
typedef enum { ACTUATORSETTINGS_CHANNELTYPE_PWM=0, ACTUATORSETTINGS_CHANNELTYPE_MK=1, ACTUATORSETTINGS_CHANNELTYPE_ASTEC4=2 } ActuatorSettingsChannelTypeOptions;
|
||||
/* Number of elements for field ChannelType */
|
||||
#define ACTUATORSETTINGS_CHANNELTYPE_NUMELEM 8
|
||||
// Field ChannelAddr information
|
||||
/* Number of elements for field ChannelAddr */
|
||||
#define ACTUATORSETTINGS_CHANNELADDR_NUMELEM 8
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t ActuatorSettingsInitialize();
|
||||
UAVObjHandle ActuatorSettingsHandle();
|
||||
|
||||
#endif // ACTUATORSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,157 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AHRSCalibration AHRSCalibration
|
||||
* @brief Contains the calibration settings for the @ref AHRSCommsModule
|
||||
*
|
||||
* Autogenerated files and functions for AHRSCalibration Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file ahrscalibration.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AHRSCalibration object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: ahrscalibration.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 AHRSCALIBRATION_H
|
||||
#define AHRSCALIBRATION_H
|
||||
|
||||
// Object constants
|
||||
#define AHRSCALIBRATION_OBJID 806362034U
|
||||
#define AHRSCALIBRATION_NAME "AHRSCalibration"
|
||||
#define AHRSCALIBRATION_METANAME "AHRSCalibrationMeta"
|
||||
#define AHRSCALIBRATION_ISSINGLEINST 1
|
||||
#define AHRSCALIBRATION_ISSETTINGS 1
|
||||
#define AHRSCALIBRATION_NUMBYTES sizeof(AHRSCalibrationData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function AHRSCalibrationGet(dataOut)
|
||||
* @brief Populate a AHRSCalibrationData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define AHRSCalibrationGet(dataOut) UAVObjGetData(AHRSCalibrationHandle(), dataOut)
|
||||
#define AHRSCalibrationSet(dataIn) UAVObjSetData(AHRSCalibrationHandle(), dataIn)
|
||||
#define AHRSCalibrationInstGet(instId, dataOut) UAVObjGetInstanceData(AHRSCalibrationHandle(), instId, dataOut)
|
||||
#define AHRSCalibrationInstSet(instId, dataIn) UAVObjSetInstanceData(AHRSCalibrationHandle(), instId, dataIn)
|
||||
#define AHRSCalibrationConnectQueue(queue) UAVObjConnectQueue(AHRSCalibrationHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define AHRSCalibrationConnectCallback(cb) UAVObjConnectCallback(AHRSCalibrationHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define AHRSCalibrationCreateInstance() UAVObjCreateInstance(AHRSCalibrationHandle())
|
||||
#define AHRSCalibrationRequestUpdate() UAVObjRequestUpdate(AHRSCalibrationHandle())
|
||||
#define AHRSCalibrationRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(AHRSCalibrationHandle(), instId)
|
||||
#define AHRSCalibrationUpdated() UAVObjUpdated(AHRSCalibrationHandle())
|
||||
#define AHRSCalibrationInstUpdated(instId) UAVObjUpdated(AHRSCalibrationHandle(), instId)
|
||||
#define AHRSCalibrationGetMetadata(dataOut) UAVObjGetMetadata(AHRSCalibrationHandle(), dataOut)
|
||||
#define AHRSCalibrationSetMetadata(dataIn) UAVObjSetMetadata(AHRSCalibrationHandle(), dataIn)
|
||||
#define AHRSCalibrationReadOnly(dataIn) UAVObjReadOnly(AHRSCalibrationHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t measure_var;
|
||||
float accel_bias[3];
|
||||
float accel_scale[3];
|
||||
float accel_var[3];
|
||||
float gyro_bias[3];
|
||||
float gyro_scale[3];
|
||||
float gyro_var[3];
|
||||
float gyro_tempcompfactor[3];
|
||||
float mag_bias[3];
|
||||
float mag_scale[3];
|
||||
float mag_var[3];
|
||||
float vel_var;
|
||||
float pos_var;
|
||||
|
||||
} __attribute__((packed)) AHRSCalibrationData;
|
||||
|
||||
// Field information
|
||||
// Field measure_var information
|
||||
/* Enumeration options for field measure_var */
|
||||
typedef enum { AHRSCALIBRATION_MEASURE_VAR_SET=0, AHRSCALIBRATION_MEASURE_VAR_MEASURE=1 } AHRSCalibrationmeasure_varOptions;
|
||||
// Field accel_bias information
|
||||
/* Array element names for field accel_bias */
|
||||
typedef enum { AHRSCALIBRATION_ACCEL_BIAS_X=0, AHRSCALIBRATION_ACCEL_BIAS_Y=1, AHRSCALIBRATION_ACCEL_BIAS_Z=2 } AHRSCalibrationaccel_biasElem;
|
||||
/* Number of elements for field accel_bias */
|
||||
#define AHRSCALIBRATION_ACCEL_BIAS_NUMELEM 3
|
||||
// Field accel_scale information
|
||||
/* Array element names for field accel_scale */
|
||||
typedef enum { AHRSCALIBRATION_ACCEL_SCALE_X=0, AHRSCALIBRATION_ACCEL_SCALE_Y=1, AHRSCALIBRATION_ACCEL_SCALE_Z=2 } AHRSCalibrationaccel_scaleElem;
|
||||
/* Number of elements for field accel_scale */
|
||||
#define AHRSCALIBRATION_ACCEL_SCALE_NUMELEM 3
|
||||
// Field accel_var information
|
||||
/* Array element names for field accel_var */
|
||||
typedef enum { AHRSCALIBRATION_ACCEL_VAR_X=0, AHRSCALIBRATION_ACCEL_VAR_Y=1, AHRSCALIBRATION_ACCEL_VAR_Z=2 } AHRSCalibrationaccel_varElem;
|
||||
/* Number of elements for field accel_var */
|
||||
#define AHRSCALIBRATION_ACCEL_VAR_NUMELEM 3
|
||||
// Field gyro_bias information
|
||||
/* Array element names for field gyro_bias */
|
||||
typedef enum { AHRSCALIBRATION_GYRO_BIAS_X=0, AHRSCALIBRATION_GYRO_BIAS_Y=1, AHRSCALIBRATION_GYRO_BIAS_Z=2 } AHRSCalibrationgyro_biasElem;
|
||||
/* Number of elements for field gyro_bias */
|
||||
#define AHRSCALIBRATION_GYRO_BIAS_NUMELEM 3
|
||||
// Field gyro_scale information
|
||||
/* Array element names for field gyro_scale */
|
||||
typedef enum { AHRSCALIBRATION_GYRO_SCALE_X=0, AHRSCALIBRATION_GYRO_SCALE_Y=1, AHRSCALIBRATION_GYRO_SCALE_Z=2 } AHRSCalibrationgyro_scaleElem;
|
||||
/* Number of elements for field gyro_scale */
|
||||
#define AHRSCALIBRATION_GYRO_SCALE_NUMELEM 3
|
||||
// Field gyro_var information
|
||||
/* Array element names for field gyro_var */
|
||||
typedef enum { AHRSCALIBRATION_GYRO_VAR_X=0, AHRSCALIBRATION_GYRO_VAR_Y=1, AHRSCALIBRATION_GYRO_VAR_Z=2 } AHRSCalibrationgyro_varElem;
|
||||
/* Number of elements for field gyro_var */
|
||||
#define AHRSCALIBRATION_GYRO_VAR_NUMELEM 3
|
||||
// Field gyro_tempcompfactor information
|
||||
/* Array element names for field gyro_tempcompfactor */
|
||||
typedef enum { AHRSCALIBRATION_GYRO_TEMPCOMPFACTOR_X=0, AHRSCALIBRATION_GYRO_TEMPCOMPFACTOR_Y=1, AHRSCALIBRATION_GYRO_TEMPCOMPFACTOR_Z=2 } AHRSCalibrationgyro_tempcompfactorElem;
|
||||
/* Number of elements for field gyro_tempcompfactor */
|
||||
#define AHRSCALIBRATION_GYRO_TEMPCOMPFACTOR_NUMELEM 3
|
||||
// Field mag_bias information
|
||||
/* Array element names for field mag_bias */
|
||||
typedef enum { AHRSCALIBRATION_MAG_BIAS_X=0, AHRSCALIBRATION_MAG_BIAS_Y=1, AHRSCALIBRATION_MAG_BIAS_Z=2 } AHRSCalibrationmag_biasElem;
|
||||
/* Number of elements for field mag_bias */
|
||||
#define AHRSCALIBRATION_MAG_BIAS_NUMELEM 3
|
||||
// Field mag_scale information
|
||||
/* Array element names for field mag_scale */
|
||||
typedef enum { AHRSCALIBRATION_MAG_SCALE_X=0, AHRSCALIBRATION_MAG_SCALE_Y=1, AHRSCALIBRATION_MAG_SCALE_Z=2 } AHRSCalibrationmag_scaleElem;
|
||||
/* Number of elements for field mag_scale */
|
||||
#define AHRSCALIBRATION_MAG_SCALE_NUMELEM 3
|
||||
// Field mag_var information
|
||||
/* Array element names for field mag_var */
|
||||
typedef enum { AHRSCALIBRATION_MAG_VAR_X=0, AHRSCALIBRATION_MAG_VAR_Y=1, AHRSCALIBRATION_MAG_VAR_Z=2 } AHRSCalibrationmag_varElem;
|
||||
/* Number of elements for field mag_var */
|
||||
#define AHRSCALIBRATION_MAG_VAR_NUMELEM 3
|
||||
// Field vel_var information
|
||||
// Field pos_var information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t AHRSCalibrationInitialize();
|
||||
UAVObjHandle AHRSCalibrationHandle();
|
||||
|
||||
#endif // AHRSCALIBRATION_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,107 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AHRSSettings AHRSSettings
|
||||
* @brief Settings for the @ref AHRSCommsModule to control the algorithm and what is updated
|
||||
*
|
||||
* Autogenerated files and functions for AHRSSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file ahrssettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AHRSSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: ahrssettings.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 AHRSSETTINGS_H
|
||||
#define AHRSSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define AHRSSETTINGS_OBJID 3741078856U
|
||||
#define AHRSSETTINGS_NAME "AHRSSettings"
|
||||
#define AHRSSETTINGS_METANAME "AHRSSettingsMeta"
|
||||
#define AHRSSETTINGS_ISSINGLEINST 1
|
||||
#define AHRSSETTINGS_ISSETTINGS 1
|
||||
#define AHRSSETTINGS_NUMBYTES sizeof(AHRSSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function AHRSSettingsGet(dataOut)
|
||||
* @brief Populate a AHRSSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define AHRSSettingsGet(dataOut) UAVObjGetData(AHRSSettingsHandle(), dataOut)
|
||||
#define AHRSSettingsSet(dataIn) UAVObjSetData(AHRSSettingsHandle(), dataIn)
|
||||
#define AHRSSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(AHRSSettingsHandle(), instId, dataOut)
|
||||
#define AHRSSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(AHRSSettingsHandle(), instId, dataIn)
|
||||
#define AHRSSettingsConnectQueue(queue) UAVObjConnectQueue(AHRSSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define AHRSSettingsConnectCallback(cb) UAVObjConnectCallback(AHRSSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define AHRSSettingsCreateInstance() UAVObjCreateInstance(AHRSSettingsHandle())
|
||||
#define AHRSSettingsRequestUpdate() UAVObjRequestUpdate(AHRSSettingsHandle())
|
||||
#define AHRSSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(AHRSSettingsHandle(), instId)
|
||||
#define AHRSSettingsUpdated() UAVObjUpdated(AHRSSettingsHandle())
|
||||
#define AHRSSettingsInstUpdated(instId) UAVObjUpdated(AHRSSettingsHandle(), instId)
|
||||
#define AHRSSettingsGetMetadata(dataOut) UAVObjGetMetadata(AHRSSettingsHandle(), dataOut)
|
||||
#define AHRSSettingsSetMetadata(dataIn) UAVObjSetMetadata(AHRSSettingsHandle(), dataIn)
|
||||
#define AHRSSettingsReadOnly(dataIn) UAVObjReadOnly(AHRSSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Algorithm;
|
||||
uint8_t Downsampling;
|
||||
uint8_t UpdatePeriod;
|
||||
uint8_t BiasCorrectedRaw;
|
||||
float YawBias;
|
||||
float PitchBias;
|
||||
float RollBias;
|
||||
|
||||
} __attribute__((packed)) AHRSSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field Algorithm information
|
||||
/* Enumeration options for field Algorithm */
|
||||
typedef enum { AHRSSETTINGS_ALGORITHM_SIMPLE=0, AHRSSETTINGS_ALGORITHM_INSGPS_INDOOR_NOMAG=1, AHRSSETTINGS_ALGORITHM_INSGPS_INDOOR=2, AHRSSETTINGS_ALGORITHM_INSGPS_OUTDOOR=3 } AHRSSettingsAlgorithmOptions;
|
||||
// Field Downsampling information
|
||||
// Field UpdatePeriod information
|
||||
// Field BiasCorrectedRaw information
|
||||
/* Enumeration options for field BiasCorrectedRaw */
|
||||
typedef enum { AHRSSETTINGS_BIASCORRECTEDRAW_TRUE=0, AHRSSETTINGS_BIASCORRECTEDRAW_FALSE=1 } AHRSSettingsBiasCorrectedRawOptions;
|
||||
// Field YawBias information
|
||||
// Field PitchBias information
|
||||
// Field RollBias information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t AHRSSettingsInitialize();
|
||||
UAVObjHandle AHRSSettingsHandle();
|
||||
|
||||
#endif // AHRSSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,121 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AhrsStatus AhrsStatus
|
||||
* @brief Status for the @ref AHRSCommsModule, including communication errors
|
||||
*
|
||||
* Autogenerated files and functions for AhrsStatus Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @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 933623714U
|
||||
#define AHRSSTATUS_NAME "AhrsStatus"
|
||||
#define AHRSSTATUS_METANAME "AhrsStatusMeta"
|
||||
#define AHRSSTATUS_ISSINGLEINST 1
|
||||
#define AHRSSTATUS_ISSETTINGS 0
|
||||
#define AHRSSTATUS_NUMBYTES sizeof(AhrsStatusData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function AhrsStatusGet(dataOut)
|
||||
* @brief Populate a AhrsStatusData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#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)
|
||||
#define AhrsStatusReadOnly(dataIn) UAVObjReadOnly(AhrsStatusHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t SerialNumber[8];
|
||||
uint8_t CPULoad;
|
||||
uint32_t RunningTime;
|
||||
uint8_t IdleTimePerCyle;
|
||||
uint8_t RunningTimePerCyle;
|
||||
uint8_t DroppedUpdates;
|
||||
uint8_t LinkRunning;
|
||||
uint8_t AhrsKickstarts;
|
||||
uint8_t AhrsCrcErrors;
|
||||
uint8_t AhrsRetries;
|
||||
uint8_t AhrsInvalidPackets;
|
||||
uint8_t OpCrcErrors;
|
||||
uint8_t OpRetries;
|
||||
uint8_t OpInvalidPackets;
|
||||
|
||||
} __attribute__((packed)) AhrsStatusData;
|
||||
|
||||
// Field information
|
||||
// Field SerialNumber information
|
||||
/* Number of elements for field SerialNumber */
|
||||
#define AHRSSTATUS_SERIALNUMBER_NUMELEM 8
|
||||
// Field CPULoad information
|
||||
// Field RunningTime information
|
||||
// Field IdleTimePerCyle information
|
||||
// Field RunningTimePerCyle information
|
||||
// Field DroppedUpdates information
|
||||
// Field LinkRunning information
|
||||
/* Enumeration options for field LinkRunning */
|
||||
typedef enum { AHRSSTATUS_LINKRUNNING_FALSE=0, AHRSSTATUS_LINKRUNNING_TRUE=1 } AhrsStatusLinkRunningOptions;
|
||||
// Field AhrsKickstarts information
|
||||
// Field AhrsCrcErrors information
|
||||
// Field AhrsRetries information
|
||||
// Field AhrsInvalidPackets information
|
||||
// Field OpCrcErrors information
|
||||
// Field OpRetries information
|
||||
// Field OpInvalidPackets information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t AhrsStatusInitialize();
|
||||
UAVObjHandle AhrsStatusHandle();
|
||||
|
||||
#endif // AHRSSTATUS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AttitudeActual AttitudeActual
|
||||
* @brief The updated Attitude estimation from @ref AHRSCommsModule.
|
||||
*
|
||||
* Autogenerated files and functions for AttitudeActual Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file attitudeactual.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AttitudeActual object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: attitudeactual.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 ATTITUDEACTUAL_H
|
||||
#define ATTITUDEACTUAL_H
|
||||
|
||||
// Object constants
|
||||
#define ATTITUDEACTUAL_OBJID 4233858292U
|
||||
#define ATTITUDEACTUAL_NAME "AttitudeActual"
|
||||
#define ATTITUDEACTUAL_METANAME "AttitudeActualMeta"
|
||||
#define ATTITUDEACTUAL_ISSINGLEINST 1
|
||||
#define ATTITUDEACTUAL_ISSETTINGS 0
|
||||
#define ATTITUDEACTUAL_NUMBYTES sizeof(AttitudeActualData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function AttitudeActualGet(dataOut)
|
||||
* @brief Populate a AttitudeActualData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define AttitudeActualGet(dataOut) UAVObjGetData(AttitudeActualHandle(), dataOut)
|
||||
#define AttitudeActualSet(dataIn) UAVObjSetData(AttitudeActualHandle(), dataIn)
|
||||
#define AttitudeActualInstGet(instId, dataOut) UAVObjGetInstanceData(AttitudeActualHandle(), instId, dataOut)
|
||||
#define AttitudeActualInstSet(instId, dataIn) UAVObjSetInstanceData(AttitudeActualHandle(), instId, dataIn)
|
||||
#define AttitudeActualConnectQueue(queue) UAVObjConnectQueue(AttitudeActualHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define AttitudeActualConnectCallback(cb) UAVObjConnectCallback(AttitudeActualHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define AttitudeActualCreateInstance() UAVObjCreateInstance(AttitudeActualHandle())
|
||||
#define AttitudeActualRequestUpdate() UAVObjRequestUpdate(AttitudeActualHandle())
|
||||
#define AttitudeActualRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(AttitudeActualHandle(), instId)
|
||||
#define AttitudeActualUpdated() UAVObjUpdated(AttitudeActualHandle())
|
||||
#define AttitudeActualInstUpdated(instId) UAVObjUpdated(AttitudeActualHandle(), instId)
|
||||
#define AttitudeActualGetMetadata(dataOut) UAVObjGetMetadata(AttitudeActualHandle(), dataOut)
|
||||
#define AttitudeActualSetMetadata(dataIn) UAVObjSetMetadata(AttitudeActualHandle(), dataIn)
|
||||
#define AttitudeActualReadOnly(dataIn) UAVObjReadOnly(AttitudeActualHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float q1;
|
||||
float q2;
|
||||
float q3;
|
||||
float q4;
|
||||
float Roll;
|
||||
float Pitch;
|
||||
float Yaw;
|
||||
|
||||
} __attribute__((packed)) AttitudeActualData;
|
||||
|
||||
// Field information
|
||||
// Field q1 information
|
||||
// Field q2 information
|
||||
// Field q3 information
|
||||
// Field q4 information
|
||||
// Field Roll information
|
||||
// Field Pitch information
|
||||
// Field Yaw information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t AttitudeActualInitialize();
|
||||
UAVObjHandle AttitudeActualHandle();
|
||||
|
||||
#endif // ATTITUDEACTUAL_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,97 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AttitudeDesired AttitudeDesired
|
||||
* @brief The desired attitude that @ref StabilizationModule will try and achieve if FlightMode is Stabilized. Comes from @ref ManaulControlModule.
|
||||
*
|
||||
* Autogenerated files and functions for AttitudeDesired Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @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
|
||||
/**
|
||||
* @function AttitudeDesiredGet(dataOut)
|
||||
* @brief Populate a AttitudeDesiredData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#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)
|
||||
#define AttitudeDesiredReadOnly(dataIn) UAVObjReadOnly(AttitudeDesiredHandle())
|
||||
|
||||
// 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
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,125 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup AttitudeRaw AttitudeRaw
|
||||
* @brief The raw attitude sensor data from @ref AHRSCommsModule. Not always updated.
|
||||
*
|
||||
* Autogenerated files and functions for AttitudeRaw Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file attituderaw.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the AttitudeRaw object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: attituderaw.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 ATTITUDERAW_H
|
||||
#define ATTITUDERAW_H
|
||||
|
||||
// Object constants
|
||||
#define ATTITUDERAW_OBJID 1323193976U
|
||||
#define ATTITUDERAW_NAME "AttitudeRaw"
|
||||
#define ATTITUDERAW_METANAME "AttitudeRawMeta"
|
||||
#define ATTITUDERAW_ISSINGLEINST 1
|
||||
#define ATTITUDERAW_ISSETTINGS 0
|
||||
#define ATTITUDERAW_NUMBYTES sizeof(AttitudeRawData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function AttitudeRawGet(dataOut)
|
||||
* @brief Populate a AttitudeRawData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define AttitudeRawGet(dataOut) UAVObjGetData(AttitudeRawHandle(), dataOut)
|
||||
#define AttitudeRawSet(dataIn) UAVObjSetData(AttitudeRawHandle(), dataIn)
|
||||
#define AttitudeRawInstGet(instId, dataOut) UAVObjGetInstanceData(AttitudeRawHandle(), instId, dataOut)
|
||||
#define AttitudeRawInstSet(instId, dataIn) UAVObjSetInstanceData(AttitudeRawHandle(), instId, dataIn)
|
||||
#define AttitudeRawConnectQueue(queue) UAVObjConnectQueue(AttitudeRawHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define AttitudeRawConnectCallback(cb) UAVObjConnectCallback(AttitudeRawHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define AttitudeRawCreateInstance() UAVObjCreateInstance(AttitudeRawHandle())
|
||||
#define AttitudeRawRequestUpdate() UAVObjRequestUpdate(AttitudeRawHandle())
|
||||
#define AttitudeRawRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(AttitudeRawHandle(), instId)
|
||||
#define AttitudeRawUpdated() UAVObjUpdated(AttitudeRawHandle())
|
||||
#define AttitudeRawInstUpdated(instId) UAVObjUpdated(AttitudeRawHandle(), instId)
|
||||
#define AttitudeRawGetMetadata(dataOut) UAVObjGetMetadata(AttitudeRawHandle(), dataOut)
|
||||
#define AttitudeRawSetMetadata(dataIn) UAVObjSetMetadata(AttitudeRawHandle(), dataIn)
|
||||
#define AttitudeRawReadOnly(dataIn) UAVObjReadOnly(AttitudeRawHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int16_t magnetometers[3];
|
||||
uint16_t gyros[3];
|
||||
float gyros_filtered[3];
|
||||
uint16_t gyrotemp[2];
|
||||
uint16_t accels[3];
|
||||
float accels_filtered[3];
|
||||
|
||||
} __attribute__((packed)) AttitudeRawData;
|
||||
|
||||
// Field information
|
||||
// Field magnetometers information
|
||||
/* Array element names for field magnetometers */
|
||||
typedef enum { ATTITUDERAW_MAGNETOMETERS_X=0, ATTITUDERAW_MAGNETOMETERS_Y=1, ATTITUDERAW_MAGNETOMETERS_Z=2 } AttitudeRawmagnetometersElem;
|
||||
/* Number of elements for field magnetometers */
|
||||
#define ATTITUDERAW_MAGNETOMETERS_NUMELEM 3
|
||||
// Field gyros information
|
||||
/* Array element names for field gyros */
|
||||
typedef enum { ATTITUDERAW_GYROS_X=0, ATTITUDERAW_GYROS_Y=1, ATTITUDERAW_GYROS_Z=2 } AttitudeRawgyrosElem;
|
||||
/* Number of elements for field gyros */
|
||||
#define ATTITUDERAW_GYROS_NUMELEM 3
|
||||
// Field gyros_filtered information
|
||||
/* Array element names for field gyros_filtered */
|
||||
typedef enum { ATTITUDERAW_GYROS_FILTERED_X=0, ATTITUDERAW_GYROS_FILTERED_Y=1, ATTITUDERAW_GYROS_FILTERED_Z=2 } AttitudeRawgyros_filteredElem;
|
||||
/* Number of elements for field gyros_filtered */
|
||||
#define ATTITUDERAW_GYROS_FILTERED_NUMELEM 3
|
||||
// Field gyrotemp information
|
||||
/* Array element names for field gyrotemp */
|
||||
typedef enum { ATTITUDERAW_GYROTEMP_XY=0, ATTITUDERAW_GYROTEMP_Z=1 } AttitudeRawgyrotempElem;
|
||||
/* Number of elements for field gyrotemp */
|
||||
#define ATTITUDERAW_GYROTEMP_NUMELEM 2
|
||||
// Field accels information
|
||||
/* Array element names for field accels */
|
||||
typedef enum { ATTITUDERAW_ACCELS_X=0, ATTITUDERAW_ACCELS_Y=1, ATTITUDERAW_ACCELS_Z=2 } AttitudeRawaccelsElem;
|
||||
/* Number of elements for field accels */
|
||||
#define ATTITUDERAW_ACCELS_NUMELEM 3
|
||||
// Field accels_filtered information
|
||||
/* Array element names for field accels_filtered */
|
||||
typedef enum { ATTITUDERAW_ACCELS_FILTERED_X=0, ATTITUDERAW_ACCELS_FILTERED_Y=1, ATTITUDERAW_ACCELS_FILTERED_Z=2 } AttitudeRawaccels_filteredElem;
|
||||
/* Number of elements for field accels_filtered */
|
||||
#define ATTITUDERAW_ACCELS_FILTERED_NUMELEM 3
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t AttitudeRawInitialize();
|
||||
UAVObjHandle AttitudeRawHandle();
|
||||
|
||||
#endif // ATTITUDERAW_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup BaroAltitude BaroAltitude
|
||||
* @brief The raw data from the barometric sensor with pressure, temperature and altitude estimate.
|
||||
*
|
||||
* Autogenerated files and functions for BaroAltitude Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file baroaltitude.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the BaroAltitude object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: baroaltitude.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 BAROALTITUDE_H
|
||||
#define BAROALTITUDE_H
|
||||
|
||||
// Object constants
|
||||
#define BAROALTITUDE_OBJID 3980666102U
|
||||
#define BAROALTITUDE_NAME "BaroAltitude"
|
||||
#define BAROALTITUDE_METANAME "BaroAltitudeMeta"
|
||||
#define BAROALTITUDE_ISSINGLEINST 1
|
||||
#define BAROALTITUDE_ISSETTINGS 0
|
||||
#define BAROALTITUDE_NUMBYTES sizeof(BaroAltitudeData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function BaroAltitudeGet(dataOut)
|
||||
* @brief Populate a BaroAltitudeData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define BaroAltitudeGet(dataOut) UAVObjGetData(BaroAltitudeHandle(), dataOut)
|
||||
#define BaroAltitudeSet(dataIn) UAVObjSetData(BaroAltitudeHandle(), dataIn)
|
||||
#define BaroAltitudeInstGet(instId, dataOut) UAVObjGetInstanceData(BaroAltitudeHandle(), instId, dataOut)
|
||||
#define BaroAltitudeInstSet(instId, dataIn) UAVObjSetInstanceData(BaroAltitudeHandle(), instId, dataIn)
|
||||
#define BaroAltitudeConnectQueue(queue) UAVObjConnectQueue(BaroAltitudeHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define BaroAltitudeConnectCallback(cb) UAVObjConnectCallback(BaroAltitudeHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define BaroAltitudeCreateInstance() UAVObjCreateInstance(BaroAltitudeHandle())
|
||||
#define BaroAltitudeRequestUpdate() UAVObjRequestUpdate(BaroAltitudeHandle())
|
||||
#define BaroAltitudeRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(BaroAltitudeHandle(), instId)
|
||||
#define BaroAltitudeUpdated() UAVObjUpdated(BaroAltitudeHandle())
|
||||
#define BaroAltitudeInstUpdated(instId) UAVObjUpdated(BaroAltitudeHandle(), instId)
|
||||
#define BaroAltitudeGetMetadata(dataOut) UAVObjGetMetadata(BaroAltitudeHandle(), dataOut)
|
||||
#define BaroAltitudeSetMetadata(dataIn) UAVObjSetMetadata(BaroAltitudeHandle(), dataIn)
|
||||
#define BaroAltitudeReadOnly(dataIn) UAVObjReadOnly(BaroAltitudeHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Altitude;
|
||||
float Temperature;
|
||||
float Pressure;
|
||||
|
||||
} __attribute__((packed)) BaroAltitudeData;
|
||||
|
||||
// Field information
|
||||
// Field Altitude information
|
||||
// Field Temperature information
|
||||
// Field Pressure information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t BaroAltitudeInitialize();
|
||||
UAVObjHandle BaroAltitudeHandle();
|
||||
|
||||
#endif // BAROALTITUDE_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup BatterySettings BatterySettings
|
||||
* @brief Battery configuration information.
|
||||
*
|
||||
* Autogenerated files and functions for BatterySettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file batterysettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the BatterySettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: batterysettings.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 BATTERYSETTINGS_H
|
||||
#define BATTERYSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define BATTERYSETTINGS_OBJID 2784959898U
|
||||
#define BATTERYSETTINGS_NAME "BatterySettings"
|
||||
#define BATTERYSETTINGS_METANAME "BatterySettingsMeta"
|
||||
#define BATTERYSETTINGS_ISSINGLEINST 1
|
||||
#define BATTERYSETTINGS_ISSETTINGS 1
|
||||
#define BATTERYSETTINGS_NUMBYTES sizeof(BatterySettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function BatterySettingsGet(dataOut)
|
||||
* @brief Populate a BatterySettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define BatterySettingsGet(dataOut) UAVObjGetData(BatterySettingsHandle(), dataOut)
|
||||
#define BatterySettingsSet(dataIn) UAVObjSetData(BatterySettingsHandle(), dataIn)
|
||||
#define BatterySettingsInstGet(instId, dataOut) UAVObjGetInstanceData(BatterySettingsHandle(), instId, dataOut)
|
||||
#define BatterySettingsInstSet(instId, dataIn) UAVObjSetInstanceData(BatterySettingsHandle(), instId, dataIn)
|
||||
#define BatterySettingsConnectQueue(queue) UAVObjConnectQueue(BatterySettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define BatterySettingsConnectCallback(cb) UAVObjConnectCallback(BatterySettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define BatterySettingsCreateInstance() UAVObjCreateInstance(BatterySettingsHandle())
|
||||
#define BatterySettingsRequestUpdate() UAVObjRequestUpdate(BatterySettingsHandle())
|
||||
#define BatterySettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(BatterySettingsHandle(), instId)
|
||||
#define BatterySettingsUpdated() UAVObjUpdated(BatterySettingsHandle())
|
||||
#define BatterySettingsInstUpdated(instId) UAVObjUpdated(BatterySettingsHandle(), instId)
|
||||
#define BatterySettingsGetMetadata(dataOut) UAVObjGetMetadata(BatterySettingsHandle(), dataOut)
|
||||
#define BatterySettingsSetMetadata(dataIn) UAVObjSetMetadata(BatterySettingsHandle(), dataIn)
|
||||
#define BatterySettingsReadOnly(dataIn) UAVObjReadOnly(BatterySettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float BatteryVoltage;
|
||||
uint32_t BatteryCapacity;
|
||||
uint8_t BatteryType;
|
||||
float Calibrations[2];
|
||||
|
||||
} __attribute__((packed)) BatterySettingsData;
|
||||
|
||||
// Field information
|
||||
// Field BatteryVoltage information
|
||||
// Field BatteryCapacity information
|
||||
// Field BatteryType information
|
||||
/* Enumeration options for field BatteryType */
|
||||
typedef enum { BATTERYSETTINGS_BATTERYTYPE_LIPO=0, BATTERYSETTINGS_BATTERYTYPE_A123=1, BATTERYSETTINGS_BATTERYTYPE_LICO=2, BATTERYSETTINGS_BATTERYTYPE_LIFESO4=3, BATTERYSETTINGS_BATTERYTYPE_NONE=4 } BatterySettingsBatteryTypeOptions;
|
||||
// Field Calibrations information
|
||||
/* Array element names for field Calibrations */
|
||||
typedef enum { BATTERYSETTINGS_CALIBRATIONS_VOLTAGE=0, BATTERYSETTINGS_CALIBRATIONS_CURRENT=1 } BatterySettingsCalibrationsElem;
|
||||
/* Number of elements for field Calibrations */
|
||||
#define BATTERYSETTINGS_CALIBRATIONS_NUMELEM 2
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t BatterySettingsInitialize();
|
||||
UAVObjHandle BatterySettingsHandle();
|
||||
|
||||
#endif // BATTERYSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FirmwareIAPObj FirmwareIAPObj
|
||||
* @brief Firmware IAP
|
||||
*
|
||||
* Autogenerated files and functions for FirmwareIAPObj Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file firmwareiapobj.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FirmwareIAPObj object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: firmwareiap.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 FIRMWAREIAPOBJ_H
|
||||
#define FIRMWAREIAPOBJ_H
|
||||
|
||||
// Object constants
|
||||
#define FIRMWAREIAPOBJ_OBJID 879185696U
|
||||
#define FIRMWAREIAPOBJ_NAME "FirmwareIAPObj"
|
||||
#define FIRMWAREIAPOBJ_METANAME "FirmwareIAPObjMeta"
|
||||
#define FIRMWAREIAPOBJ_ISSINGLEINST 1
|
||||
#define FIRMWAREIAPOBJ_ISSETTINGS 0
|
||||
#define FIRMWAREIAPOBJ_NUMBYTES sizeof(FirmwareIAPObjData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function FirmwareIAPObjGet(dataOut)
|
||||
* @brief Populate a FirmwareIAPObjData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define FirmwareIAPObjGet(dataOut) UAVObjGetData(FirmwareIAPObjHandle(), dataOut)
|
||||
#define FirmwareIAPObjSet(dataIn) UAVObjSetData(FirmwareIAPObjHandle(), dataIn)
|
||||
#define FirmwareIAPObjInstGet(instId, dataOut) UAVObjGetInstanceData(FirmwareIAPObjHandle(), instId, dataOut)
|
||||
#define FirmwareIAPObjInstSet(instId, dataIn) UAVObjSetInstanceData(FirmwareIAPObjHandle(), instId, dataIn)
|
||||
#define FirmwareIAPObjConnectQueue(queue) UAVObjConnectQueue(FirmwareIAPObjHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define FirmwareIAPObjConnectCallback(cb) UAVObjConnectCallback(FirmwareIAPObjHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define FirmwareIAPObjCreateInstance() UAVObjCreateInstance(FirmwareIAPObjHandle())
|
||||
#define FirmwareIAPObjRequestUpdate() UAVObjRequestUpdate(FirmwareIAPObjHandle())
|
||||
#define FirmwareIAPObjRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(FirmwareIAPObjHandle(), instId)
|
||||
#define FirmwareIAPObjUpdated() UAVObjUpdated(FirmwareIAPObjHandle())
|
||||
#define FirmwareIAPObjInstUpdated(instId) UAVObjUpdated(FirmwareIAPObjHandle(), instId)
|
||||
#define FirmwareIAPObjGetMetadata(dataOut) UAVObjGetMetadata(FirmwareIAPObjHandle(), dataOut)
|
||||
#define FirmwareIAPObjSetMetadata(dataIn) UAVObjSetMetadata(FirmwareIAPObjHandle(), dataIn)
|
||||
#define FirmwareIAPObjReadOnly(dataIn) UAVObjReadOnly(FirmwareIAPObjHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint16_t Command;
|
||||
uint8_t Description[100];
|
||||
uint8_t HWVersion;
|
||||
uint8_t Target;
|
||||
uint8_t ArmReset;
|
||||
uint32_t crc;
|
||||
|
||||
} __attribute__((packed)) FirmwareIAPObjData;
|
||||
|
||||
// Field information
|
||||
// Field Command information
|
||||
// Field Description information
|
||||
/* Number of elements for field Description */
|
||||
#define FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM 100
|
||||
// Field HWVersion information
|
||||
// Field Target information
|
||||
// Field ArmReset information
|
||||
// Field crc information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t FirmwareIAPObjInitialize();
|
||||
UAVObjHandle FirmwareIAPObjHandle();
|
||||
|
||||
#endif // FIRMWAREIAPOBJ_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,101 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightBatteryState FlightBatteryState
|
||||
* @brief Battery status information.
|
||||
*
|
||||
* Autogenerated files and functions for FlightBatteryState Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file flightbatterystate.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightBatteryState object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightbatterystate.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 FLIGHTBATTERYSTATE_H
|
||||
#define FLIGHTBATTERYSTATE_H
|
||||
|
||||
// Object constants
|
||||
#define FLIGHTBATTERYSTATE_OBJID 126985486U
|
||||
#define FLIGHTBATTERYSTATE_NAME "FlightBatteryState"
|
||||
#define FLIGHTBATTERYSTATE_METANAME "FlightBatteryStateMeta"
|
||||
#define FLIGHTBATTERYSTATE_ISSINGLEINST 1
|
||||
#define FLIGHTBATTERYSTATE_ISSETTINGS 0
|
||||
#define FLIGHTBATTERYSTATE_NUMBYTES sizeof(FlightBatteryStateData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function FlightBatteryStateGet(dataOut)
|
||||
* @brief Populate a FlightBatteryStateData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define FlightBatteryStateGet(dataOut) UAVObjGetData(FlightBatteryStateHandle(), dataOut)
|
||||
#define FlightBatteryStateSet(dataIn) UAVObjSetData(FlightBatteryStateHandle(), dataIn)
|
||||
#define FlightBatteryStateInstGet(instId, dataOut) UAVObjGetInstanceData(FlightBatteryStateHandle(), instId, dataOut)
|
||||
#define FlightBatteryStateInstSet(instId, dataIn) UAVObjSetInstanceData(FlightBatteryStateHandle(), instId, dataIn)
|
||||
#define FlightBatteryStateConnectQueue(queue) UAVObjConnectQueue(FlightBatteryStateHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define FlightBatteryStateConnectCallback(cb) UAVObjConnectCallback(FlightBatteryStateHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define FlightBatteryStateCreateInstance() UAVObjCreateInstance(FlightBatteryStateHandle())
|
||||
#define FlightBatteryStateRequestUpdate() UAVObjRequestUpdate(FlightBatteryStateHandle())
|
||||
#define FlightBatteryStateRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(FlightBatteryStateHandle(), instId)
|
||||
#define FlightBatteryStateUpdated() UAVObjUpdated(FlightBatteryStateHandle())
|
||||
#define FlightBatteryStateInstUpdated(instId) UAVObjUpdated(FlightBatteryStateHandle(), instId)
|
||||
#define FlightBatteryStateGetMetadata(dataOut) UAVObjGetMetadata(FlightBatteryStateHandle(), dataOut)
|
||||
#define FlightBatteryStateSetMetadata(dataIn) UAVObjSetMetadata(FlightBatteryStateHandle(), dataIn)
|
||||
#define FlightBatteryStateReadOnly(dataIn) UAVObjReadOnly(FlightBatteryStateHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Voltage;
|
||||
float Current;
|
||||
float PeakCurrent;
|
||||
float AvgCurrent;
|
||||
float ConsumedEnergy;
|
||||
float EstimatedFlightTime;
|
||||
|
||||
} __attribute__((packed)) FlightBatteryStateData;
|
||||
|
||||
// Field information
|
||||
// Field Voltage information
|
||||
// Field Current information
|
||||
// Field PeakCurrent information
|
||||
// Field AvgCurrent information
|
||||
// Field ConsumedEnergy information
|
||||
// Field EstimatedFlightTime information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t FlightBatteryStateInitialize();
|
||||
UAVObjHandle FlightBatteryStateHandle();
|
||||
|
||||
#endif // FLIGHTBATTERYSTATE_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,91 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightPlanControl FlightPlanControl
|
||||
* @brief Control the flight plan script
|
||||
*
|
||||
* Autogenerated files and functions for FlightPlanControl Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file flightplancontrol.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightPlanControl object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightplancontrol.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 FLIGHTPLANCONTROL_H
|
||||
#define FLIGHTPLANCONTROL_H
|
||||
|
||||
// Object constants
|
||||
#define FLIGHTPLANCONTROL_OBJID 4125349796U
|
||||
#define FLIGHTPLANCONTROL_NAME "FlightPlanControl"
|
||||
#define FLIGHTPLANCONTROL_METANAME "FlightPlanControlMeta"
|
||||
#define FLIGHTPLANCONTROL_ISSINGLEINST 1
|
||||
#define FLIGHTPLANCONTROL_ISSETTINGS 0
|
||||
#define FLIGHTPLANCONTROL_NUMBYTES sizeof(FlightPlanControlData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function FlightPlanControlGet(dataOut)
|
||||
* @brief Populate a FlightPlanControlData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define FlightPlanControlGet(dataOut) UAVObjGetData(FlightPlanControlHandle(), dataOut)
|
||||
#define FlightPlanControlSet(dataIn) UAVObjSetData(FlightPlanControlHandle(), dataIn)
|
||||
#define FlightPlanControlInstGet(instId, dataOut) UAVObjGetInstanceData(FlightPlanControlHandle(), instId, dataOut)
|
||||
#define FlightPlanControlInstSet(instId, dataIn) UAVObjSetInstanceData(FlightPlanControlHandle(), instId, dataIn)
|
||||
#define FlightPlanControlConnectQueue(queue) UAVObjConnectQueue(FlightPlanControlHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define FlightPlanControlConnectCallback(cb) UAVObjConnectCallback(FlightPlanControlHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define FlightPlanControlCreateInstance() UAVObjCreateInstance(FlightPlanControlHandle())
|
||||
#define FlightPlanControlRequestUpdate() UAVObjRequestUpdate(FlightPlanControlHandle())
|
||||
#define FlightPlanControlRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(FlightPlanControlHandle(), instId)
|
||||
#define FlightPlanControlUpdated() UAVObjUpdated(FlightPlanControlHandle())
|
||||
#define FlightPlanControlInstUpdated(instId) UAVObjUpdated(FlightPlanControlHandle(), instId)
|
||||
#define FlightPlanControlGetMetadata(dataOut) UAVObjGetMetadata(FlightPlanControlHandle(), dataOut)
|
||||
#define FlightPlanControlSetMetadata(dataIn) UAVObjSetMetadata(FlightPlanControlHandle(), dataIn)
|
||||
#define FlightPlanControlReadOnly(dataIn) UAVObjReadOnly(FlightPlanControlHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Test;
|
||||
|
||||
} __attribute__((packed)) FlightPlanControlData;
|
||||
|
||||
// Field information
|
||||
// Field Test information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t FlightPlanControlInitialize();
|
||||
UAVObjHandle FlightPlanControlHandle();
|
||||
|
||||
#endif // FLIGHTPLANCONTROL_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,91 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightPlanSettings FlightPlanSettings
|
||||
* @brief Settings for the flight plan module, control the execution of the script
|
||||
*
|
||||
* Autogenerated files and functions for FlightPlanSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file flightplansettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightPlanSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightplansettings.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 FLIGHTPLANSETTINGS_H
|
||||
#define FLIGHTPLANSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define FLIGHTPLANSETTINGS_OBJID 2234942498U
|
||||
#define FLIGHTPLANSETTINGS_NAME "FlightPlanSettings"
|
||||
#define FLIGHTPLANSETTINGS_METANAME "FlightPlanSettingsMeta"
|
||||
#define FLIGHTPLANSETTINGS_ISSINGLEINST 1
|
||||
#define FLIGHTPLANSETTINGS_ISSETTINGS 1
|
||||
#define FLIGHTPLANSETTINGS_NUMBYTES sizeof(FlightPlanSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function FlightPlanSettingsGet(dataOut)
|
||||
* @brief Populate a FlightPlanSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define FlightPlanSettingsGet(dataOut) UAVObjGetData(FlightPlanSettingsHandle(), dataOut)
|
||||
#define FlightPlanSettingsSet(dataIn) UAVObjSetData(FlightPlanSettingsHandle(), dataIn)
|
||||
#define FlightPlanSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(FlightPlanSettingsHandle(), instId, dataOut)
|
||||
#define FlightPlanSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(FlightPlanSettingsHandle(), instId, dataIn)
|
||||
#define FlightPlanSettingsConnectQueue(queue) UAVObjConnectQueue(FlightPlanSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define FlightPlanSettingsConnectCallback(cb) UAVObjConnectCallback(FlightPlanSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define FlightPlanSettingsCreateInstance() UAVObjCreateInstance(FlightPlanSettingsHandle())
|
||||
#define FlightPlanSettingsRequestUpdate() UAVObjRequestUpdate(FlightPlanSettingsHandle())
|
||||
#define FlightPlanSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(FlightPlanSettingsHandle(), instId)
|
||||
#define FlightPlanSettingsUpdated() UAVObjUpdated(FlightPlanSettingsHandle())
|
||||
#define FlightPlanSettingsInstUpdated(instId) UAVObjUpdated(FlightPlanSettingsHandle(), instId)
|
||||
#define FlightPlanSettingsGetMetadata(dataOut) UAVObjGetMetadata(FlightPlanSettingsHandle(), dataOut)
|
||||
#define FlightPlanSettingsSetMetadata(dataIn) UAVObjSetMetadata(FlightPlanSettingsHandle(), dataIn)
|
||||
#define FlightPlanSettingsReadOnly(dataIn) UAVObjReadOnly(FlightPlanSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Test;
|
||||
|
||||
} __attribute__((packed)) FlightPlanSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field Test information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t FlightPlanSettingsInitialize();
|
||||
UAVObjHandle FlightPlanSettingsHandle();
|
||||
|
||||
#endif // FLIGHTPLANSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightPlanStatus FlightPlanStatus
|
||||
* @brief Status of the flight plan script
|
||||
*
|
||||
* Autogenerated files and functions for FlightPlanStatus Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file flightplanstatus.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightPlanStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flightplanstatus.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 FLIGHTPLANSTATUS_H
|
||||
#define FLIGHTPLANSTATUS_H
|
||||
|
||||
// Object constants
|
||||
#define FLIGHTPLANSTATUS_OBJID 2726772894U
|
||||
#define FLIGHTPLANSTATUS_NAME "FlightPlanStatus"
|
||||
#define FLIGHTPLANSTATUS_METANAME "FlightPlanStatusMeta"
|
||||
#define FLIGHTPLANSTATUS_ISSINGLEINST 1
|
||||
#define FLIGHTPLANSTATUS_ISSETTINGS 0
|
||||
#define FLIGHTPLANSTATUS_NUMBYTES sizeof(FlightPlanStatusData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function FlightPlanStatusGet(dataOut)
|
||||
* @brief Populate a FlightPlanStatusData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define FlightPlanStatusGet(dataOut) UAVObjGetData(FlightPlanStatusHandle(), dataOut)
|
||||
#define FlightPlanStatusSet(dataIn) UAVObjSetData(FlightPlanStatusHandle(), dataIn)
|
||||
#define FlightPlanStatusInstGet(instId, dataOut) UAVObjGetInstanceData(FlightPlanStatusHandle(), instId, dataOut)
|
||||
#define FlightPlanStatusInstSet(instId, dataIn) UAVObjSetInstanceData(FlightPlanStatusHandle(), instId, dataIn)
|
||||
#define FlightPlanStatusConnectQueue(queue) UAVObjConnectQueue(FlightPlanStatusHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define FlightPlanStatusConnectCallback(cb) UAVObjConnectCallback(FlightPlanStatusHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define FlightPlanStatusCreateInstance() UAVObjCreateInstance(FlightPlanStatusHandle())
|
||||
#define FlightPlanStatusRequestUpdate() UAVObjRequestUpdate(FlightPlanStatusHandle())
|
||||
#define FlightPlanStatusRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(FlightPlanStatusHandle(), instId)
|
||||
#define FlightPlanStatusUpdated() UAVObjUpdated(FlightPlanStatusHandle())
|
||||
#define FlightPlanStatusInstUpdated(instId) UAVObjUpdated(FlightPlanStatusHandle(), instId)
|
||||
#define FlightPlanStatusGetMetadata(dataOut) UAVObjGetMetadata(FlightPlanStatusHandle(), dataOut)
|
||||
#define FlightPlanStatusSetMetadata(dataIn) UAVObjSetMetadata(FlightPlanStatusHandle(), dataIn)
|
||||
#define FlightPlanStatusReadOnly(dataIn) UAVObjReadOnly(FlightPlanStatusHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Status;
|
||||
uint8_t ErrorType;
|
||||
uint32_t ErrorFileID;
|
||||
uint32_t ErrorLineNum;
|
||||
float Debug;
|
||||
|
||||
} __attribute__((packed)) FlightPlanStatusData;
|
||||
|
||||
// Field information
|
||||
// Field Status information
|
||||
/* Enumeration options for field Status */
|
||||
typedef enum { FLIGHTPLANSTATUS_STATUS_NONE=0, FLIGHTPLANSTATUS_STATUS_RUNNING=1, FLIGHTPLANSTATUS_STATUS_IDLE=2, FLIGHTPLANSTATUS_STATUS_VMINITERROR=3, FLIGHTPLANSTATUS_STATUS_SCRIPTSTARTERROR=4, FLIGHTPLANSTATUS_STATUS_RUNTIMEERROR=5 } FlightPlanStatusStatusOptions;
|
||||
// Field ErrorType information
|
||||
/* Enumeration options for field ErrorType */
|
||||
typedef enum { FLIGHTPLANSTATUS_ERRORTYPE_NONE=0 } FlightPlanStatusErrorTypeOptions;
|
||||
// Field ErrorFileID information
|
||||
// Field ErrorLineNum information
|
||||
// Field Debug information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t FlightPlanStatusInitialize();
|
||||
UAVObjHandle FlightPlanStatusHandle();
|
||||
|
||||
#endif // FLIGHTPLANSTATUS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup FlightTelemetryStats FlightTelemetryStats
|
||||
* @brief Maintains the telemetry statistics from the OpenPilot flight computer.
|
||||
*
|
||||
* Autogenerated files and functions for FlightTelemetryStats Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file flighttelemetrystats.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the FlightTelemetryStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: flighttelemetrystats.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 FLIGHTTELEMETRYSTATS_H
|
||||
#define FLIGHTTELEMETRYSTATS_H
|
||||
|
||||
// Object constants
|
||||
#define FLIGHTTELEMETRYSTATS_OBJID 1712072286U
|
||||
#define FLIGHTTELEMETRYSTATS_NAME "FlightTelemetryStats"
|
||||
#define FLIGHTTELEMETRYSTATS_METANAME "FlightTelemetryStatsMeta"
|
||||
#define FLIGHTTELEMETRYSTATS_ISSINGLEINST 1
|
||||
#define FLIGHTTELEMETRYSTATS_ISSETTINGS 0
|
||||
#define FLIGHTTELEMETRYSTATS_NUMBYTES sizeof(FlightTelemetryStatsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function FlightTelemetryStatsGet(dataOut)
|
||||
* @brief Populate a FlightTelemetryStatsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define FlightTelemetryStatsGet(dataOut) UAVObjGetData(FlightTelemetryStatsHandle(), dataOut)
|
||||
#define FlightTelemetryStatsSet(dataIn) UAVObjSetData(FlightTelemetryStatsHandle(), dataIn)
|
||||
#define FlightTelemetryStatsInstGet(instId, dataOut) UAVObjGetInstanceData(FlightTelemetryStatsHandle(), instId, dataOut)
|
||||
#define FlightTelemetryStatsInstSet(instId, dataIn) UAVObjSetInstanceData(FlightTelemetryStatsHandle(), instId, dataIn)
|
||||
#define FlightTelemetryStatsConnectQueue(queue) UAVObjConnectQueue(FlightTelemetryStatsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define FlightTelemetryStatsConnectCallback(cb) UAVObjConnectCallback(FlightTelemetryStatsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define FlightTelemetryStatsCreateInstance() UAVObjCreateInstance(FlightTelemetryStatsHandle())
|
||||
#define FlightTelemetryStatsRequestUpdate() UAVObjRequestUpdate(FlightTelemetryStatsHandle())
|
||||
#define FlightTelemetryStatsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(FlightTelemetryStatsHandle(), instId)
|
||||
#define FlightTelemetryStatsUpdated() UAVObjUpdated(FlightTelemetryStatsHandle())
|
||||
#define FlightTelemetryStatsInstUpdated(instId) UAVObjUpdated(FlightTelemetryStatsHandle(), instId)
|
||||
#define FlightTelemetryStatsGetMetadata(dataOut) UAVObjGetMetadata(FlightTelemetryStatsHandle(), dataOut)
|
||||
#define FlightTelemetryStatsSetMetadata(dataIn) UAVObjSetMetadata(FlightTelemetryStatsHandle(), dataIn)
|
||||
#define FlightTelemetryStatsReadOnly(dataIn) UAVObjReadOnly(FlightTelemetryStatsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Status;
|
||||
float TxDataRate;
|
||||
float RxDataRate;
|
||||
uint32_t TxFailures;
|
||||
uint32_t RxFailures;
|
||||
uint32_t TxRetries;
|
||||
|
||||
} __attribute__((packed)) FlightTelemetryStatsData;
|
||||
|
||||
// Field information
|
||||
// Field Status information
|
||||
/* Enumeration options for field Status */
|
||||
typedef enum { FLIGHTTELEMETRYSTATS_STATUS_DISCONNECTED=0, FLIGHTTELEMETRYSTATS_STATUS_HANDSHAKEREQ=1, FLIGHTTELEMETRYSTATS_STATUS_HANDSHAKEACK=2, FLIGHTTELEMETRYSTATS_STATUS_CONNECTED=3 } FlightTelemetryStatsStatusOptions;
|
||||
// Field TxDataRate information
|
||||
// Field RxDataRate information
|
||||
// Field TxFailures information
|
||||
// Field RxFailures information
|
||||
// Field TxRetries information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t FlightTelemetryStatsInitialize();
|
||||
UAVObjHandle FlightTelemetryStatsHandle();
|
||||
|
||||
#endif // FLIGHTTELEMETRYSTATS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GCSTelemetryStats GCSTelemetryStats
|
||||
* @brief The telemetry statistics from the ground computer
|
||||
*
|
||||
* Autogenerated files and functions for GCSTelemetryStats Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file gcstelemetrystats.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GCSTelemetryStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gcstelemetrystats.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 GCSTELEMETRYSTATS_H
|
||||
#define GCSTELEMETRYSTATS_H
|
||||
|
||||
// Object constants
|
||||
#define GCSTELEMETRYSTATS_OBJID 1998458950U
|
||||
#define GCSTELEMETRYSTATS_NAME "GCSTelemetryStats"
|
||||
#define GCSTELEMETRYSTATS_METANAME "GCSTelemetryStatsMeta"
|
||||
#define GCSTELEMETRYSTATS_ISSINGLEINST 1
|
||||
#define GCSTELEMETRYSTATS_ISSETTINGS 0
|
||||
#define GCSTELEMETRYSTATS_NUMBYTES sizeof(GCSTelemetryStatsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function GCSTelemetryStatsGet(dataOut)
|
||||
* @brief Populate a GCSTelemetryStatsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define GCSTelemetryStatsGet(dataOut) UAVObjGetData(GCSTelemetryStatsHandle(), dataOut)
|
||||
#define GCSTelemetryStatsSet(dataIn) UAVObjSetData(GCSTelemetryStatsHandle(), dataIn)
|
||||
#define GCSTelemetryStatsInstGet(instId, dataOut) UAVObjGetInstanceData(GCSTelemetryStatsHandle(), instId, dataOut)
|
||||
#define GCSTelemetryStatsInstSet(instId, dataIn) UAVObjSetInstanceData(GCSTelemetryStatsHandle(), instId, dataIn)
|
||||
#define GCSTelemetryStatsConnectQueue(queue) UAVObjConnectQueue(GCSTelemetryStatsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define GCSTelemetryStatsConnectCallback(cb) UAVObjConnectCallback(GCSTelemetryStatsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define GCSTelemetryStatsCreateInstance() UAVObjCreateInstance(GCSTelemetryStatsHandle())
|
||||
#define GCSTelemetryStatsRequestUpdate() UAVObjRequestUpdate(GCSTelemetryStatsHandle())
|
||||
#define GCSTelemetryStatsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(GCSTelemetryStatsHandle(), instId)
|
||||
#define GCSTelemetryStatsUpdated() UAVObjUpdated(GCSTelemetryStatsHandle())
|
||||
#define GCSTelemetryStatsInstUpdated(instId) UAVObjUpdated(GCSTelemetryStatsHandle(), instId)
|
||||
#define GCSTelemetryStatsGetMetadata(dataOut) UAVObjGetMetadata(GCSTelemetryStatsHandle(), dataOut)
|
||||
#define GCSTelemetryStatsSetMetadata(dataIn) UAVObjSetMetadata(GCSTelemetryStatsHandle(), dataIn)
|
||||
#define GCSTelemetryStatsReadOnly(dataIn) UAVObjReadOnly(GCSTelemetryStatsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Status;
|
||||
float TxDataRate;
|
||||
float RxDataRate;
|
||||
uint32_t TxFailures;
|
||||
uint32_t RxFailures;
|
||||
uint32_t TxRetries;
|
||||
|
||||
} __attribute__((packed)) GCSTelemetryStatsData;
|
||||
|
||||
// Field information
|
||||
// Field Status information
|
||||
/* Enumeration options for field Status */
|
||||
typedef enum { GCSTELEMETRYSTATS_STATUS_DISCONNECTED=0, GCSTELEMETRYSTATS_STATUS_HANDSHAKEREQ=1, GCSTELEMETRYSTATS_STATUS_HANDSHAKEACK=2, GCSTELEMETRYSTATS_STATUS_CONNECTED=3 } GCSTelemetryStatsStatusOptions;
|
||||
// Field TxDataRate information
|
||||
// Field RxDataRate information
|
||||
// Field TxFailures information
|
||||
// Field RxFailures information
|
||||
// Field TxRetries information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t GCSTelemetryStatsInitialize();
|
||||
UAVObjHandle GCSTelemetryStatsHandle();
|
||||
|
||||
#endif // GCSTELEMETRYSTATS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,113 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GPSPosition GPSPosition
|
||||
* @brief Future object for the raw GPS data from @ref GPSModule. Only should be used by @ref AHRSCommsModule.
|
||||
*
|
||||
* Autogenerated files and functions for GPSPosition Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file gpsposition.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GPSPosition object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gpsposition.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 GPSPOSITION_H
|
||||
#define GPSPOSITION_H
|
||||
|
||||
// Object constants
|
||||
#define GPSPOSITION_OBJID 3041480770U
|
||||
#define GPSPOSITION_NAME "GPSPosition"
|
||||
#define GPSPOSITION_METANAME "GPSPositionMeta"
|
||||
#define GPSPOSITION_ISSINGLEINST 1
|
||||
#define GPSPOSITION_ISSETTINGS 0
|
||||
#define GPSPOSITION_NUMBYTES sizeof(GPSPositionData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function GPSPositionGet(dataOut)
|
||||
* @brief Populate a GPSPositionData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define GPSPositionGet(dataOut) UAVObjGetData(GPSPositionHandle(), dataOut)
|
||||
#define GPSPositionSet(dataIn) UAVObjSetData(GPSPositionHandle(), dataIn)
|
||||
#define GPSPositionInstGet(instId, dataOut) UAVObjGetInstanceData(GPSPositionHandle(), instId, dataOut)
|
||||
#define GPSPositionInstSet(instId, dataIn) UAVObjSetInstanceData(GPSPositionHandle(), instId, dataIn)
|
||||
#define GPSPositionConnectQueue(queue) UAVObjConnectQueue(GPSPositionHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define GPSPositionConnectCallback(cb) UAVObjConnectCallback(GPSPositionHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define GPSPositionCreateInstance() UAVObjCreateInstance(GPSPositionHandle())
|
||||
#define GPSPositionRequestUpdate() UAVObjRequestUpdate(GPSPositionHandle())
|
||||
#define GPSPositionRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(GPSPositionHandle(), instId)
|
||||
#define GPSPositionUpdated() UAVObjUpdated(GPSPositionHandle())
|
||||
#define GPSPositionInstUpdated(instId) UAVObjUpdated(GPSPositionHandle(), instId)
|
||||
#define GPSPositionGetMetadata(dataOut) UAVObjGetMetadata(GPSPositionHandle(), dataOut)
|
||||
#define GPSPositionSetMetadata(dataIn) UAVObjSetMetadata(GPSPositionHandle(), dataIn)
|
||||
#define GPSPositionReadOnly(dataIn) UAVObjReadOnly(GPSPositionHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Status;
|
||||
int32_t Latitude;
|
||||
int32_t Longitude;
|
||||
float Altitude;
|
||||
float GeoidSeparation;
|
||||
float Heading;
|
||||
float Groundspeed;
|
||||
int8_t Satellites;
|
||||
float PDOP;
|
||||
float HDOP;
|
||||
float VDOP;
|
||||
|
||||
} __attribute__((packed)) GPSPositionData;
|
||||
|
||||
// Field information
|
||||
// Field Status information
|
||||
/* Enumeration options for field Status */
|
||||
typedef enum { GPSPOSITION_STATUS_NOGPS=0, GPSPOSITION_STATUS_NOFIX=1, GPSPOSITION_STATUS_FIX2D=2, GPSPOSITION_STATUS_FIX3D=3 } GPSPositionStatusOptions;
|
||||
// Field Latitude information
|
||||
// Field Longitude information
|
||||
// Field Altitude information
|
||||
// Field GeoidSeparation information
|
||||
// Field Heading information
|
||||
// Field Groundspeed information
|
||||
// Field Satellites information
|
||||
// Field PDOP information
|
||||
// Field HDOP information
|
||||
// Field VDOP information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t GPSPositionInitialize();
|
||||
UAVObjHandle GPSPositionHandle();
|
||||
|
||||
#endif // GPSPOSITION_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,107 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GPSSatellites GPSSatellites
|
||||
* @brief Contains information about the GPS satellites in view from @ref GPSModule.
|
||||
*
|
||||
* Autogenerated files and functions for GPSSatellites Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file gpssatellites.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GPSSatellites object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gpssatellites.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 GPSSATELLITES_H
|
||||
#define GPSSATELLITES_H
|
||||
|
||||
// Object constants
|
||||
#define GPSSATELLITES_OBJID 3593446318U
|
||||
#define GPSSATELLITES_NAME "GPSSatellites"
|
||||
#define GPSSATELLITES_METANAME "GPSSatellitesMeta"
|
||||
#define GPSSATELLITES_ISSINGLEINST 1
|
||||
#define GPSSATELLITES_ISSETTINGS 0
|
||||
#define GPSSATELLITES_NUMBYTES sizeof(GPSSatellitesData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function GPSSatellitesGet(dataOut)
|
||||
* @brief Populate a GPSSatellitesData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define GPSSatellitesGet(dataOut) UAVObjGetData(GPSSatellitesHandle(), dataOut)
|
||||
#define GPSSatellitesSet(dataIn) UAVObjSetData(GPSSatellitesHandle(), dataIn)
|
||||
#define GPSSatellitesInstGet(instId, dataOut) UAVObjGetInstanceData(GPSSatellitesHandle(), instId, dataOut)
|
||||
#define GPSSatellitesInstSet(instId, dataIn) UAVObjSetInstanceData(GPSSatellitesHandle(), instId, dataIn)
|
||||
#define GPSSatellitesConnectQueue(queue) UAVObjConnectQueue(GPSSatellitesHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define GPSSatellitesConnectCallback(cb) UAVObjConnectCallback(GPSSatellitesHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define GPSSatellitesCreateInstance() UAVObjCreateInstance(GPSSatellitesHandle())
|
||||
#define GPSSatellitesRequestUpdate() UAVObjRequestUpdate(GPSSatellitesHandle())
|
||||
#define GPSSatellitesRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(GPSSatellitesHandle(), instId)
|
||||
#define GPSSatellitesUpdated() UAVObjUpdated(GPSSatellitesHandle())
|
||||
#define GPSSatellitesInstUpdated(instId) UAVObjUpdated(GPSSatellitesHandle(), instId)
|
||||
#define GPSSatellitesGetMetadata(dataOut) UAVObjGetMetadata(GPSSatellitesHandle(), dataOut)
|
||||
#define GPSSatellitesSetMetadata(dataIn) UAVObjSetMetadata(GPSSatellitesHandle(), dataIn)
|
||||
#define GPSSatellitesReadOnly(dataIn) UAVObjReadOnly(GPSSatellitesHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int8_t SatsInView;
|
||||
int8_t PRN[16];
|
||||
float Elevation[16];
|
||||
float Azimuth[16];
|
||||
int8_t SNR[16];
|
||||
|
||||
} __attribute__((packed)) GPSSatellitesData;
|
||||
|
||||
// Field information
|
||||
// Field SatsInView information
|
||||
// Field PRN information
|
||||
/* Number of elements for field PRN */
|
||||
#define GPSSATELLITES_PRN_NUMELEM 16
|
||||
// Field Elevation information
|
||||
/* Number of elements for field Elevation */
|
||||
#define GPSSATELLITES_ELEVATION_NUMELEM 16
|
||||
// Field Azimuth information
|
||||
/* Number of elements for field Azimuth */
|
||||
#define GPSSATELLITES_AZIMUTH_NUMELEM 16
|
||||
// Field SNR information
|
||||
/* Number of elements for field SNR */
|
||||
#define GPSSATELLITES_SNR_NUMELEM 16
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t GPSSatellitesInitialize();
|
||||
UAVObjHandle GPSSatellitesHandle();
|
||||
|
||||
#endif // GPSSATELLITES_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,101 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GPSTime GPSTime
|
||||
* @brief Contains the GPS time from @ref GPSModule. Required to compute the world magnetic model correctly when setting the home location.
|
||||
*
|
||||
* Autogenerated files and functions for GPSTime Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file gpstime.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GPSTime object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: gpstime.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 GPSTIME_H
|
||||
#define GPSTIME_H
|
||||
|
||||
// Object constants
|
||||
#define GPSTIME_OBJID 1459613858U
|
||||
#define GPSTIME_NAME "GPSTime"
|
||||
#define GPSTIME_METANAME "GPSTimeMeta"
|
||||
#define GPSTIME_ISSINGLEINST 1
|
||||
#define GPSTIME_ISSETTINGS 0
|
||||
#define GPSTIME_NUMBYTES sizeof(GPSTimeData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function GPSTimeGet(dataOut)
|
||||
* @brief Populate a GPSTimeData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define GPSTimeGet(dataOut) UAVObjGetData(GPSTimeHandle(), dataOut)
|
||||
#define GPSTimeSet(dataIn) UAVObjSetData(GPSTimeHandle(), dataIn)
|
||||
#define GPSTimeInstGet(instId, dataOut) UAVObjGetInstanceData(GPSTimeHandle(), instId, dataOut)
|
||||
#define GPSTimeInstSet(instId, dataIn) UAVObjSetInstanceData(GPSTimeHandle(), instId, dataIn)
|
||||
#define GPSTimeConnectQueue(queue) UAVObjConnectQueue(GPSTimeHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define GPSTimeConnectCallback(cb) UAVObjConnectCallback(GPSTimeHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define GPSTimeCreateInstance() UAVObjCreateInstance(GPSTimeHandle())
|
||||
#define GPSTimeRequestUpdate() UAVObjRequestUpdate(GPSTimeHandle())
|
||||
#define GPSTimeRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(GPSTimeHandle(), instId)
|
||||
#define GPSTimeUpdated() UAVObjUpdated(GPSTimeHandle())
|
||||
#define GPSTimeInstUpdated(instId) UAVObjUpdated(GPSTimeHandle(), instId)
|
||||
#define GPSTimeGetMetadata(dataOut) UAVObjGetMetadata(GPSTimeHandle(), dataOut)
|
||||
#define GPSTimeSetMetadata(dataIn) UAVObjSetMetadata(GPSTimeHandle(), dataIn)
|
||||
#define GPSTimeReadOnly(dataIn) UAVObjReadOnly(GPSTimeHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int8_t Month;
|
||||
int8_t Day;
|
||||
int16_t Year;
|
||||
int8_t Hour;
|
||||
int8_t Minute;
|
||||
int8_t Second;
|
||||
|
||||
} __attribute__((packed)) GPSTimeData;
|
||||
|
||||
// Field information
|
||||
// Field Month information
|
||||
// Field Day information
|
||||
// Field Year information
|
||||
// Field Hour information
|
||||
// Field Minute information
|
||||
// Field Second information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t GPSTimeInitialize();
|
||||
UAVObjHandle GPSTimeHandle();
|
||||
|
||||
#endif // GPSTIME_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,121 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup GuidanceSettings GuidanceSettings
|
||||
* @brief Settings for the @ref GuidanceModule
|
||||
*
|
||||
* Autogenerated files and functions for GuidanceSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file guidancesettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the GuidanceSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: guidancesettings.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 GUIDANCESETTINGS_H
|
||||
#define GUIDANCESETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define GUIDANCESETTINGS_OBJID 2071403670U
|
||||
#define GUIDANCESETTINGS_NAME "GuidanceSettings"
|
||||
#define GUIDANCESETTINGS_METANAME "GuidanceSettingsMeta"
|
||||
#define GUIDANCESETTINGS_ISSINGLEINST 1
|
||||
#define GUIDANCESETTINGS_ISSETTINGS 1
|
||||
#define GUIDANCESETTINGS_NUMBYTES sizeof(GuidanceSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function GuidanceSettingsGet(dataOut)
|
||||
* @brief Populate a GuidanceSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define GuidanceSettingsGet(dataOut) UAVObjGetData(GuidanceSettingsHandle(), dataOut)
|
||||
#define GuidanceSettingsSet(dataIn) UAVObjSetData(GuidanceSettingsHandle(), dataIn)
|
||||
#define GuidanceSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(GuidanceSettingsHandle(), instId, dataOut)
|
||||
#define GuidanceSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(GuidanceSettingsHandle(), instId, dataIn)
|
||||
#define GuidanceSettingsConnectQueue(queue) UAVObjConnectQueue(GuidanceSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define GuidanceSettingsConnectCallback(cb) UAVObjConnectCallback(GuidanceSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define GuidanceSettingsCreateInstance() UAVObjCreateInstance(GuidanceSettingsHandle())
|
||||
#define GuidanceSettingsRequestUpdate() UAVObjRequestUpdate(GuidanceSettingsHandle())
|
||||
#define GuidanceSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(GuidanceSettingsHandle(), instId)
|
||||
#define GuidanceSettingsUpdated() UAVObjUpdated(GuidanceSettingsHandle())
|
||||
#define GuidanceSettingsInstUpdated(instId) UAVObjUpdated(GuidanceSettingsHandle(), instId)
|
||||
#define GuidanceSettingsGetMetadata(dataOut) UAVObjGetMetadata(GuidanceSettingsHandle(), dataOut)
|
||||
#define GuidanceSettingsSetMetadata(dataIn) UAVObjSetMetadata(GuidanceSettingsHandle(), dataIn)
|
||||
#define GuidanceSettingsReadOnly(dataIn) UAVObjReadOnly(GuidanceSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t GuidanceMode;
|
||||
int32_t MaxGroundspeed;
|
||||
float GroundVelocityP;
|
||||
int32_t MaxVerticalSpeed;
|
||||
float VertVelocityP;
|
||||
float VelP;
|
||||
float VelI;
|
||||
float VelD;
|
||||
float DownP;
|
||||
float DownI;
|
||||
float DownD;
|
||||
float MaxVelIntegral;
|
||||
float MaxThrottleIntegral;
|
||||
int32_t VelUpdatePeriod;
|
||||
int32_t VelPIDUpdatePeriod;
|
||||
|
||||
} __attribute__((packed)) GuidanceSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field GuidanceMode information
|
||||
/* Enumeration options for field GuidanceMode */
|
||||
typedef enum { GUIDANCESETTINGS_GUIDANCEMODE_DUAL_LOOP=0, GUIDANCESETTINGS_GUIDANCEMODE_VELOCITY_CONTROL=1, GUIDANCESETTINGS_GUIDANCEMODE_POSITION_PID=2 } GuidanceSettingsGuidanceModeOptions;
|
||||
// Field MaxGroundspeed information
|
||||
// Field GroundVelocityP information
|
||||
// Field MaxVerticalSpeed information
|
||||
// Field VertVelocityP information
|
||||
// Field VelP information
|
||||
// Field VelI information
|
||||
// Field VelD information
|
||||
// Field DownP information
|
||||
// Field DownI information
|
||||
// Field DownD information
|
||||
// Field MaxVelIntegral information
|
||||
// Field MaxThrottleIntegral information
|
||||
// Field VelUpdatePeriod information
|
||||
// Field VelPIDUpdatePeriod information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t GuidanceSettingsInitialize();
|
||||
UAVObjHandle GuidanceSettingsHandle();
|
||||
|
||||
#endif // GUIDANCESETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup HomeLocation HomeLocation
|
||||
* @brief HomeLocation setting which contains the constants to tranlate from longitutde and latitude to NED reference frame. Automatically set by @ref GPSModule after acquiring a 3D lock. Used by @ref AHRSCommsModule.
|
||||
*
|
||||
* Autogenerated files and functions for HomeLocation Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file homelocation.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the HomeLocation object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: homelocation.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 HOMELOCATION_H
|
||||
#define HOMELOCATION_H
|
||||
|
||||
// Object constants
|
||||
#define HOMELOCATION_OBJID 3590360786U
|
||||
#define HOMELOCATION_NAME "HomeLocation"
|
||||
#define HOMELOCATION_METANAME "HomeLocationMeta"
|
||||
#define HOMELOCATION_ISSINGLEINST 1
|
||||
#define HOMELOCATION_ISSETTINGS 1
|
||||
#define HOMELOCATION_NUMBYTES sizeof(HomeLocationData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function HomeLocationGet(dataOut)
|
||||
* @brief Populate a HomeLocationData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define HomeLocationGet(dataOut) UAVObjGetData(HomeLocationHandle(), dataOut)
|
||||
#define HomeLocationSet(dataIn) UAVObjSetData(HomeLocationHandle(), dataIn)
|
||||
#define HomeLocationInstGet(instId, dataOut) UAVObjGetInstanceData(HomeLocationHandle(), instId, dataOut)
|
||||
#define HomeLocationInstSet(instId, dataIn) UAVObjSetInstanceData(HomeLocationHandle(), instId, dataIn)
|
||||
#define HomeLocationConnectQueue(queue) UAVObjConnectQueue(HomeLocationHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define HomeLocationConnectCallback(cb) UAVObjConnectCallback(HomeLocationHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define HomeLocationCreateInstance() UAVObjCreateInstance(HomeLocationHandle())
|
||||
#define HomeLocationRequestUpdate() UAVObjRequestUpdate(HomeLocationHandle())
|
||||
#define HomeLocationRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(HomeLocationHandle(), instId)
|
||||
#define HomeLocationUpdated() UAVObjUpdated(HomeLocationHandle())
|
||||
#define HomeLocationInstUpdated(instId) UAVObjUpdated(HomeLocationHandle(), instId)
|
||||
#define HomeLocationGetMetadata(dataOut) UAVObjGetMetadata(HomeLocationHandle(), dataOut)
|
||||
#define HomeLocationSetMetadata(dataIn) UAVObjSetMetadata(HomeLocationHandle(), dataIn)
|
||||
#define HomeLocationReadOnly(dataIn) UAVObjReadOnly(HomeLocationHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Set;
|
||||
int32_t Latitude;
|
||||
int32_t Longitude;
|
||||
float Altitude;
|
||||
int32_t ECEF[3];
|
||||
float RNE[9];
|
||||
float Be[3];
|
||||
|
||||
} __attribute__((packed)) HomeLocationData;
|
||||
|
||||
// Field information
|
||||
// Field Set information
|
||||
/* Enumeration options for field Set */
|
||||
typedef enum { HOMELOCATION_SET_FALSE=0, HOMELOCATION_SET_TRUE=1 } HomeLocationSetOptions;
|
||||
// Field Latitude information
|
||||
// Field Longitude information
|
||||
// Field Altitude information
|
||||
// Field ECEF information
|
||||
/* Number of elements for field ECEF */
|
||||
#define HOMELOCATION_ECEF_NUMELEM 3
|
||||
// Field RNE information
|
||||
/* Number of elements for field RNE */
|
||||
#define HOMELOCATION_RNE_NUMELEM 9
|
||||
// Field Be information
|
||||
/* Number of elements for field Be */
|
||||
#define HOMELOCATION_BE_NUMELEM 3
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t HomeLocationInitialize();
|
||||
UAVObjHandle HomeLocationHandle();
|
||||
|
||||
#endif // HOMELOCATION_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,119 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup I2CStats I2CStats
|
||||
* @brief Tracks statistics on the I2C bus.
|
||||
*
|
||||
* Autogenerated files and functions for I2CStats Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file i2cstats.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the I2CStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: i2cstats.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 I2CSTATS_H
|
||||
#define I2CSTATS_H
|
||||
|
||||
// Object constants
|
||||
#define I2CSTATS_OBJID 122889918U
|
||||
#define I2CSTATS_NAME "I2CStats"
|
||||
#define I2CSTATS_METANAME "I2CStatsMeta"
|
||||
#define I2CSTATS_ISSINGLEINST 1
|
||||
#define I2CSTATS_ISSETTINGS 0
|
||||
#define I2CSTATS_NUMBYTES sizeof(I2CStatsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function I2CStatsGet(dataOut)
|
||||
* @brief Populate a I2CStatsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define I2CStatsGet(dataOut) UAVObjGetData(I2CStatsHandle(), dataOut)
|
||||
#define I2CStatsSet(dataIn) UAVObjSetData(I2CStatsHandle(), dataIn)
|
||||
#define I2CStatsInstGet(instId, dataOut) UAVObjGetInstanceData(I2CStatsHandle(), instId, dataOut)
|
||||
#define I2CStatsInstSet(instId, dataIn) UAVObjSetInstanceData(I2CStatsHandle(), instId, dataIn)
|
||||
#define I2CStatsConnectQueue(queue) UAVObjConnectQueue(I2CStatsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define I2CStatsConnectCallback(cb) UAVObjConnectCallback(I2CStatsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define I2CStatsCreateInstance() UAVObjCreateInstance(I2CStatsHandle())
|
||||
#define I2CStatsRequestUpdate() UAVObjRequestUpdate(I2CStatsHandle())
|
||||
#define I2CStatsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(I2CStatsHandle(), instId)
|
||||
#define I2CStatsUpdated() UAVObjUpdated(I2CStatsHandle())
|
||||
#define I2CStatsInstUpdated(instId) UAVObjUpdated(I2CStatsHandle(), instId)
|
||||
#define I2CStatsGetMetadata(dataOut) UAVObjGetMetadata(I2CStatsHandle(), dataOut)
|
||||
#define I2CStatsSetMetadata(dataIn) UAVObjSetMetadata(I2CStatsHandle(), dataIn)
|
||||
#define I2CStatsReadOnly(dataIn) UAVObjReadOnly(I2CStatsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint16_t event_errors;
|
||||
uint16_t fsm_errors;
|
||||
uint16_t irq_errors;
|
||||
uint8_t last_error_type;
|
||||
uint32_t evirq_log[5];
|
||||
uint32_t erirq_log[5];
|
||||
uint8_t event_log[5];
|
||||
uint8_t state_log[5];
|
||||
|
||||
} __attribute__((packed)) I2CStatsData;
|
||||
|
||||
// Field information
|
||||
// Field event_errors information
|
||||
// Field fsm_errors information
|
||||
// Field irq_errors information
|
||||
// Field last_error_type information
|
||||
/* Enumeration options for field last_error_type */
|
||||
typedef enum { I2CSTATS_LAST_ERROR_TYPE_EVENT=0, I2CSTATS_LAST_ERROR_TYPE_FSM=1, I2CSTATS_LAST_ERROR_TYPE_INTERRUPT=2 } I2CStatslast_error_typeOptions;
|
||||
// Field evirq_log information
|
||||
/* Number of elements for field evirq_log */
|
||||
#define I2CSTATS_EVIRQ_LOG_NUMELEM 5
|
||||
// Field erirq_log information
|
||||
/* Number of elements for field erirq_log */
|
||||
#define I2CSTATS_ERIRQ_LOG_NUMELEM 5
|
||||
// Field event_log information
|
||||
/* Enumeration options for field event_log */
|
||||
typedef enum { I2CSTATS_EVENT_LOG_I2C_EVENT_BUS_ERROR=0, I2CSTATS_EVENT_LOG_I2C_EVENT_START=1, I2CSTATS_EVENT_LOG_I2C_EVENT_STARTED_MORE_TXN_READ=2, I2CSTATS_EVENT_LOG_I2C_EVENT_STARTED_MORE_TXN_WRITE=3, I2CSTATS_EVENT_LOG_I2C_EVENT_STARTED_LAST_TXN_READ=4, I2CSTATS_EVENT_LOG_I2C_EVENT_STARTED_LAST_TXN_WRITE=5, I2CSTATS_EVENT_LOG_I2C_EVENT_ADDR_SENT_LEN_EQ_0=6, I2CSTATS_EVENT_LOG_I2C_EVENT_ADDR_SENT_LEN_EQ_1=7, I2CSTATS_EVENT_LOG_I2C_EVENT_ADDR_SENT_LEN_EQ_2=8, I2CSTATS_EVENT_LOG_I2C_EVENT_ADDR_SENT_LEN_GT_2=9, I2CSTATS_EVENT_LOG_I2C_EVENT_TRANSFER_DONE_LEN_EQ_0=10, I2CSTATS_EVENT_LOG_I2C_EVENT_TRANSFER_DONE_LEN_EQ_1=11, I2CSTATS_EVENT_LOG_I2C_EVENT_TRANSFER_DONE_LEN_EQ_2=12, I2CSTATS_EVENT_LOG_I2C_EVENT_TRANSFER_DONE_LEN_GT_2=13, I2CSTATS_EVENT_LOG_I2C_EVENT_NACK=14, I2CSTATS_EVENT_LOG_I2C_EVENT_STOPPED=15, I2CSTATS_EVENT_LOG_I2C_EVENT_AUTO=16 } I2CStatsevent_logOptions;
|
||||
/* Number of elements for field event_log */
|
||||
#define I2CSTATS_EVENT_LOG_NUMELEM 5
|
||||
// Field state_log information
|
||||
/* Enumeration options for field state_log */
|
||||
typedef enum { I2CSTATS_STATE_LOG_I2C_STATE_FSM_FAULT=0, I2CSTATS_STATE_LOG_I2C_STATE_BUS_ERROR=1, I2CSTATS_STATE_LOG_I2C_STATE_STOPPED=2, I2CSTATS_STATE_LOG_I2C_STATE_STOPPING=3, I2CSTATS_STATE_LOG_I2C_STATE_STARTING=4, I2CSTATS_STATE_LOG_I2C_STATE_R_MORE_TXN_ADDR=5, I2CSTATS_STATE_LOG_I2C_STATE_R_MORE_TXN_PRE_ONE=6, I2CSTATS_STATE_LOG_I2C_STATE_R_MORE_TXN_PRE_FIRST=7, I2CSTATS_STATE_LOG_I2C_STATE_R_MORE_TXN_PRE_MIDDLE=8, I2CSTATS_STATE_LOG_I2C_STATE_R_MORE_TXN_LAST=9, I2CSTATS_STATE_LOG_I2C_STATE_R_MORE_TXN_POST_LAST=10, I2CSTATS_STATE_LOG_R_LAST_TXN_ADDR=11, I2CSTATS_STATE_LOG_I2C_STATE_R_LAST_TXN_PRE_ONE=12, I2CSTATS_STATE_LOG_I2C_STATE_R_LAST_TXN_PRE_FIRST=13, I2CSTATS_STATE_LOG_I2C_STATE_R_LAST_TXN_PRE_MIDDLE=14, I2CSTATS_STATE_LOG_I2C_STATE_R_LAST_TXN_PRE_LAST=15, I2CSTATS_STATE_LOG_I2C_STATE_R_LAST_TXN_POST_LAST=16, I2CSTATS_STATE_LOG_I2C_STATE_W_MORE_TXN_ADDR=17, I2CSTATS_STATE_LOG_I2C_STATE_W_MORE_TXN_MIDDLE=18, I2CSTATS_STATE_LOG_I2C_STATE_W_MORE_TXN_LAST=19, I2CSTATS_STATE_LOG_I2C_STATE_W_LAST_TXN_ADDR=20, I2CSTATS_STATE_LOG_I2C_STATE_W_LAST_TXN_MIDDLE=21, I2CSTATS_STATE_LOG_I2C_STATE_W_LAST_TXN_LAST=22, I2CSTATS_STATE_LOG_I2C_STATE_NACK=23 } I2CStatsstate_logOptions;
|
||||
/* Number of elements for field state_log */
|
||||
#define I2CSTATS_STATE_LOG_NUMELEM 5
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t I2CStatsInitialize();
|
||||
UAVObjHandle I2CStatsHandle();
|
||||
|
||||
#endif // I2CSTATS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,127 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ManualControlCommand ManualControlCommand
|
||||
* @brief The output from the @ref ManualControlModule which descodes the receiver inputs. Overriden by GCS for fly-by-wire control.
|
||||
*
|
||||
* Autogenerated files and functions for ManualControlCommand Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file manualcontrolcommand.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ManualControlCommand object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: manualcontrolcommand.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 MANUALCONTROLCOMMAND_H
|
||||
#define MANUALCONTROLCOMMAND_H
|
||||
|
||||
// Object constants
|
||||
#define MANUALCONTROLCOMMAND_OBJID 2841592332U
|
||||
#define MANUALCONTROLCOMMAND_NAME "ManualControlCommand"
|
||||
#define MANUALCONTROLCOMMAND_METANAME "ManualControlCommandMeta"
|
||||
#define MANUALCONTROLCOMMAND_ISSINGLEINST 1
|
||||
#define MANUALCONTROLCOMMAND_ISSETTINGS 0
|
||||
#define MANUALCONTROLCOMMAND_NUMBYTES sizeof(ManualControlCommandData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function ManualControlCommandGet(dataOut)
|
||||
* @brief Populate a ManualControlCommandData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define ManualControlCommandGet(dataOut) UAVObjGetData(ManualControlCommandHandle(), dataOut)
|
||||
#define ManualControlCommandSet(dataIn) UAVObjSetData(ManualControlCommandHandle(), dataIn)
|
||||
#define ManualControlCommandInstGet(instId, dataOut) UAVObjGetInstanceData(ManualControlCommandHandle(), instId, dataOut)
|
||||
#define ManualControlCommandInstSet(instId, dataIn) UAVObjSetInstanceData(ManualControlCommandHandle(), instId, dataIn)
|
||||
#define ManualControlCommandConnectQueue(queue) UAVObjConnectQueue(ManualControlCommandHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define ManualControlCommandConnectCallback(cb) UAVObjConnectCallback(ManualControlCommandHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define ManualControlCommandCreateInstance() UAVObjCreateInstance(ManualControlCommandHandle())
|
||||
#define ManualControlCommandRequestUpdate() UAVObjRequestUpdate(ManualControlCommandHandle())
|
||||
#define ManualControlCommandRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ManualControlCommandHandle(), instId)
|
||||
#define ManualControlCommandUpdated() UAVObjUpdated(ManualControlCommandHandle())
|
||||
#define ManualControlCommandInstUpdated(instId) UAVObjUpdated(ManualControlCommandHandle(), instId)
|
||||
#define ManualControlCommandGetMetadata(dataOut) UAVObjGetMetadata(ManualControlCommandHandle(), dataOut)
|
||||
#define ManualControlCommandSetMetadata(dataIn) UAVObjSetMetadata(ManualControlCommandHandle(), dataIn)
|
||||
#define ManualControlCommandReadOnly(dataIn) UAVObjReadOnly(ManualControlCommandHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Connected;
|
||||
uint8_t Armed;
|
||||
float Roll;
|
||||
float Pitch;
|
||||
float Yaw;
|
||||
float Throttle;
|
||||
uint8_t FlightMode;
|
||||
uint8_t StabilizationSettings[3];
|
||||
float Accessory1;
|
||||
float Accessory2;
|
||||
float Accessory3;
|
||||
int16_t Channel[8];
|
||||
|
||||
} __attribute__((packed)) ManualControlCommandData;
|
||||
|
||||
// Field information
|
||||
// Field Connected information
|
||||
/* Enumeration options for field Connected */
|
||||
typedef enum { MANUALCONTROLCOMMAND_CONNECTED_FALSE=0, MANUALCONTROLCOMMAND_CONNECTED_TRUE=1 } ManualControlCommandConnectedOptions;
|
||||
// Field Armed information
|
||||
/* Enumeration options for field Armed */
|
||||
typedef enum { MANUALCONTROLCOMMAND_ARMED_FALSE=0, MANUALCONTROLCOMMAND_ARMED_TRUE=1 } ManualControlCommandArmedOptions;
|
||||
// Field Roll information
|
||||
// Field Pitch information
|
||||
// Field Yaw information
|
||||
// Field Throttle information
|
||||
// Field FlightMode information
|
||||
/* Enumeration options for field FlightMode */
|
||||
typedef enum { MANUALCONTROLCOMMAND_FLIGHTMODE_MANUAL=0, MANUALCONTROLCOMMAND_FLIGHTMODE_STABILIZED=1, MANUALCONTROLCOMMAND_FLIGHTMODE_AUTO=2 } ManualControlCommandFlightModeOptions;
|
||||
// Field StabilizationSettings information
|
||||
/* Enumeration options for field StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_NONE=0, MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_RATE=1, MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_ATTITUDE=2 } ManualControlCommandStabilizationSettingsOptions;
|
||||
/* Array element names for field StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_ROLL=0, MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_PITCH=1, MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_YAW=2 } ManualControlCommandStabilizationSettingsElem;
|
||||
/* Number of elements for field StabilizationSettings */
|
||||
#define MANUALCONTROLCOMMAND_STABILIZATIONSETTINGS_NUMELEM 3
|
||||
// Field Accessory1 information
|
||||
// Field Accessory2 information
|
||||
// Field Accessory3 information
|
||||
// Field Channel information
|
||||
/* Number of elements for field Channel */
|
||||
#define MANUALCONTROLCOMMAND_CHANNEL_NUMELEM 8
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t ManualControlCommandInitialize();
|
||||
UAVObjHandle ManualControlCommandHandle();
|
||||
|
||||
#endif // MANUALCONTROLCOMMAND_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,175 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ManualControlSettings ManualControlSettings
|
||||
* @brief Settings to indicate how to decode receiver input by @ref ManualControlModule.
|
||||
*
|
||||
* Autogenerated files and functions for ManualControlSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file manualcontrolsettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ManualControlSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: manualcontrolsettings.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 MANUALCONTROLSETTINGS_H
|
||||
#define MANUALCONTROLSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define MANUALCONTROLSETTINGS_OBJID 157988682U
|
||||
#define MANUALCONTROLSETTINGS_NAME "ManualControlSettings"
|
||||
#define MANUALCONTROLSETTINGS_METANAME "ManualControlSettingsMeta"
|
||||
#define MANUALCONTROLSETTINGS_ISSINGLEINST 1
|
||||
#define MANUALCONTROLSETTINGS_ISSETTINGS 1
|
||||
#define MANUALCONTROLSETTINGS_NUMBYTES sizeof(ManualControlSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function ManualControlSettingsGet(dataOut)
|
||||
* @brief Populate a ManualControlSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define ManualControlSettingsGet(dataOut) UAVObjGetData(ManualControlSettingsHandle(), dataOut)
|
||||
#define ManualControlSettingsSet(dataIn) UAVObjSetData(ManualControlSettingsHandle(), dataIn)
|
||||
#define ManualControlSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(ManualControlSettingsHandle(), instId, dataOut)
|
||||
#define ManualControlSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(ManualControlSettingsHandle(), instId, dataIn)
|
||||
#define ManualControlSettingsConnectQueue(queue) UAVObjConnectQueue(ManualControlSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define ManualControlSettingsConnectCallback(cb) UAVObjConnectCallback(ManualControlSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define ManualControlSettingsCreateInstance() UAVObjCreateInstance(ManualControlSettingsHandle())
|
||||
#define ManualControlSettingsRequestUpdate() UAVObjRequestUpdate(ManualControlSettingsHandle())
|
||||
#define ManualControlSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ManualControlSettingsHandle(), instId)
|
||||
#define ManualControlSettingsUpdated() UAVObjUpdated(ManualControlSettingsHandle())
|
||||
#define ManualControlSettingsInstUpdated(instId) UAVObjUpdated(ManualControlSettingsHandle(), instId)
|
||||
#define ManualControlSettingsGetMetadata(dataOut) UAVObjGetMetadata(ManualControlSettingsHandle(), dataOut)
|
||||
#define ManualControlSettingsSetMetadata(dataIn) UAVObjSetMetadata(ManualControlSettingsHandle(), dataIn)
|
||||
#define ManualControlSettingsReadOnly(dataIn) UAVObjReadOnly(ManualControlSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t InputMode;
|
||||
uint8_t Roll;
|
||||
uint8_t Pitch;
|
||||
uint8_t Yaw;
|
||||
uint8_t Throttle;
|
||||
uint8_t FlightMode;
|
||||
uint8_t Accessory1;
|
||||
uint8_t Accessory2;
|
||||
uint8_t Accessory3;
|
||||
uint8_t Pos1StabilizationSettings[3];
|
||||
uint8_t Pos2StabilizationSettings[3];
|
||||
uint8_t Pos3StabilizationSettings[3];
|
||||
uint8_t Pos1FlightMode;
|
||||
uint8_t Pos2FlightMode;
|
||||
uint8_t Pos3FlightMode;
|
||||
int16_t ChannelMax[8];
|
||||
int16_t ChannelNeutral[8];
|
||||
int16_t ChannelMin[8];
|
||||
uint16_t ArmedTimeout;
|
||||
|
||||
} __attribute__((packed)) ManualControlSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field InputMode information
|
||||
/* Enumeration options for field InputMode */
|
||||
typedef enum { MANUALCONTROLSETTINGS_INPUTMODE_PWM=0, MANUALCONTROLSETTINGS_INPUTMODE_PPM=1, MANUALCONTROLSETTINGS_INPUTMODE_SPEKTRUM=2 } ManualControlSettingsInputModeOptions;
|
||||
// Field Roll information
|
||||
/* Enumeration options for field Roll */
|
||||
typedef enum { MANUALCONTROLSETTINGS_ROLL_CHANNEL1=0, MANUALCONTROLSETTINGS_ROLL_CHANNEL2=1, MANUALCONTROLSETTINGS_ROLL_CHANNEL3=2, MANUALCONTROLSETTINGS_ROLL_CHANNEL4=3, MANUALCONTROLSETTINGS_ROLL_CHANNEL5=4, MANUALCONTROLSETTINGS_ROLL_CHANNEL6=5, MANUALCONTROLSETTINGS_ROLL_CHANNEL7=6, MANUALCONTROLSETTINGS_ROLL_CHANNEL8=7, MANUALCONTROLSETTINGS_ROLL_NONE=8 } ManualControlSettingsRollOptions;
|
||||
// Field Pitch information
|
||||
/* Enumeration options for field Pitch */
|
||||
typedef enum { MANUALCONTROLSETTINGS_PITCH_CHANNEL1=0, MANUALCONTROLSETTINGS_PITCH_CHANNEL2=1, MANUALCONTROLSETTINGS_PITCH_CHANNEL3=2, MANUALCONTROLSETTINGS_PITCH_CHANNEL4=3, MANUALCONTROLSETTINGS_PITCH_CHANNEL5=4, MANUALCONTROLSETTINGS_PITCH_CHANNEL6=5, MANUALCONTROLSETTINGS_PITCH_CHANNEL7=6, MANUALCONTROLSETTINGS_PITCH_CHANNEL8=7, MANUALCONTROLSETTINGS_PITCH_NONE=8 } ManualControlSettingsPitchOptions;
|
||||
// Field Yaw information
|
||||
/* Enumeration options for field Yaw */
|
||||
typedef enum { MANUALCONTROLSETTINGS_YAW_CHANNEL1=0, MANUALCONTROLSETTINGS_YAW_CHANNEL2=1, MANUALCONTROLSETTINGS_YAW_CHANNEL3=2, MANUALCONTROLSETTINGS_YAW_CHANNEL4=3, MANUALCONTROLSETTINGS_YAW_CHANNEL5=4, MANUALCONTROLSETTINGS_YAW_CHANNEL6=5, MANUALCONTROLSETTINGS_YAW_CHANNEL7=6, MANUALCONTROLSETTINGS_YAW_CHANNEL8=7, MANUALCONTROLSETTINGS_YAW_NONE=8 } ManualControlSettingsYawOptions;
|
||||
// Field Throttle information
|
||||
/* Enumeration options for field Throttle */
|
||||
typedef enum { MANUALCONTROLSETTINGS_THROTTLE_CHANNEL1=0, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL2=1, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL3=2, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL4=3, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL5=4, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL6=5, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL7=6, MANUALCONTROLSETTINGS_THROTTLE_CHANNEL8=7, MANUALCONTROLSETTINGS_THROTTLE_NONE=8 } ManualControlSettingsThrottleOptions;
|
||||
// Field FlightMode information
|
||||
/* Enumeration options for field FlightMode */
|
||||
typedef enum { MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL1=0, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL2=1, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL3=2, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL4=3, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL5=4, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL6=5, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL7=6, MANUALCONTROLSETTINGS_FLIGHTMODE_CHANNEL8=7, MANUALCONTROLSETTINGS_FLIGHTMODE_NONE=8 } ManualControlSettingsFlightModeOptions;
|
||||
// Field Accessory1 information
|
||||
/* Enumeration options for field Accessory1 */
|
||||
typedef enum { MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL1=0, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL2=1, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL3=2, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL4=3, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL5=4, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL6=5, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL7=6, MANUALCONTROLSETTINGS_ACCESSORY1_CHANNEL8=7, MANUALCONTROLSETTINGS_ACCESSORY1_NONE=8 } ManualControlSettingsAccessory1Options;
|
||||
// Field Accessory2 information
|
||||
/* Enumeration options for field Accessory2 */
|
||||
typedef enum { MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL1=0, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL2=1, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL3=2, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL4=3, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL5=4, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL6=5, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL7=6, MANUALCONTROLSETTINGS_ACCESSORY2_CHANNEL8=7, MANUALCONTROLSETTINGS_ACCESSORY2_NONE=8 } ManualControlSettingsAccessory2Options;
|
||||
// Field Accessory3 information
|
||||
/* Enumeration options for field Accessory3 */
|
||||
typedef enum { MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL1=0, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL2=1, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL3=2, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL4=3, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL5=4, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL6=5, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL7=6, MANUALCONTROLSETTINGS_ACCESSORY3_CHANNEL8=7, MANUALCONTROLSETTINGS_ACCESSORY3_NONE=8 } ManualControlSettingsAccessory3Options;
|
||||
// Field Pos1StabilizationSettings information
|
||||
/* Enumeration options for field Pos1StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_NONE=0, MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_RATE=1, MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_ATTITUDE=2 } ManualControlSettingsPos1StabilizationSettingsOptions;
|
||||
/* Array element names for field Pos1StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_ROLL=0, MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_PITCH=1, MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_YAW=2 } ManualControlSettingsPos1StabilizationSettingsElem;
|
||||
/* Number of elements for field Pos1StabilizationSettings */
|
||||
#define MANUALCONTROLSETTINGS_POS1STABILIZATIONSETTINGS_NUMELEM 3
|
||||
// Field Pos2StabilizationSettings information
|
||||
/* Enumeration options for field Pos2StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_NONE=0, MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_RATE=1, MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_ATTITUDE=2 } ManualControlSettingsPos2StabilizationSettingsOptions;
|
||||
/* Array element names for field Pos2StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_ROLL=0, MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_PITCH=1, MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_YAW=2 } ManualControlSettingsPos2StabilizationSettingsElem;
|
||||
/* Number of elements for field Pos2StabilizationSettings */
|
||||
#define MANUALCONTROLSETTINGS_POS2STABILIZATIONSETTINGS_NUMELEM 3
|
||||
// Field Pos3StabilizationSettings information
|
||||
/* Enumeration options for field Pos3StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_NONE=0, MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_RATE=1, MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_ATTITUDE=2 } ManualControlSettingsPos3StabilizationSettingsOptions;
|
||||
/* Array element names for field Pos3StabilizationSettings */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_ROLL=0, MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_PITCH=1, MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_YAW=2 } ManualControlSettingsPos3StabilizationSettingsElem;
|
||||
/* Number of elements for field Pos3StabilizationSettings */
|
||||
#define MANUALCONTROLSETTINGS_POS3STABILIZATIONSETTINGS_NUMELEM 3
|
||||
// Field Pos1FlightMode information
|
||||
/* Enumeration options for field Pos1FlightMode */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS1FLIGHTMODE_MANUAL=0, MANUALCONTROLSETTINGS_POS1FLIGHTMODE_STABILIZED=1, MANUALCONTROLSETTINGS_POS1FLIGHTMODE_AUTO=2 } ManualControlSettingsPos1FlightModeOptions;
|
||||
// Field Pos2FlightMode information
|
||||
/* Enumeration options for field Pos2FlightMode */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS2FLIGHTMODE_MANUAL=0, MANUALCONTROLSETTINGS_POS2FLIGHTMODE_STABILIZED=1, MANUALCONTROLSETTINGS_POS2FLIGHTMODE_AUTO=2 } ManualControlSettingsPos2FlightModeOptions;
|
||||
// Field Pos3FlightMode information
|
||||
/* Enumeration options for field Pos3FlightMode */
|
||||
typedef enum { MANUALCONTROLSETTINGS_POS3FLIGHTMODE_MANUAL=0, MANUALCONTROLSETTINGS_POS3FLIGHTMODE_STABILIZED=1, MANUALCONTROLSETTINGS_POS3FLIGHTMODE_AUTO=2 } ManualControlSettingsPos3FlightModeOptions;
|
||||
// Field ChannelMax information
|
||||
/* Number of elements for field ChannelMax */
|
||||
#define MANUALCONTROLSETTINGS_CHANNELMAX_NUMELEM 8
|
||||
// Field ChannelNeutral information
|
||||
/* Number of elements for field ChannelNeutral */
|
||||
#define MANUALCONTROLSETTINGS_CHANNELNEUTRAL_NUMELEM 8
|
||||
// Field ChannelMin information
|
||||
/* Number of elements for field ChannelMin */
|
||||
#define MANUALCONTROLSETTINGS_CHANNELMIN_NUMELEM 8
|
||||
// Field ArmedTimeout information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t ManualControlSettingsInitialize();
|
||||
UAVObjHandle ManualControlSettingsHandle();
|
||||
|
||||
#endif // MANUALCONTROLSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,189 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup MixerSettings MixerSettings
|
||||
* @brief Settings for the @ref ActuatorModule that controls the channel assignments for the mixer based on AircraftType
|
||||
*
|
||||
* Autogenerated files and functions for MixerSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file mixersettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the MixerSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: mixersettings.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 MIXERSETTINGS_H
|
||||
#define MIXERSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define MIXERSETTINGS_OBJID 1336817486U
|
||||
#define MIXERSETTINGS_NAME "MixerSettings"
|
||||
#define MIXERSETTINGS_METANAME "MixerSettingsMeta"
|
||||
#define MIXERSETTINGS_ISSINGLEINST 1
|
||||
#define MIXERSETTINGS_ISSETTINGS 1
|
||||
#define MIXERSETTINGS_NUMBYTES sizeof(MixerSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function MixerSettingsGet(dataOut)
|
||||
* @brief Populate a MixerSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define MixerSettingsGet(dataOut) UAVObjGetData(MixerSettingsHandle(), dataOut)
|
||||
#define MixerSettingsSet(dataIn) UAVObjSetData(MixerSettingsHandle(), dataIn)
|
||||
#define MixerSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(MixerSettingsHandle(), instId, dataOut)
|
||||
#define MixerSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(MixerSettingsHandle(), instId, dataIn)
|
||||
#define MixerSettingsConnectQueue(queue) UAVObjConnectQueue(MixerSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define MixerSettingsConnectCallback(cb) UAVObjConnectCallback(MixerSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define MixerSettingsCreateInstance() UAVObjCreateInstance(MixerSettingsHandle())
|
||||
#define MixerSettingsRequestUpdate() UAVObjRequestUpdate(MixerSettingsHandle())
|
||||
#define MixerSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(MixerSettingsHandle(), instId)
|
||||
#define MixerSettingsUpdated() UAVObjUpdated(MixerSettingsHandle())
|
||||
#define MixerSettingsInstUpdated(instId) UAVObjUpdated(MixerSettingsHandle(), instId)
|
||||
#define MixerSettingsGetMetadata(dataOut) UAVObjGetMetadata(MixerSettingsHandle(), dataOut)
|
||||
#define MixerSettingsSetMetadata(dataIn) UAVObjSetMetadata(MixerSettingsHandle(), dataIn)
|
||||
#define MixerSettingsReadOnly(dataIn) UAVObjReadOnly(MixerSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float MaxAccel;
|
||||
float FeedForward;
|
||||
float AccelTime;
|
||||
float DecelTime;
|
||||
float ThrottleCurve1[5];
|
||||
float ThrottleCurve2[5];
|
||||
uint8_t Mixer1Type;
|
||||
int8_t Mixer1Vector[5];
|
||||
uint8_t Mixer2Type;
|
||||
int8_t Mixer2Vector[5];
|
||||
uint8_t Mixer3Type;
|
||||
int8_t Mixer3Vector[5];
|
||||
uint8_t Mixer4Type;
|
||||
int8_t Mixer4Vector[5];
|
||||
uint8_t Mixer5Type;
|
||||
int8_t Mixer5Vector[5];
|
||||
uint8_t Mixer6Type;
|
||||
int8_t Mixer6Vector[5];
|
||||
uint8_t Mixer7Type;
|
||||
int8_t Mixer7Vector[5];
|
||||
uint8_t Mixer8Type;
|
||||
int8_t Mixer8Vector[5];
|
||||
|
||||
} __attribute__((packed)) MixerSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field MaxAccel information
|
||||
// Field FeedForward information
|
||||
// Field AccelTime information
|
||||
// Field DecelTime information
|
||||
// Field ThrottleCurve1 information
|
||||
/* Array element names for field ThrottleCurve1 */
|
||||
typedef enum { MIXERSETTINGS_THROTTLECURVE1_0=0, MIXERSETTINGS_THROTTLECURVE1_25=1, MIXERSETTINGS_THROTTLECURVE1_50=2, MIXERSETTINGS_THROTTLECURVE1_75=3, MIXERSETTINGS_THROTTLECURVE1_100=4 } MixerSettingsThrottleCurve1Elem;
|
||||
/* Number of elements for field ThrottleCurve1 */
|
||||
#define MIXERSETTINGS_THROTTLECURVE1_NUMELEM 5
|
||||
// Field ThrottleCurve2 information
|
||||
/* Array element names for field ThrottleCurve2 */
|
||||
typedef enum { MIXERSETTINGS_THROTTLECURVE2_0=0, MIXERSETTINGS_THROTTLECURVE2_25=1, MIXERSETTINGS_THROTTLECURVE2_50=2, MIXERSETTINGS_THROTTLECURVE2_75=3, MIXERSETTINGS_THROTTLECURVE2_100=4 } MixerSettingsThrottleCurve2Elem;
|
||||
/* Number of elements for field ThrottleCurve2 */
|
||||
#define MIXERSETTINGS_THROTTLECURVE2_NUMELEM 5
|
||||
// Field Mixer1Type information
|
||||
/* Enumeration options for field Mixer1Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER1TYPE_DISABLED=0, MIXERSETTINGS_MIXER1TYPE_MOTOR=1, MIXERSETTINGS_MIXER1TYPE_SERVO=2 } MixerSettingsMixer1TypeOptions;
|
||||
// Field Mixer1Vector information
|
||||
/* Array element names for field Mixer1Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER1VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER1VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER1VECTOR_ROLL=2, MIXERSETTINGS_MIXER1VECTOR_PITCH=3, MIXERSETTINGS_MIXER1VECTOR_YAW=4 } MixerSettingsMixer1VectorElem;
|
||||
/* Number of elements for field Mixer1Vector */
|
||||
#define MIXERSETTINGS_MIXER1VECTOR_NUMELEM 5
|
||||
// Field Mixer2Type information
|
||||
/* Enumeration options for field Mixer2Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER2TYPE_DISABLED=0, MIXERSETTINGS_MIXER2TYPE_MOTOR=1, MIXERSETTINGS_MIXER2TYPE_SERVO=2 } MixerSettingsMixer2TypeOptions;
|
||||
// Field Mixer2Vector information
|
||||
/* Array element names for field Mixer2Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER2VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER2VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER2VECTOR_ROLL=2, MIXERSETTINGS_MIXER2VECTOR_PITCH=3, MIXERSETTINGS_MIXER2VECTOR_YAW=4 } MixerSettingsMixer2VectorElem;
|
||||
/* Number of elements for field Mixer2Vector */
|
||||
#define MIXERSETTINGS_MIXER2VECTOR_NUMELEM 5
|
||||
// Field Mixer3Type information
|
||||
/* Enumeration options for field Mixer3Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER3TYPE_DISABLED=0, MIXERSETTINGS_MIXER3TYPE_MOTOR=1, MIXERSETTINGS_MIXER3TYPE_SERVO=2 } MixerSettingsMixer3TypeOptions;
|
||||
// Field Mixer3Vector information
|
||||
/* Array element names for field Mixer3Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER3VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER3VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER3VECTOR_ROLL=2, MIXERSETTINGS_MIXER3VECTOR_PITCH=3, MIXERSETTINGS_MIXER3VECTOR_YAW=4 } MixerSettingsMixer3VectorElem;
|
||||
/* Number of elements for field Mixer3Vector */
|
||||
#define MIXERSETTINGS_MIXER3VECTOR_NUMELEM 5
|
||||
// Field Mixer4Type information
|
||||
/* Enumeration options for field Mixer4Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER4TYPE_DISABLED=0, MIXERSETTINGS_MIXER4TYPE_MOTOR=1, MIXERSETTINGS_MIXER4TYPE_SERVO=2 } MixerSettingsMixer4TypeOptions;
|
||||
// Field Mixer4Vector information
|
||||
/* Array element names for field Mixer4Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER4VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER4VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER4VECTOR_ROLL=2, MIXERSETTINGS_MIXER4VECTOR_PITCH=3, MIXERSETTINGS_MIXER4VECTOR_YAW=4 } MixerSettingsMixer4VectorElem;
|
||||
/* Number of elements for field Mixer4Vector */
|
||||
#define MIXERSETTINGS_MIXER4VECTOR_NUMELEM 5
|
||||
// Field Mixer5Type information
|
||||
/* Enumeration options for field Mixer5Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER5TYPE_DISABLED=0, MIXERSETTINGS_MIXER5TYPE_MOTOR=1, MIXERSETTINGS_MIXER5TYPE_SERVO=2 } MixerSettingsMixer5TypeOptions;
|
||||
// Field Mixer5Vector information
|
||||
/* Array element names for field Mixer5Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER5VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER5VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER5VECTOR_ROLL=2, MIXERSETTINGS_MIXER5VECTOR_PITCH=3, MIXERSETTINGS_MIXER5VECTOR_YAW=4 } MixerSettingsMixer5VectorElem;
|
||||
/* Number of elements for field Mixer5Vector */
|
||||
#define MIXERSETTINGS_MIXER5VECTOR_NUMELEM 5
|
||||
// Field Mixer6Type information
|
||||
/* Enumeration options for field Mixer6Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER6TYPE_DISABLED=0, MIXERSETTINGS_MIXER6TYPE_MOTOR=1, MIXERSETTINGS_MIXER6TYPE_SERVO=2 } MixerSettingsMixer6TypeOptions;
|
||||
// Field Mixer6Vector information
|
||||
/* Array element names for field Mixer6Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER6VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER6VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER6VECTOR_ROLL=2, MIXERSETTINGS_MIXER6VECTOR_PITCH=3, MIXERSETTINGS_MIXER6VECTOR_YAW=4 } MixerSettingsMixer6VectorElem;
|
||||
/* Number of elements for field Mixer6Vector */
|
||||
#define MIXERSETTINGS_MIXER6VECTOR_NUMELEM 5
|
||||
// Field Mixer7Type information
|
||||
/* Enumeration options for field Mixer7Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER7TYPE_DISABLED=0, MIXERSETTINGS_MIXER7TYPE_MOTOR=1, MIXERSETTINGS_MIXER7TYPE_SERVO=2 } MixerSettingsMixer7TypeOptions;
|
||||
// Field Mixer7Vector information
|
||||
/* Array element names for field Mixer7Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER7VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER7VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER7VECTOR_ROLL=2, MIXERSETTINGS_MIXER7VECTOR_PITCH=3, MIXERSETTINGS_MIXER7VECTOR_YAW=4 } MixerSettingsMixer7VectorElem;
|
||||
/* Number of elements for field Mixer7Vector */
|
||||
#define MIXERSETTINGS_MIXER7VECTOR_NUMELEM 5
|
||||
// Field Mixer8Type information
|
||||
/* Enumeration options for field Mixer8Type */
|
||||
typedef enum { MIXERSETTINGS_MIXER8TYPE_DISABLED=0, MIXERSETTINGS_MIXER8TYPE_MOTOR=1, MIXERSETTINGS_MIXER8TYPE_SERVO=2 } MixerSettingsMixer8TypeOptions;
|
||||
// Field Mixer8Vector information
|
||||
/* Array element names for field Mixer8Vector */
|
||||
typedef enum { MIXERSETTINGS_MIXER8VECTOR_THROTTLECURVE1=0, MIXERSETTINGS_MIXER8VECTOR_THROTTLECURVE2=1, MIXERSETTINGS_MIXER8VECTOR_ROLL=2, MIXERSETTINGS_MIXER8VECTOR_PITCH=3, MIXERSETTINGS_MIXER8VECTOR_YAW=4 } MixerSettingsMixer8VectorElem;
|
||||
/* Number of elements for field Mixer8Vector */
|
||||
#define MIXERSETTINGS_MIXER8VECTOR_NUMELEM 5
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t MixerSettingsInitialize();
|
||||
UAVObjHandle MixerSettingsHandle();
|
||||
|
||||
#endif // MIXERSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,105 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup MixerStatus MixerStatus
|
||||
* @brief Status for the matrix mixer showing the output of each mixer after all scaling
|
||||
*
|
||||
* Autogenerated files and functions for MixerStatus Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file mixerstatus.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the MixerStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: mixerstatus.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 MIXERSTATUS_H
|
||||
#define MIXERSTATUS_H
|
||||
|
||||
// Object constants
|
||||
#define MIXERSTATUS_OBJID 4137893648U
|
||||
#define MIXERSTATUS_NAME "MixerStatus"
|
||||
#define MIXERSTATUS_METANAME "MixerStatusMeta"
|
||||
#define MIXERSTATUS_ISSINGLEINST 1
|
||||
#define MIXERSTATUS_ISSETTINGS 0
|
||||
#define MIXERSTATUS_NUMBYTES sizeof(MixerStatusData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function MixerStatusGet(dataOut)
|
||||
* @brief Populate a MixerStatusData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define MixerStatusGet(dataOut) UAVObjGetData(MixerStatusHandle(), dataOut)
|
||||
#define MixerStatusSet(dataIn) UAVObjSetData(MixerStatusHandle(), dataIn)
|
||||
#define MixerStatusInstGet(instId, dataOut) UAVObjGetInstanceData(MixerStatusHandle(), instId, dataOut)
|
||||
#define MixerStatusInstSet(instId, dataIn) UAVObjSetInstanceData(MixerStatusHandle(), instId, dataIn)
|
||||
#define MixerStatusConnectQueue(queue) UAVObjConnectQueue(MixerStatusHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define MixerStatusConnectCallback(cb) UAVObjConnectCallback(MixerStatusHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define MixerStatusCreateInstance() UAVObjCreateInstance(MixerStatusHandle())
|
||||
#define MixerStatusRequestUpdate() UAVObjRequestUpdate(MixerStatusHandle())
|
||||
#define MixerStatusRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(MixerStatusHandle(), instId)
|
||||
#define MixerStatusUpdated() UAVObjUpdated(MixerStatusHandle())
|
||||
#define MixerStatusInstUpdated(instId) UAVObjUpdated(MixerStatusHandle(), instId)
|
||||
#define MixerStatusGetMetadata(dataOut) UAVObjGetMetadata(MixerStatusHandle(), dataOut)
|
||||
#define MixerStatusSetMetadata(dataIn) UAVObjSetMetadata(MixerStatusHandle(), dataIn)
|
||||
#define MixerStatusReadOnly(dataIn) UAVObjReadOnly(MixerStatusHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Mixer1;
|
||||
float Mixer2;
|
||||
float Mixer3;
|
||||
float Mixer4;
|
||||
float Mixer5;
|
||||
float Mixer6;
|
||||
float Mixer7;
|
||||
float Mixer8;
|
||||
|
||||
} __attribute__((packed)) MixerStatusData;
|
||||
|
||||
// Field information
|
||||
// Field Mixer1 information
|
||||
// Field Mixer2 information
|
||||
// Field Mixer3 information
|
||||
// Field Mixer4 information
|
||||
// Field Mixer5 information
|
||||
// Field Mixer6 information
|
||||
// Field Mixer7 information
|
||||
// Field Mixer8 information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t MixerStatusInitialize();
|
||||
UAVObjHandle MixerStatusHandle();
|
||||
|
||||
#endif // MIXERSTATUS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,101 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ObjectPersistence ObjectPersistence
|
||||
* @brief Someone who knows please enter this
|
||||
*
|
||||
* Autogenerated files and functions for ObjectPersistence Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file objectpersistence.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ObjectPersistence object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: objectpersistence.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 OBJECTPERSISTENCE_H
|
||||
#define OBJECTPERSISTENCE_H
|
||||
|
||||
// Object constants
|
||||
#define OBJECTPERSISTENCE_OBJID 572614706U
|
||||
#define OBJECTPERSISTENCE_NAME "ObjectPersistence"
|
||||
#define OBJECTPERSISTENCE_METANAME "ObjectPersistenceMeta"
|
||||
#define OBJECTPERSISTENCE_ISSINGLEINST 1
|
||||
#define OBJECTPERSISTENCE_ISSETTINGS 0
|
||||
#define OBJECTPERSISTENCE_NUMBYTES sizeof(ObjectPersistenceData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function ObjectPersistenceGet(dataOut)
|
||||
* @brief Populate a ObjectPersistenceData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define ObjectPersistenceGet(dataOut) UAVObjGetData(ObjectPersistenceHandle(), dataOut)
|
||||
#define ObjectPersistenceSet(dataIn) UAVObjSetData(ObjectPersistenceHandle(), dataIn)
|
||||
#define ObjectPersistenceInstGet(instId, dataOut) UAVObjGetInstanceData(ObjectPersistenceHandle(), instId, dataOut)
|
||||
#define ObjectPersistenceInstSet(instId, dataIn) UAVObjSetInstanceData(ObjectPersistenceHandle(), instId, dataIn)
|
||||
#define ObjectPersistenceConnectQueue(queue) UAVObjConnectQueue(ObjectPersistenceHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define ObjectPersistenceConnectCallback(cb) UAVObjConnectCallback(ObjectPersistenceHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define ObjectPersistenceCreateInstance() UAVObjCreateInstance(ObjectPersistenceHandle())
|
||||
#define ObjectPersistenceRequestUpdate() UAVObjRequestUpdate(ObjectPersistenceHandle())
|
||||
#define ObjectPersistenceRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(ObjectPersistenceHandle(), instId)
|
||||
#define ObjectPersistenceUpdated() UAVObjUpdated(ObjectPersistenceHandle())
|
||||
#define ObjectPersistenceInstUpdated(instId) UAVObjUpdated(ObjectPersistenceHandle(), instId)
|
||||
#define ObjectPersistenceGetMetadata(dataOut) UAVObjGetMetadata(ObjectPersistenceHandle(), dataOut)
|
||||
#define ObjectPersistenceSetMetadata(dataIn) UAVObjSetMetadata(ObjectPersistenceHandle(), dataIn)
|
||||
#define ObjectPersistenceReadOnly(dataIn) UAVObjReadOnly(ObjectPersistenceHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Operation;
|
||||
uint8_t Selection;
|
||||
uint32_t ObjectID;
|
||||
uint32_t InstanceID;
|
||||
|
||||
} __attribute__((packed)) ObjectPersistenceData;
|
||||
|
||||
// Field information
|
||||
// Field Operation information
|
||||
/* Enumeration options for field Operation */
|
||||
typedef enum { OBJECTPERSISTENCE_OPERATION_LOAD=0, OBJECTPERSISTENCE_OPERATION_SAVE=1, OBJECTPERSISTENCE_OPERATION_DELETE=2 } ObjectPersistenceOperationOptions;
|
||||
// Field Selection information
|
||||
/* Enumeration options for field Selection */
|
||||
typedef enum { OBJECTPERSISTENCE_SELECTION_SINGLEOBJECT=0, OBJECTPERSISTENCE_SELECTION_ALLSETTINGS=1, OBJECTPERSISTENCE_SELECTION_ALLMETAOBJECTS=2, OBJECTPERSISTENCE_SELECTION_ALLOBJECTS=3 } ObjectPersistenceSelectionOptions;
|
||||
// Field ObjectID information
|
||||
// Field InstanceID information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t ObjectPersistenceInitialize();
|
||||
UAVObjHandle ObjectPersistenceHandle();
|
||||
|
||||
#endif // OBJECTPERSISTENCE_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,125 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PipXtremeModemSettings PipXtremeModemSettings
|
||||
* @brief Settings for the @ref PipXtremeModemSettings
|
||||
*
|
||||
* Autogenerated files and functions for PipXtremeModemSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file pipxtrememodemsettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PipXtremeModemSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: pipxtrememodemsettings.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 PIPXTREMEMODEMSETTINGS_H
|
||||
#define PIPXTREMEMODEMSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define PIPXTREMEMODEMSETTINGS_OBJID 444830632U
|
||||
#define PIPXTREMEMODEMSETTINGS_NAME "PipXtremeModemSettings"
|
||||
#define PIPXTREMEMODEMSETTINGS_METANAME "PipXtremeModemSettingsMeta"
|
||||
#define PIPXTREMEMODEMSETTINGS_ISSINGLEINST 1
|
||||
#define PIPXTREMEMODEMSETTINGS_ISSETTINGS 1
|
||||
#define PIPXTREMEMODEMSETTINGS_NUMBYTES sizeof(PipXtremeModemSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function PipXtremeModemSettingsGet(dataOut)
|
||||
* @brief Populate a PipXtremeModemSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define PipXtremeModemSettingsGet(dataOut) UAVObjGetData(PipXtremeModemSettingsHandle(), dataOut)
|
||||
#define PipXtremeModemSettingsSet(dataIn) UAVObjSetData(PipXtremeModemSettingsHandle(), dataIn)
|
||||
#define PipXtremeModemSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(PipXtremeModemSettingsHandle(), instId, dataOut)
|
||||
#define PipXtremeModemSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(PipXtremeModemSettingsHandle(), instId, dataIn)
|
||||
#define PipXtremeModemSettingsConnectQueue(queue) UAVObjConnectQueue(PipXtremeModemSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define PipXtremeModemSettingsConnectCallback(cb) UAVObjConnectCallback(PipXtremeModemSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define PipXtremeModemSettingsCreateInstance() UAVObjCreateInstance(PipXtremeModemSettingsHandle())
|
||||
#define PipXtremeModemSettingsRequestUpdate() UAVObjRequestUpdate(PipXtremeModemSettingsHandle())
|
||||
#define PipXtremeModemSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(PipXtremeModemSettingsHandle(), instId)
|
||||
#define PipXtremeModemSettingsUpdated() UAVObjUpdated(PipXtremeModemSettingsHandle())
|
||||
#define PipXtremeModemSettingsInstUpdated(instId) UAVObjUpdated(PipXtremeModemSettingsHandle(), instId)
|
||||
#define PipXtremeModemSettingsGetMetadata(dataOut) UAVObjGetMetadata(PipXtremeModemSettingsHandle(), dataOut)
|
||||
#define PipXtremeModemSettingsSetMetadata(dataIn) UAVObjSetMetadata(PipXtremeModemSettingsHandle(), dataIn)
|
||||
#define PipXtremeModemSettingsReadOnly(dataIn) UAVObjReadOnly(PipXtremeModemSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Mode;
|
||||
uint8_t Serial_Baudrate;
|
||||
uint8_t Frequency_Calibration;
|
||||
uint32_t Frequency_Min;
|
||||
uint32_t Frequency_Max;
|
||||
uint32_t Frequency;
|
||||
uint8_t Max_RF_Bandwidth;
|
||||
uint8_t Max_Tx_Power;
|
||||
uint8_t Tx_Data_Wait;
|
||||
uint8_t AES_Encryption;
|
||||
uint8_t AES_EncryptionKey[16];
|
||||
uint32_t Paired_Serial_Number;
|
||||
|
||||
} __attribute__((packed)) PipXtremeModemSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field Mode information
|
||||
/* Enumeration options for field Mode */
|
||||
typedef enum { PIPXTREMEMODEMSETTINGS_MODE_NORMAL=0, PIPXTREMEMODEMSETTINGS_MODE_TEST_CARRIER=1, PIPXTREMEMODEMSETTINGS_MODE_TEST_SPECTRUM=2 } PipXtremeModemSettingsModeOptions;
|
||||
// Field Serial_Baudrate information
|
||||
/* Enumeration options for field Serial_Baudrate */
|
||||
typedef enum { PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_1200=0, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_2400=1, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_4800=2, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_9600=3, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_19200=4, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_38400=5, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_57600=6, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_115200=7, PIPXTREMEMODEMSETTINGS_SERIAL_BAUDRATE_230400=8 } PipXtremeModemSettingsSerial_BaudrateOptions;
|
||||
// Field Frequency_Calibration information
|
||||
// Field Frequency_Min information
|
||||
// Field Frequency_Max information
|
||||
// Field Frequency information
|
||||
// Field Max_RF_Bandwidth information
|
||||
/* Enumeration options for field Max_RF_Bandwidth */
|
||||
typedef enum { PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_500=0, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_1000=1, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_2000=2, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_4000=3, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_8000=4, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_9600=5, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_16000=6, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_19200=7, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_24000=8, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_32000=9, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_64000=10, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_128000=11, PIPXTREMEMODEMSETTINGS_MAX_RF_BANDWIDTH_192000=12 } PipXtremeModemSettingsMax_RF_BandwidthOptions;
|
||||
// Field Max_Tx_Power information
|
||||
/* Enumeration options for field Max_Tx_Power */
|
||||
typedef enum { PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_1=0, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_2=1, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_5=2, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_8=3, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_11=4, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_14=5, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_17=6, PIPXTREMEMODEMSETTINGS_MAX_TX_POWER_20=7 } PipXtremeModemSettingsMax_Tx_PowerOptions;
|
||||
// Field Tx_Data_Wait information
|
||||
// Field AES_Encryption information
|
||||
/* Enumeration options for field AES_Encryption */
|
||||
typedef enum { PIPXTREMEMODEMSETTINGS_AES_ENCRYPTION_FALSE=0, PIPXTREMEMODEMSETTINGS_AES_ENCRYPTION_TRUE=1 } PipXtremeModemSettingsAES_EncryptionOptions;
|
||||
// Field AES_EncryptionKey information
|
||||
/* Number of elements for field AES_EncryptionKey */
|
||||
#define PIPXTREMEMODEMSETTINGS_AES_ENCRYPTIONKEY_NUMELEM 16
|
||||
// Field Paired_Serial_Number information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t PipXtremeModemSettingsInitialize();
|
||||
UAVObjHandle PipXtremeModemSettingsHandle();
|
||||
|
||||
#endif // PIPXTREMEMODEMSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,113 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PipXtremeModemStatus PipXtremeModemStatus
|
||||
* @brief Status for the @ref PipXtremeModem
|
||||
*
|
||||
* Autogenerated files and functions for PipXtremeModemStatus Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file pipxtrememodemstatus.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PipXtremeModemStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: pipxtrememodemstatus.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 PIPXTREMEMODEMSTATUS_H
|
||||
#define PIPXTREMEMODEMSTATUS_H
|
||||
|
||||
// Object constants
|
||||
#define PIPXTREMEMODEMSTATUS_OBJID 2490854928U
|
||||
#define PIPXTREMEMODEMSTATUS_NAME "PipXtremeModemStatus"
|
||||
#define PIPXTREMEMODEMSTATUS_METANAME "PipXtremeModemStatusMeta"
|
||||
#define PIPXTREMEMODEMSTATUS_ISSINGLEINST 1
|
||||
#define PIPXTREMEMODEMSTATUS_ISSETTINGS 0
|
||||
#define PIPXTREMEMODEMSTATUS_NUMBYTES sizeof(PipXtremeModemStatusData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function PipXtremeModemStatusGet(dataOut)
|
||||
* @brief Populate a PipXtremeModemStatusData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define PipXtremeModemStatusGet(dataOut) UAVObjGetData(PipXtremeModemStatusHandle(), dataOut)
|
||||
#define PipXtremeModemStatusSet(dataIn) UAVObjSetData(PipXtremeModemStatusHandle(), dataIn)
|
||||
#define PipXtremeModemStatusInstGet(instId, dataOut) UAVObjGetInstanceData(PipXtremeModemStatusHandle(), instId, dataOut)
|
||||
#define PipXtremeModemStatusInstSet(instId, dataIn) UAVObjSetInstanceData(PipXtremeModemStatusHandle(), instId, dataIn)
|
||||
#define PipXtremeModemStatusConnectQueue(queue) UAVObjConnectQueue(PipXtremeModemStatusHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define PipXtremeModemStatusConnectCallback(cb) UAVObjConnectCallback(PipXtremeModemStatusHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define PipXtremeModemStatusCreateInstance() UAVObjCreateInstance(PipXtremeModemStatusHandle())
|
||||
#define PipXtremeModemStatusRequestUpdate() UAVObjRequestUpdate(PipXtremeModemStatusHandle())
|
||||
#define PipXtremeModemStatusRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(PipXtremeModemStatusHandle(), instId)
|
||||
#define PipXtremeModemStatusUpdated() UAVObjUpdated(PipXtremeModemStatusHandle())
|
||||
#define PipXtremeModemStatusInstUpdated(instId) UAVObjUpdated(PipXtremeModemStatusHandle(), instId)
|
||||
#define PipXtremeModemStatusGetMetadata(dataOut) UAVObjGetMetadata(PipXtremeModemStatusHandle(), dataOut)
|
||||
#define PipXtremeModemStatusSetMetadata(dataIn) UAVObjSetMetadata(PipXtremeModemStatusHandle(), dataIn)
|
||||
#define PipXtremeModemStatusReadOnly(dataIn) UAVObjReadOnly(PipXtremeModemStatusHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Firmware_Version_Major;
|
||||
uint8_t Firmware_Version_Minor;
|
||||
uint32_t Serial_Number;
|
||||
uint32_t Up_Time;
|
||||
uint32_t Frequency;
|
||||
uint32_t RF_Bandwidth;
|
||||
int8_t Tx_Power;
|
||||
uint8_t State;
|
||||
uint16_t Tx_Retry;
|
||||
uint32_t Tx_Data_Rate;
|
||||
uint32_t Rx_Data_Rate;
|
||||
|
||||
} __attribute__((packed)) PipXtremeModemStatusData;
|
||||
|
||||
// Field information
|
||||
// Field Firmware_Version_Major information
|
||||
// Field Firmware_Version_Minor information
|
||||
// Field Serial_Number information
|
||||
// Field Up_Time information
|
||||
// Field Frequency information
|
||||
// Field RF_Bandwidth information
|
||||
// Field Tx_Power information
|
||||
// Field State information
|
||||
/* Enumeration options for field State */
|
||||
typedef enum { PIPXTREMEMODEMSTATUS_STATE_DISCONNECTED=0, PIPXTREMEMODEMSTATUS_STATE_CONNECTING=1, PIPXTREMEMODEMSTATUS_STATE_CONNECTED=2, PIPXTREMEMODEMSTATUS_STATE_NOTREADY=3 } PipXtremeModemStatusStateOptions;
|
||||
// Field Tx_Retry information
|
||||
// Field Tx_Data_Rate information
|
||||
// Field Rx_Data_Rate information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t PipXtremeModemStatusInitialize();
|
||||
UAVObjHandle PipXtremeModemStatusHandle();
|
||||
|
||||
#endif // PIPXTREMEMODEMSTATUS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PositionActual PositionActual
|
||||
* @brief Contains the current position relative to @ref HomeLocation
|
||||
*
|
||||
* Autogenerated files and functions for PositionActual Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file positionactual.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PositionActual object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: positionactual.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 POSITIONACTUAL_H
|
||||
#define POSITIONACTUAL_H
|
||||
|
||||
// Object constants
|
||||
#define POSITIONACTUAL_OBJID 3765671478U
|
||||
#define POSITIONACTUAL_NAME "PositionActual"
|
||||
#define POSITIONACTUAL_METANAME "PositionActualMeta"
|
||||
#define POSITIONACTUAL_ISSINGLEINST 1
|
||||
#define POSITIONACTUAL_ISSETTINGS 0
|
||||
#define POSITIONACTUAL_NUMBYTES sizeof(PositionActualData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function PositionActualGet(dataOut)
|
||||
* @brief Populate a PositionActualData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define PositionActualGet(dataOut) UAVObjGetData(PositionActualHandle(), dataOut)
|
||||
#define PositionActualSet(dataIn) UAVObjSetData(PositionActualHandle(), dataIn)
|
||||
#define PositionActualInstGet(instId, dataOut) UAVObjGetInstanceData(PositionActualHandle(), instId, dataOut)
|
||||
#define PositionActualInstSet(instId, dataIn) UAVObjSetInstanceData(PositionActualHandle(), instId, dataIn)
|
||||
#define PositionActualConnectQueue(queue) UAVObjConnectQueue(PositionActualHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define PositionActualConnectCallback(cb) UAVObjConnectCallback(PositionActualHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define PositionActualCreateInstance() UAVObjCreateInstance(PositionActualHandle())
|
||||
#define PositionActualRequestUpdate() UAVObjRequestUpdate(PositionActualHandle())
|
||||
#define PositionActualRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(PositionActualHandle(), instId)
|
||||
#define PositionActualUpdated() UAVObjUpdated(PositionActualHandle())
|
||||
#define PositionActualInstUpdated(instId) UAVObjUpdated(PositionActualHandle(), instId)
|
||||
#define PositionActualGetMetadata(dataOut) UAVObjGetMetadata(PositionActualHandle(), dataOut)
|
||||
#define PositionActualSetMetadata(dataIn) UAVObjSetMetadata(PositionActualHandle(), dataIn)
|
||||
#define PositionActualReadOnly(dataIn) UAVObjReadOnly(PositionActualHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int32_t North;
|
||||
int32_t East;
|
||||
int32_t Down;
|
||||
|
||||
} __attribute__((packed)) PositionActualData;
|
||||
|
||||
// Field information
|
||||
// Field North information
|
||||
// Field East information
|
||||
// Field Down information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t PositionActualInitialize();
|
||||
UAVObjHandle PositionActualHandle();
|
||||
|
||||
#endif // POSITIONACTUAL_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PositionDesired PositionDesired
|
||||
* @brief The position the craft is trying t achieve. Can come from GCS or @ref PathPlanner
|
||||
*
|
||||
* Autogenerated files and functions for PositionDesired Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file positiondesired.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PositionDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: positiondesired.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 POSITIONDESIRED_H
|
||||
#define POSITIONDESIRED_H
|
||||
|
||||
// Object constants
|
||||
#define POSITIONDESIRED_OBJID 801433018U
|
||||
#define POSITIONDESIRED_NAME "PositionDesired"
|
||||
#define POSITIONDESIRED_METANAME "PositionDesiredMeta"
|
||||
#define POSITIONDESIRED_ISSINGLEINST 1
|
||||
#define POSITIONDESIRED_ISSETTINGS 0
|
||||
#define POSITIONDESIRED_NUMBYTES sizeof(PositionDesiredData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function PositionDesiredGet(dataOut)
|
||||
* @brief Populate a PositionDesiredData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define PositionDesiredGet(dataOut) UAVObjGetData(PositionDesiredHandle(), dataOut)
|
||||
#define PositionDesiredSet(dataIn) UAVObjSetData(PositionDesiredHandle(), dataIn)
|
||||
#define PositionDesiredInstGet(instId, dataOut) UAVObjGetInstanceData(PositionDesiredHandle(), instId, dataOut)
|
||||
#define PositionDesiredInstSet(instId, dataIn) UAVObjSetInstanceData(PositionDesiredHandle(), instId, dataIn)
|
||||
#define PositionDesiredConnectQueue(queue) UAVObjConnectQueue(PositionDesiredHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define PositionDesiredConnectCallback(cb) UAVObjConnectCallback(PositionDesiredHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define PositionDesiredCreateInstance() UAVObjCreateInstance(PositionDesiredHandle())
|
||||
#define PositionDesiredRequestUpdate() UAVObjRequestUpdate(PositionDesiredHandle())
|
||||
#define PositionDesiredRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(PositionDesiredHandle(), instId)
|
||||
#define PositionDesiredUpdated() UAVObjUpdated(PositionDesiredHandle())
|
||||
#define PositionDesiredInstUpdated(instId) UAVObjUpdated(PositionDesiredHandle(), instId)
|
||||
#define PositionDesiredGetMetadata(dataOut) UAVObjGetMetadata(PositionDesiredHandle(), dataOut)
|
||||
#define PositionDesiredSetMetadata(dataIn) UAVObjSetMetadata(PositionDesiredHandle(), dataIn)
|
||||
#define PositionDesiredReadOnly(dataIn) UAVObjReadOnly(PositionDesiredHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int32_t North;
|
||||
int32_t East;
|
||||
int32_t Down;
|
||||
|
||||
} __attribute__((packed)) PositionDesiredData;
|
||||
|
||||
// Field information
|
||||
// Field North information
|
||||
// Field East information
|
||||
// Field Down information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t PositionDesiredInitialize();
|
||||
UAVObjHandle PositionDesiredHandle();
|
||||
|
||||
#endif // POSITIONDESIRED_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup RateDesired RateDesired
|
||||
* @brief Status for the matrix mixer showing the output of each mixer after all scaling
|
||||
*
|
||||
* Autogenerated files and functions for RateDesired Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file ratedesired.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the RateDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: ratedesired.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 RATEDESIRED_H
|
||||
#define RATEDESIRED_H
|
||||
|
||||
// Object constants
|
||||
#define RATEDESIRED_OBJID 3124868380U
|
||||
#define RATEDESIRED_NAME "RateDesired"
|
||||
#define RATEDESIRED_METANAME "RateDesiredMeta"
|
||||
#define RATEDESIRED_ISSINGLEINST 1
|
||||
#define RATEDESIRED_ISSETTINGS 0
|
||||
#define RATEDESIRED_NUMBYTES sizeof(RateDesiredData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function RateDesiredGet(dataOut)
|
||||
* @brief Populate a RateDesiredData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define RateDesiredGet(dataOut) UAVObjGetData(RateDesiredHandle(), dataOut)
|
||||
#define RateDesiredSet(dataIn) UAVObjSetData(RateDesiredHandle(), dataIn)
|
||||
#define RateDesiredInstGet(instId, dataOut) UAVObjGetInstanceData(RateDesiredHandle(), instId, dataOut)
|
||||
#define RateDesiredInstSet(instId, dataIn) UAVObjSetInstanceData(RateDesiredHandle(), instId, dataIn)
|
||||
#define RateDesiredConnectQueue(queue) UAVObjConnectQueue(RateDesiredHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define RateDesiredConnectCallback(cb) UAVObjConnectCallback(RateDesiredHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define RateDesiredCreateInstance() UAVObjCreateInstance(RateDesiredHandle())
|
||||
#define RateDesiredRequestUpdate() UAVObjRequestUpdate(RateDesiredHandle())
|
||||
#define RateDesiredRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(RateDesiredHandle(), instId)
|
||||
#define RateDesiredUpdated() UAVObjUpdated(RateDesiredHandle())
|
||||
#define RateDesiredInstUpdated(instId) UAVObjUpdated(RateDesiredHandle(), instId)
|
||||
#define RateDesiredGetMetadata(dataOut) UAVObjGetMetadata(RateDesiredHandle(), dataOut)
|
||||
#define RateDesiredSetMetadata(dataIn) UAVObjSetMetadata(RateDesiredHandle(), dataIn)
|
||||
#define RateDesiredReadOnly(dataIn) UAVObjReadOnly(RateDesiredHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
float Roll;
|
||||
float Pitch;
|
||||
float Yaw;
|
||||
|
||||
} __attribute__((packed)) RateDesiredData;
|
||||
|
||||
// Field information
|
||||
// Field Roll information
|
||||
// Field Pitch information
|
||||
// Field Yaw information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t RateDesiredInitialize();
|
||||
UAVObjHandle RateDesiredHandle();
|
||||
|
||||
#endif // RATEDESIRED_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,143 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup StabilizationSettings StabilizationSettings
|
||||
* @brief PID settings used by the Stabilization module to combine the @ref AttitudeActual and @ref AttitudeDesired to compute @ref ActuatorDesired
|
||||
*
|
||||
* Autogenerated files and functions for StabilizationSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file stabilizationsettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the StabilizationSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: stabilizationsettings.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 STABILIZATIONSETTINGS_H
|
||||
#define STABILIZATIONSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define STABILIZATIONSETTINGS_OBJID 3792991236U
|
||||
#define STABILIZATIONSETTINGS_NAME "StabilizationSettings"
|
||||
#define STABILIZATIONSETTINGS_METANAME "StabilizationSettingsMeta"
|
||||
#define STABILIZATIONSETTINGS_ISSINGLEINST 1
|
||||
#define STABILIZATIONSETTINGS_ISSETTINGS 1
|
||||
#define STABILIZATIONSETTINGS_NUMBYTES sizeof(StabilizationSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function StabilizationSettingsGet(dataOut)
|
||||
* @brief Populate a StabilizationSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define StabilizationSettingsGet(dataOut) UAVObjGetData(StabilizationSettingsHandle(), dataOut)
|
||||
#define StabilizationSettingsSet(dataIn) UAVObjSetData(StabilizationSettingsHandle(), dataIn)
|
||||
#define StabilizationSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(StabilizationSettingsHandle(), instId, dataOut)
|
||||
#define StabilizationSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(StabilizationSettingsHandle(), instId, dataIn)
|
||||
#define StabilizationSettingsConnectQueue(queue) UAVObjConnectQueue(StabilizationSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define StabilizationSettingsConnectCallback(cb) UAVObjConnectCallback(StabilizationSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define StabilizationSettingsCreateInstance() UAVObjCreateInstance(StabilizationSettingsHandle())
|
||||
#define StabilizationSettingsRequestUpdate() UAVObjRequestUpdate(StabilizationSettingsHandle())
|
||||
#define StabilizationSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(StabilizationSettingsHandle(), instId)
|
||||
#define StabilizationSettingsUpdated() UAVObjUpdated(StabilizationSettingsHandle())
|
||||
#define StabilizationSettingsInstUpdated(instId) UAVObjUpdated(StabilizationSettingsHandle(), instId)
|
||||
#define StabilizationSettingsGetMetadata(dataOut) UAVObjGetMetadata(StabilizationSettingsHandle(), dataOut)
|
||||
#define StabilizationSettingsSetMetadata(dataIn) UAVObjSetMetadata(StabilizationSettingsHandle(), dataIn)
|
||||
#define StabilizationSettingsReadOnly(dataIn) UAVObjReadOnly(StabilizationSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t RollMax;
|
||||
uint8_t PitchMax;
|
||||
uint8_t YawMax;
|
||||
float ManualRate[3];
|
||||
float MaximumRate[3];
|
||||
float RollRatePI[3];
|
||||
float PitchRatePI[3];
|
||||
float YawRatePI[3];
|
||||
float RollPI[3];
|
||||
float PitchPI[3];
|
||||
float YawPI[3];
|
||||
|
||||
} __attribute__((packed)) StabilizationSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field RollMax information
|
||||
// Field PitchMax information
|
||||
// Field YawMax information
|
||||
// Field ManualRate information
|
||||
/* Array element names for field ManualRate */
|
||||
typedef enum { STABILIZATIONSETTINGS_MANUALRATE_ROLL=0, STABILIZATIONSETTINGS_MANUALRATE_PITCH=1, STABILIZATIONSETTINGS_MANUALRATE_YAW=2 } StabilizationSettingsManualRateElem;
|
||||
/* Number of elements for field ManualRate */
|
||||
#define STABILIZATIONSETTINGS_MANUALRATE_NUMELEM 3
|
||||
// Field MaximumRate information
|
||||
/* Array element names for field MaximumRate */
|
||||
typedef enum { STABILIZATIONSETTINGS_MAXIMUMRATE_ROLL=0, STABILIZATIONSETTINGS_MAXIMUMRATE_PITCH=1, STABILIZATIONSETTINGS_MAXIMUMRATE_YAW=2 } StabilizationSettingsMaximumRateElem;
|
||||
/* Number of elements for field MaximumRate */
|
||||
#define STABILIZATIONSETTINGS_MAXIMUMRATE_NUMELEM 3
|
||||
// Field RollRatePI information
|
||||
/* Array element names for field RollRatePI */
|
||||
typedef enum { STABILIZATIONSETTINGS_ROLLRATEPI_KP=0, STABILIZATIONSETTINGS_ROLLRATEPI_KI=1, STABILIZATIONSETTINGS_ROLLRATEPI_ILIMIT=2 } StabilizationSettingsRollRatePIElem;
|
||||
/* Number of elements for field RollRatePI */
|
||||
#define STABILIZATIONSETTINGS_ROLLRATEPI_NUMELEM 3
|
||||
// Field PitchRatePI information
|
||||
/* Array element names for field PitchRatePI */
|
||||
typedef enum { STABILIZATIONSETTINGS_PITCHRATEPI_KP=0, STABILIZATIONSETTINGS_PITCHRATEPI_KI=1, STABILIZATIONSETTINGS_PITCHRATEPI_ILIMIT=2 } StabilizationSettingsPitchRatePIElem;
|
||||
/* Number of elements for field PitchRatePI */
|
||||
#define STABILIZATIONSETTINGS_PITCHRATEPI_NUMELEM 3
|
||||
// Field YawRatePI information
|
||||
/* Array element names for field YawRatePI */
|
||||
typedef enum { STABILIZATIONSETTINGS_YAWRATEPI_KP=0, STABILIZATIONSETTINGS_YAWRATEPI_KI=1, STABILIZATIONSETTINGS_YAWRATEPI_ILIMIT=2 } StabilizationSettingsYawRatePIElem;
|
||||
/* Number of elements for field YawRatePI */
|
||||
#define STABILIZATIONSETTINGS_YAWRATEPI_NUMELEM 3
|
||||
// Field RollPI information
|
||||
/* Array element names for field RollPI */
|
||||
typedef enum { STABILIZATIONSETTINGS_ROLLPI_KP=0, STABILIZATIONSETTINGS_ROLLPI_KI=1, STABILIZATIONSETTINGS_ROLLPI_ILIMIT=2 } StabilizationSettingsRollPIElem;
|
||||
/* Number of elements for field RollPI */
|
||||
#define STABILIZATIONSETTINGS_ROLLPI_NUMELEM 3
|
||||
// Field PitchPI information
|
||||
/* Array element names for field PitchPI */
|
||||
typedef enum { STABILIZATIONSETTINGS_PITCHPI_KP=0, STABILIZATIONSETTINGS_PITCHPI_KI=1, STABILIZATIONSETTINGS_PITCHPI_ILIMIT=2 } StabilizationSettingsPitchPIElem;
|
||||
/* Number of elements for field PitchPI */
|
||||
#define STABILIZATIONSETTINGS_PITCHPI_NUMELEM 3
|
||||
// Field YawPI information
|
||||
/* Array element names for field YawPI */
|
||||
typedef enum { STABILIZATIONSETTINGS_YAWPI_KP=0, STABILIZATIONSETTINGS_YAWPI_KI=1, STABILIZATIONSETTINGS_YAWPI_ILIMIT=2 } StabilizationSettingsYawPIElem;
|
||||
/* Number of elements for field YawPI */
|
||||
#define STABILIZATIONSETTINGS_YAWPI_NUMELEM 3
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t StabilizationSettingsInitialize();
|
||||
UAVObjHandle StabilizationSettingsHandle();
|
||||
|
||||
#endif // STABILIZATIONSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,97 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup SystemAlarms SystemAlarms
|
||||
* @brief Alarms from OpenPilot to indicate failure conditions or warnings. Set by various modules.
|
||||
*
|
||||
* Autogenerated files and functions for SystemAlarms Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file systemalarms.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the SystemAlarms object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: systemalarms.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 SYSTEMALARMS_H
|
||||
#define SYSTEMALARMS_H
|
||||
|
||||
// Object constants
|
||||
#define SYSTEMALARMS_OBJID 2311314672U
|
||||
#define SYSTEMALARMS_NAME "SystemAlarms"
|
||||
#define SYSTEMALARMS_METANAME "SystemAlarmsMeta"
|
||||
#define SYSTEMALARMS_ISSINGLEINST 1
|
||||
#define SYSTEMALARMS_ISSETTINGS 0
|
||||
#define SYSTEMALARMS_NUMBYTES sizeof(SystemAlarmsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function SystemAlarmsGet(dataOut)
|
||||
* @brief Populate a SystemAlarmsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define SystemAlarmsGet(dataOut) UAVObjGetData(SystemAlarmsHandle(), dataOut)
|
||||
#define SystemAlarmsSet(dataIn) UAVObjSetData(SystemAlarmsHandle(), dataIn)
|
||||
#define SystemAlarmsInstGet(instId, dataOut) UAVObjGetInstanceData(SystemAlarmsHandle(), instId, dataOut)
|
||||
#define SystemAlarmsInstSet(instId, dataIn) UAVObjSetInstanceData(SystemAlarmsHandle(), instId, dataIn)
|
||||
#define SystemAlarmsConnectQueue(queue) UAVObjConnectQueue(SystemAlarmsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define SystemAlarmsConnectCallback(cb) UAVObjConnectCallback(SystemAlarmsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define SystemAlarmsCreateInstance() UAVObjCreateInstance(SystemAlarmsHandle())
|
||||
#define SystemAlarmsRequestUpdate() UAVObjRequestUpdate(SystemAlarmsHandle())
|
||||
#define SystemAlarmsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(SystemAlarmsHandle(), instId)
|
||||
#define SystemAlarmsUpdated() UAVObjUpdated(SystemAlarmsHandle())
|
||||
#define SystemAlarmsInstUpdated(instId) UAVObjUpdated(SystemAlarmsHandle(), instId)
|
||||
#define SystemAlarmsGetMetadata(dataOut) UAVObjGetMetadata(SystemAlarmsHandle(), dataOut)
|
||||
#define SystemAlarmsSetMetadata(dataIn) UAVObjSetMetadata(SystemAlarmsHandle(), dataIn)
|
||||
#define SystemAlarmsReadOnly(dataIn) UAVObjReadOnly(SystemAlarmsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Alarm[14];
|
||||
|
||||
} __attribute__((packed)) SystemAlarmsData;
|
||||
|
||||
// Field information
|
||||
// Field Alarm information
|
||||
/* Enumeration options for field Alarm */
|
||||
typedef enum { SYSTEMALARMS_ALARM_OK=0, SYSTEMALARMS_ALARM_WARNING=1, SYSTEMALARMS_ALARM_ERROR=2, SYSTEMALARMS_ALARM_CRITICAL=3, SYSTEMALARMS_ALARM_UNINITIALISED=4 } SystemAlarmsAlarmOptions;
|
||||
/* Array element names for field Alarm */
|
||||
typedef enum { SYSTEMALARMS_ALARM_OUTOFMEMORY=0, SYSTEMALARMS_ALARM_STACKOVERFLOW=1, SYSTEMALARMS_ALARM_CPUOVERLOAD=2, SYSTEMALARMS_ALARM_EVENTSYSTEM=3, SYSTEMALARMS_ALARM_SDCARD=4, SYSTEMALARMS_ALARM_TELEMETRY=5, SYSTEMALARMS_ALARM_MANUALCONTROL=6, SYSTEMALARMS_ALARM_ACTUATOR=7, SYSTEMALARMS_ALARM_STABILIZATION=8, SYSTEMALARMS_ALARM_AHRSCOMMS=9, SYSTEMALARMS_ALARM_BATTERY=10, SYSTEMALARMS_ALARM_FLIGHTTIME=11, SYSTEMALARMS_ALARM_I2C=12, SYSTEMALARMS_ALARM_GPS=13 } SystemAlarmsAlarmElem;
|
||||
/* Number of elements for field Alarm */
|
||||
#define SYSTEMALARMS_ALARM_NUMELEM 14
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t SystemAlarmsInitialize();
|
||||
UAVObjHandle SystemAlarmsHandle();
|
||||
|
||||
#endif // SYSTEMALARMS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,93 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup SystemSettings SystemSettings
|
||||
* @brief Select airframe type. Currently used by @ref ActuatorModule to choose mixing from @ref ActuatorDesired to @ref ActuatorCommand
|
||||
*
|
||||
* Autogenerated files and functions for SystemSettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file systemsettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the SystemSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: systemsettings.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 SYSTEMSETTINGS_H
|
||||
#define SYSTEMSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define SYSTEMSETTINGS_OBJID 59202798U
|
||||
#define SYSTEMSETTINGS_NAME "SystemSettings"
|
||||
#define SYSTEMSETTINGS_METANAME "SystemSettingsMeta"
|
||||
#define SYSTEMSETTINGS_ISSINGLEINST 1
|
||||
#define SYSTEMSETTINGS_ISSETTINGS 1
|
||||
#define SYSTEMSETTINGS_NUMBYTES sizeof(SystemSettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function SystemSettingsGet(dataOut)
|
||||
* @brief Populate a SystemSettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define SystemSettingsGet(dataOut) UAVObjGetData(SystemSettingsHandle(), dataOut)
|
||||
#define SystemSettingsSet(dataIn) UAVObjSetData(SystemSettingsHandle(), dataIn)
|
||||
#define SystemSettingsInstGet(instId, dataOut) UAVObjGetInstanceData(SystemSettingsHandle(), instId, dataOut)
|
||||
#define SystemSettingsInstSet(instId, dataIn) UAVObjSetInstanceData(SystemSettingsHandle(), instId, dataIn)
|
||||
#define SystemSettingsConnectQueue(queue) UAVObjConnectQueue(SystemSettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define SystemSettingsConnectCallback(cb) UAVObjConnectCallback(SystemSettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define SystemSettingsCreateInstance() UAVObjCreateInstance(SystemSettingsHandle())
|
||||
#define SystemSettingsRequestUpdate() UAVObjRequestUpdate(SystemSettingsHandle())
|
||||
#define SystemSettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(SystemSettingsHandle(), instId)
|
||||
#define SystemSettingsUpdated() UAVObjUpdated(SystemSettingsHandle())
|
||||
#define SystemSettingsInstUpdated(instId) UAVObjUpdated(SystemSettingsHandle(), instId)
|
||||
#define SystemSettingsGetMetadata(dataOut) UAVObjGetMetadata(SystemSettingsHandle(), dataOut)
|
||||
#define SystemSettingsSetMetadata(dataIn) UAVObjSetMetadata(SystemSettingsHandle(), dataIn)
|
||||
#define SystemSettingsReadOnly(dataIn) UAVObjReadOnly(SystemSettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t AirframeType;
|
||||
|
||||
} __attribute__((packed)) SystemSettingsData;
|
||||
|
||||
// Field information
|
||||
// Field AirframeType information
|
||||
/* Enumeration options for field AirframeType */
|
||||
typedef enum { SYSTEMSETTINGS_AIRFRAMETYPE_FIXEDWING=0, SYSTEMSETTINGS_AIRFRAMETYPE_FIXEDWINGELEVON=1, SYSTEMSETTINGS_AIRFRAMETYPE_FIXEDWINGVTAIL=2, SYSTEMSETTINGS_AIRFRAMETYPE_VTOL=3, SYSTEMSETTINGS_AIRFRAMETYPE_HELICP=4, SYSTEMSETTINGS_AIRFRAMETYPE_QUADX=5, SYSTEMSETTINGS_AIRFRAMETYPE_QUADP=6, SYSTEMSETTINGS_AIRFRAMETYPE_HEXA=7, SYSTEMSETTINGS_AIRFRAMETYPE_OCTO=8, SYSTEMSETTINGS_AIRFRAMETYPE_CUSTOM=9, SYSTEMSETTINGS_AIRFRAMETYPE_HEXAX=10, SYSTEMSETTINGS_AIRFRAMETYPE_OCTOV=11, SYSTEMSETTINGS_AIRFRAMETYPE_OCTOCOAXP=12, SYSTEMSETTINGS_AIRFRAMETYPE_OCTOCOAXX=13, SYSTEMSETTINGS_AIRFRAMETYPE_HEXACOAX=14, SYSTEMSETTINGS_AIRFRAMETYPE_TRI=15 } SystemSettingsAirframeTypeOptions;
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t SystemSettingsInitialize();
|
||||
UAVObjHandle SystemSettingsHandle();
|
||||
|
||||
#endif // SYSTEMSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup SystemStats SystemStats
|
||||
* @brief CPU and memory usage from OpenPilot computer.
|
||||
*
|
||||
* Autogenerated files and functions for SystemStats Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file systemstats.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the SystemStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: systemstats.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 SYSTEMSTATS_H
|
||||
#define SYSTEMSTATS_H
|
||||
|
||||
// Object constants
|
||||
#define SYSTEMSTATS_OBJID 680908530U
|
||||
#define SYSTEMSTATS_NAME "SystemStats"
|
||||
#define SYSTEMSTATS_METANAME "SystemStatsMeta"
|
||||
#define SYSTEMSTATS_ISSINGLEINST 1
|
||||
#define SYSTEMSTATS_ISSETTINGS 0
|
||||
#define SYSTEMSTATS_NUMBYTES sizeof(SystemStatsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function SystemStatsGet(dataOut)
|
||||
* @brief Populate a SystemStatsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define SystemStatsGet(dataOut) UAVObjGetData(SystemStatsHandle(), dataOut)
|
||||
#define SystemStatsSet(dataIn) UAVObjSetData(SystemStatsHandle(), dataIn)
|
||||
#define SystemStatsInstGet(instId, dataOut) UAVObjGetInstanceData(SystemStatsHandle(), instId, dataOut)
|
||||
#define SystemStatsInstSet(instId, dataIn) UAVObjSetInstanceData(SystemStatsHandle(), instId, dataIn)
|
||||
#define SystemStatsConnectQueue(queue) UAVObjConnectQueue(SystemStatsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define SystemStatsConnectCallback(cb) UAVObjConnectCallback(SystemStatsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define SystemStatsCreateInstance() UAVObjCreateInstance(SystemStatsHandle())
|
||||
#define SystemStatsRequestUpdate() UAVObjRequestUpdate(SystemStatsHandle())
|
||||
#define SystemStatsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(SystemStatsHandle(), instId)
|
||||
#define SystemStatsUpdated() UAVObjUpdated(SystemStatsHandle())
|
||||
#define SystemStatsInstUpdated(instId) UAVObjUpdated(SystemStatsHandle(), instId)
|
||||
#define SystemStatsGetMetadata(dataOut) UAVObjGetMetadata(SystemStatsHandle(), dataOut)
|
||||
#define SystemStatsSetMetadata(dataIn) UAVObjSetMetadata(SystemStatsHandle(), dataIn)
|
||||
#define SystemStatsReadOnly(dataIn) UAVObjReadOnly(SystemStatsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint32_t FlightTime;
|
||||
uint16_t HeapRemaining;
|
||||
uint8_t CPULoad;
|
||||
|
||||
} __attribute__((packed)) SystemStatsData;
|
||||
|
||||
// Field information
|
||||
// Field FlightTime information
|
||||
// Field HeapRemaining information
|
||||
// Field CPULoad information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t SystemStatsInitialize();
|
||||
UAVObjHandle SystemStatsHandle();
|
||||
|
||||
#endif // SYSTEMSTATS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,103 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup TaskInfo TaskInfo
|
||||
* @brief Task information
|
||||
*
|
||||
* Autogenerated files and functions for TaskInfo Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file taskinfo.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the TaskInfo object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: taskinfo.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 TASKINFO_H
|
||||
#define TASKINFO_H
|
||||
|
||||
// Object constants
|
||||
#define TASKINFO_OBJID 1358273008U
|
||||
#define TASKINFO_NAME "TaskInfo"
|
||||
#define TASKINFO_METANAME "TaskInfoMeta"
|
||||
#define TASKINFO_ISSINGLEINST 1
|
||||
#define TASKINFO_ISSETTINGS 0
|
||||
#define TASKINFO_NUMBYTES sizeof(TaskInfoData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function TaskInfoGet(dataOut)
|
||||
* @brief Populate a TaskInfoData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define TaskInfoGet(dataOut) UAVObjGetData(TaskInfoHandle(), dataOut)
|
||||
#define TaskInfoSet(dataIn) UAVObjSetData(TaskInfoHandle(), dataIn)
|
||||
#define TaskInfoInstGet(instId, dataOut) UAVObjGetInstanceData(TaskInfoHandle(), instId, dataOut)
|
||||
#define TaskInfoInstSet(instId, dataIn) UAVObjSetInstanceData(TaskInfoHandle(), instId, dataIn)
|
||||
#define TaskInfoConnectQueue(queue) UAVObjConnectQueue(TaskInfoHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define TaskInfoConnectCallback(cb) UAVObjConnectCallback(TaskInfoHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define TaskInfoCreateInstance() UAVObjCreateInstance(TaskInfoHandle())
|
||||
#define TaskInfoRequestUpdate() UAVObjRequestUpdate(TaskInfoHandle())
|
||||
#define TaskInfoRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(TaskInfoHandle(), instId)
|
||||
#define TaskInfoUpdated() UAVObjUpdated(TaskInfoHandle())
|
||||
#define TaskInfoInstUpdated(instId) UAVObjUpdated(TaskInfoHandle(), instId)
|
||||
#define TaskInfoGetMetadata(dataOut) UAVObjGetMetadata(TaskInfoHandle(), dataOut)
|
||||
#define TaskInfoSetMetadata(dataIn) UAVObjSetMetadata(TaskInfoHandle(), dataIn)
|
||||
#define TaskInfoReadOnly(dataIn) UAVObjReadOnly(TaskInfoHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint16_t StackRemaining[13];
|
||||
uint8_t Running[13];
|
||||
|
||||
} __attribute__((packed)) TaskInfoData;
|
||||
|
||||
// Field information
|
||||
// Field StackRemaining information
|
||||
/* Array element names for field StackRemaining */
|
||||
typedef enum { TASKINFO_STACKREMAINING_SYSTEM=0, TASKINFO_STACKREMAINING_ACTUATOR=1, TASKINFO_STACKREMAINING_TELEMETRYTX=2, TASKINFO_STACKREMAINING_TELEMETRYTXPRI=3, TASKINFO_STACKREMAINING_TELEMETRYRX=4, TASKINFO_STACKREMAINING_GPS=5, TASKINFO_STACKREMAINING_MANUALCONTROL=6, TASKINFO_STACKREMAINING_ALTITUDE=7, TASKINFO_STACKREMAINING_AHRSCOMMS=8, TASKINFO_STACKREMAINING_STABILIZATION=9, TASKINFO_STACKREMAINING_GUIDANCE=10, TASKINFO_STACKREMAINING_WATCHDOG=11, TASKINFO_STACKREMAINING_FLIGHTPLAN=12 } TaskInfoStackRemainingElem;
|
||||
/* Number of elements for field StackRemaining */
|
||||
#define TASKINFO_STACKREMAINING_NUMELEM 13
|
||||
// Field Running information
|
||||
/* Enumeration options for field Running */
|
||||
typedef enum { TASKINFO_RUNNING_FALSE=0, TASKINFO_RUNNING_TRUE=1 } TaskInfoRunningOptions;
|
||||
/* Array element names for field Running */
|
||||
typedef enum { TASKINFO_RUNNING_SYSTEM=0, TASKINFO_RUNNING_ACTUATOR=1, TASKINFO_RUNNING_TELEMETRYTX=2, TASKINFO_RUNNING_TELEMETRYTXPRI=3, TASKINFO_RUNNING_TELEMETRYRX=4, TASKINFO_RUNNING_GPS=5, TASKINFO_RUNNING_MANUALCONTROL=6, TASKINFO_RUNNING_ALTITUDE=7, TASKINFO_RUNNING_AHRSCOMMS=8, TASKINFO_RUNNING_STABILIZATION=9, TASKINFO_RUNNING_GUIDANCE=10, TASKINFO_RUNNING_WATCHDOG=11, TASKINFO_RUNNING_FLIGHTPLAN=12 } TaskInfoRunningElem;
|
||||
/* Number of elements for field Running */
|
||||
#define TASKINFO_RUNNING_NUMELEM 13
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t TaskInfoInitialize();
|
||||
UAVObjHandle TaskInfoHandle();
|
||||
|
||||
#endif // TASKINFO_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,93 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup TelemetrySettings TelemetrySettings
|
||||
* @brief Select baud rate of telemetry. Warning - this must match your modem.
|
||||
*
|
||||
* Autogenerated files and functions for TelemetrySettings Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file telemetrysettings.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the TelemetrySettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: telemetrysettings.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 TELEMETRYSETTINGS_H
|
||||
#define TELEMETRYSETTINGS_H
|
||||
|
||||
// Object constants
|
||||
#define TELEMETRYSETTINGS_OBJID 2785592614U
|
||||
#define TELEMETRYSETTINGS_NAME "TelemetrySettings"
|
||||
#define TELEMETRYSETTINGS_METANAME "TelemetrySettingsMeta"
|
||||
#define TELEMETRYSETTINGS_ISSINGLEINST 1
|
||||
#define TELEMETRYSETTINGS_ISSETTINGS 1
|
||||
#define TELEMETRYSETTINGS_NUMBYTES sizeof(TelemetrySettingsData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function TelemetrySettingsGet(dataOut)
|
||||
* @brief Populate a TelemetrySettingsData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define TelemetrySettingsGet(dataOut) UAVObjGetData(TelemetrySettingsHandle(), dataOut)
|
||||
#define TelemetrySettingsSet(dataIn) UAVObjSetData(TelemetrySettingsHandle(), dataIn)
|
||||
#define TelemetrySettingsInstGet(instId, dataOut) UAVObjGetInstanceData(TelemetrySettingsHandle(), instId, dataOut)
|
||||
#define TelemetrySettingsInstSet(instId, dataIn) UAVObjSetInstanceData(TelemetrySettingsHandle(), instId, dataIn)
|
||||
#define TelemetrySettingsConnectQueue(queue) UAVObjConnectQueue(TelemetrySettingsHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define TelemetrySettingsConnectCallback(cb) UAVObjConnectCallback(TelemetrySettingsHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define TelemetrySettingsCreateInstance() UAVObjCreateInstance(TelemetrySettingsHandle())
|
||||
#define TelemetrySettingsRequestUpdate() UAVObjRequestUpdate(TelemetrySettingsHandle())
|
||||
#define TelemetrySettingsRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(TelemetrySettingsHandle(), instId)
|
||||
#define TelemetrySettingsUpdated() UAVObjUpdated(TelemetrySettingsHandle())
|
||||
#define TelemetrySettingsInstUpdated(instId) UAVObjUpdated(TelemetrySettingsHandle(), instId)
|
||||
#define TelemetrySettingsGetMetadata(dataOut) UAVObjGetMetadata(TelemetrySettingsHandle(), dataOut)
|
||||
#define TelemetrySettingsSetMetadata(dataIn) UAVObjSetMetadata(TelemetrySettingsHandle(), dataIn)
|
||||
#define TelemetrySettingsReadOnly(dataIn) UAVObjReadOnly(TelemetrySettingsHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint8_t Speed;
|
||||
|
||||
} __attribute__((packed)) TelemetrySettingsData;
|
||||
|
||||
// Field information
|
||||
// Field Speed information
|
||||
/* Enumeration options for field Speed */
|
||||
typedef enum { TELEMETRYSETTINGS_SPEED_2400=0, TELEMETRYSETTINGS_SPEED_4800=1, TELEMETRYSETTINGS_SPEED_9600=2, TELEMETRYSETTINGS_SPEED_19200=3, TELEMETRYSETTINGS_SPEED_38400=4, TELEMETRYSETTINGS_SPEED_57600=5, TELEMETRYSETTINGS_SPEED_115200=6 } TelemetrySettingsSpeedOptions;
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t TelemetrySettingsInitialize();
|
||||
UAVObjHandle TelemetrySettingsHandle();
|
||||
|
||||
#endif // TELEMETRYSETTINGS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup VelocityActual VelocityActual
|
||||
* @brief Updated by @ref AHRSCommsModule and used within @ref GuidanceModulefor velocity control
|
||||
*
|
||||
* Autogenerated files and functions for VelocityActual Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file velocityactual.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the VelocityActual object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: velocityactual.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 VELOCITYACTUAL_H
|
||||
#define VELOCITYACTUAL_H
|
||||
|
||||
// Object constants
|
||||
#define VELOCITYACTUAL_OBJID 1207999624U
|
||||
#define VELOCITYACTUAL_NAME "VelocityActual"
|
||||
#define VELOCITYACTUAL_METANAME "VelocityActualMeta"
|
||||
#define VELOCITYACTUAL_ISSINGLEINST 1
|
||||
#define VELOCITYACTUAL_ISSETTINGS 0
|
||||
#define VELOCITYACTUAL_NUMBYTES sizeof(VelocityActualData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function VelocityActualGet(dataOut)
|
||||
* @brief Populate a VelocityActualData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define VelocityActualGet(dataOut) UAVObjGetData(VelocityActualHandle(), dataOut)
|
||||
#define VelocityActualSet(dataIn) UAVObjSetData(VelocityActualHandle(), dataIn)
|
||||
#define VelocityActualInstGet(instId, dataOut) UAVObjGetInstanceData(VelocityActualHandle(), instId, dataOut)
|
||||
#define VelocityActualInstSet(instId, dataIn) UAVObjSetInstanceData(VelocityActualHandle(), instId, dataIn)
|
||||
#define VelocityActualConnectQueue(queue) UAVObjConnectQueue(VelocityActualHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define VelocityActualConnectCallback(cb) UAVObjConnectCallback(VelocityActualHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define VelocityActualCreateInstance() UAVObjCreateInstance(VelocityActualHandle())
|
||||
#define VelocityActualRequestUpdate() UAVObjRequestUpdate(VelocityActualHandle())
|
||||
#define VelocityActualRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(VelocityActualHandle(), instId)
|
||||
#define VelocityActualUpdated() UAVObjUpdated(VelocityActualHandle())
|
||||
#define VelocityActualInstUpdated(instId) UAVObjUpdated(VelocityActualHandle(), instId)
|
||||
#define VelocityActualGetMetadata(dataOut) UAVObjGetMetadata(VelocityActualHandle(), dataOut)
|
||||
#define VelocityActualSetMetadata(dataIn) UAVObjSetMetadata(VelocityActualHandle(), dataIn)
|
||||
#define VelocityActualReadOnly(dataIn) UAVObjReadOnly(VelocityActualHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int32_t North;
|
||||
int32_t East;
|
||||
int32_t Down;
|
||||
|
||||
} __attribute__((packed)) VelocityActualData;
|
||||
|
||||
// Field information
|
||||
// Field North information
|
||||
// Field East information
|
||||
// Field Down information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t VelocityActualInitialize();
|
||||
UAVObjHandle VelocityActualHandle();
|
||||
|
||||
#endif // VELOCITYACTUAL_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,95 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup VelocityDesired VelocityDesired
|
||||
* @brief Used within @ref GuidanceModule to communicate between the task computing the desired velocity and the PID loop to achieve it (running at different rates).
|
||||
*
|
||||
* Autogenerated files and functions for VelocityDesired Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file velocitydesired.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the VelocityDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: velocitydesired.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 VELOCITYDESIRED_H
|
||||
#define VELOCITYDESIRED_H
|
||||
|
||||
// Object constants
|
||||
#define VELOCITYDESIRED_OBJID 305094202U
|
||||
#define VELOCITYDESIRED_NAME "VelocityDesired"
|
||||
#define VELOCITYDESIRED_METANAME "VelocityDesiredMeta"
|
||||
#define VELOCITYDESIRED_ISSINGLEINST 1
|
||||
#define VELOCITYDESIRED_ISSETTINGS 0
|
||||
#define VELOCITYDESIRED_NUMBYTES sizeof(VelocityDesiredData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function VelocityDesiredGet(dataOut)
|
||||
* @brief Populate a VelocityDesiredData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define VelocityDesiredGet(dataOut) UAVObjGetData(VelocityDesiredHandle(), dataOut)
|
||||
#define VelocityDesiredSet(dataIn) UAVObjSetData(VelocityDesiredHandle(), dataIn)
|
||||
#define VelocityDesiredInstGet(instId, dataOut) UAVObjGetInstanceData(VelocityDesiredHandle(), instId, dataOut)
|
||||
#define VelocityDesiredInstSet(instId, dataIn) UAVObjSetInstanceData(VelocityDesiredHandle(), instId, dataIn)
|
||||
#define VelocityDesiredConnectQueue(queue) UAVObjConnectQueue(VelocityDesiredHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define VelocityDesiredConnectCallback(cb) UAVObjConnectCallback(VelocityDesiredHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define VelocityDesiredCreateInstance() UAVObjCreateInstance(VelocityDesiredHandle())
|
||||
#define VelocityDesiredRequestUpdate() UAVObjRequestUpdate(VelocityDesiredHandle())
|
||||
#define VelocityDesiredRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(VelocityDesiredHandle(), instId)
|
||||
#define VelocityDesiredUpdated() UAVObjUpdated(VelocityDesiredHandle())
|
||||
#define VelocityDesiredInstUpdated(instId) UAVObjUpdated(VelocityDesiredHandle(), instId)
|
||||
#define VelocityDesiredGetMetadata(dataOut) UAVObjGetMetadata(VelocityDesiredHandle(), dataOut)
|
||||
#define VelocityDesiredSetMetadata(dataIn) UAVObjSetMetadata(VelocityDesiredHandle(), dataIn)
|
||||
#define VelocityDesiredReadOnly(dataIn) UAVObjReadOnly(VelocityDesiredHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
int32_t North;
|
||||
int32_t East;
|
||||
int32_t Down;
|
||||
|
||||
} __attribute__((packed)) VelocityDesiredData;
|
||||
|
||||
// Field information
|
||||
// Field North information
|
||||
// Field East information
|
||||
// Field Down information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t VelocityDesiredInitialize();
|
||||
UAVObjHandle VelocityDesiredHandle();
|
||||
|
||||
#endif // VELOCITYDESIRED_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,93 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup WatchdogStatus WatchdogStatus
|
||||
* @brief For monitoring the flags in the watchdog and especially the bootup flags
|
||||
*
|
||||
* Autogenerated files and functions for WatchdogStatus Object
|
||||
|
||||
* @{
|
||||
*
|
||||
* @file watchdogstatus.h
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the WatchdogStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: watchdogstatus.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 WATCHDOGSTATUS_H
|
||||
#define WATCHDOGSTATUS_H
|
||||
|
||||
// Object constants
|
||||
#define WATCHDOGSTATUS_OBJID 3594971408U
|
||||
#define WATCHDOGSTATUS_NAME "WatchdogStatus"
|
||||
#define WATCHDOGSTATUS_METANAME "WatchdogStatusMeta"
|
||||
#define WATCHDOGSTATUS_ISSINGLEINST 1
|
||||
#define WATCHDOGSTATUS_ISSETTINGS 0
|
||||
#define WATCHDOGSTATUS_NUMBYTES sizeof(WatchdogStatusData)
|
||||
|
||||
// Object access macros
|
||||
/**
|
||||
* @function WatchdogStatusGet(dataOut)
|
||||
* @brief Populate a WatchdogStatusData object
|
||||
* @param[out] dataOut
|
||||
*/
|
||||
#define WatchdogStatusGet(dataOut) UAVObjGetData(WatchdogStatusHandle(), dataOut)
|
||||
#define WatchdogStatusSet(dataIn) UAVObjSetData(WatchdogStatusHandle(), dataIn)
|
||||
#define WatchdogStatusInstGet(instId, dataOut) UAVObjGetInstanceData(WatchdogStatusHandle(), instId, dataOut)
|
||||
#define WatchdogStatusInstSet(instId, dataIn) UAVObjSetInstanceData(WatchdogStatusHandle(), instId, dataIn)
|
||||
#define WatchdogStatusConnectQueue(queue) UAVObjConnectQueue(WatchdogStatusHandle(), queue, EV_MASK_ALL_UPDATES)
|
||||
#define WatchdogStatusConnectCallback(cb) UAVObjConnectCallback(WatchdogStatusHandle(), cb, EV_MASK_ALL_UPDATES)
|
||||
#define WatchdogStatusCreateInstance() UAVObjCreateInstance(WatchdogStatusHandle())
|
||||
#define WatchdogStatusRequestUpdate() UAVObjRequestUpdate(WatchdogStatusHandle())
|
||||
#define WatchdogStatusRequestInstUpdate(instId) UAVObjRequestInstanceUpdate(WatchdogStatusHandle(), instId)
|
||||
#define WatchdogStatusUpdated() UAVObjUpdated(WatchdogStatusHandle())
|
||||
#define WatchdogStatusInstUpdated(instId) UAVObjUpdated(WatchdogStatusHandle(), instId)
|
||||
#define WatchdogStatusGetMetadata(dataOut) UAVObjGetMetadata(WatchdogStatusHandle(), dataOut)
|
||||
#define WatchdogStatusSetMetadata(dataIn) UAVObjSetMetadata(WatchdogStatusHandle(), dataIn)
|
||||
#define WatchdogStatusReadOnly(dataIn) UAVObjReadOnly(WatchdogStatusHandle())
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint16_t BootupFlags;
|
||||
uint16_t ActiveFlags;
|
||||
|
||||
} __attribute__((packed)) WatchdogStatusData;
|
||||
|
||||
// Field information
|
||||
// Field BootupFlags information
|
||||
// Field ActiveFlags information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
int32_t WatchdogStatusInitialize();
|
||||
UAVObjHandle WatchdogStatusHandle();
|
||||
|
||||
#endif // WATCHDOGSTATUS_H
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
*/
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ManualControlCommand ManualControlCommand
|
||||
* @brief The output from the @ref ManualControlModule which descodes the receiver inputs. Overriden by GCS for fly-by-wire control.
|
||||
*
|
||||
* Autogenerated files and functions for ManualControlCommand Object
|
||||
* @{
|
||||
*
|
||||
* @file manualcontrolcommand.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ManualControlCommand object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: manualcontrolcommand.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "manualcontrolcommand.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t ManualControlCommandInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(MANUALCONTROLCOMMAND_OBJID, MANUALCONTROLCOMMAND_NAME, MANUALCONTROLCOMMAND_METANAME, 0,
|
||||
MANUALCONTROLCOMMAND_ISSINGLEINST, MANUALCONTROLCOMMAND_ISSETTINGS, MANUALCONTROLCOMMAND_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
ManualControlCommandData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(ManualControlCommandData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 2000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle ManualControlCommandHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,157 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ManualControlSettings ManualControlSettings
|
||||
* @brief Settings to indicate how to decode receiver input by @ref ManualControlModule.
|
||||
*
|
||||
* Autogenerated files and functions for ManualControlSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file manualcontrolsettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ManualControlSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: manualcontrolsettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "manualcontrolsettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t ManualControlSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(MANUALCONTROLSETTINGS_OBJID, MANUALCONTROLSETTINGS_NAME, MANUALCONTROLSETTINGS_METANAME, 0,
|
||||
MANUALCONTROLSETTINGS_ISSINGLEINST, MANUALCONTROLSETTINGS_ISSETTINGS, MANUALCONTROLSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
ManualControlSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(ManualControlSettingsData));
|
||||
data.InputMode = 0;
|
||||
data.Roll = 0;
|
||||
data.Pitch = 1;
|
||||
data.Yaw = 2;
|
||||
data.Throttle = 3;
|
||||
data.FlightMode = 4;
|
||||
data.Accessory1 = 8;
|
||||
data.Accessory2 = 8;
|
||||
data.Accessory3 = 8;
|
||||
data.Pos1StabilizationSettings[0] = 2;
|
||||
data.Pos1StabilizationSettings[1] = 2;
|
||||
data.Pos1StabilizationSettings[2] = 2;
|
||||
data.Pos2StabilizationSettings[0] = 2;
|
||||
data.Pos2StabilizationSettings[1] = 2;
|
||||
data.Pos2StabilizationSettings[2] = 2;
|
||||
data.Pos3StabilizationSettings[0] = 2;
|
||||
data.Pos3StabilizationSettings[1] = 2;
|
||||
data.Pos3StabilizationSettings[2] = 2;
|
||||
data.Pos1FlightMode = 0;
|
||||
data.Pos2FlightMode = 1;
|
||||
data.Pos3FlightMode = 2;
|
||||
data.ChannelMax[0] = 2000;
|
||||
data.ChannelMax[1] = 2000;
|
||||
data.ChannelMax[2] = 2000;
|
||||
data.ChannelMax[3] = 2000;
|
||||
data.ChannelMax[4] = 2000;
|
||||
data.ChannelMax[5] = 2000;
|
||||
data.ChannelMax[6] = 2000;
|
||||
data.ChannelMax[7] = 2000;
|
||||
data.ChannelNeutral[0] = 1500;
|
||||
data.ChannelNeutral[1] = 1500;
|
||||
data.ChannelNeutral[2] = 1500;
|
||||
data.ChannelNeutral[3] = 1500;
|
||||
data.ChannelNeutral[4] = 1500;
|
||||
data.ChannelNeutral[5] = 1500;
|
||||
data.ChannelNeutral[6] = 1500;
|
||||
data.ChannelNeutral[7] = 1500;
|
||||
data.ChannelMin[0] = 1000;
|
||||
data.ChannelMin[1] = 1000;
|
||||
data.ChannelMin[2] = 1000;
|
||||
data.ChannelMin[3] = 1000;
|
||||
data.ChannelMin[4] = 1000;
|
||||
data.ChannelMin[5] = 1000;
|
||||
data.ChannelMin[6] = 1000;
|
||||
data.ChannelMin[7] = 1000;
|
||||
data.ArmedTimeout = 30000;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle ManualControlSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,173 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup MixerSettings MixerSettings
|
||||
* @brief Settings for the @ref ActuatorModule that controls the channel assignments for the mixer based on AircraftType
|
||||
*
|
||||
* Autogenerated files and functions for MixerSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file mixersettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the MixerSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: mixersettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "mixersettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t MixerSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(MIXERSETTINGS_OBJID, MIXERSETTINGS_NAME, MIXERSETTINGS_METANAME, 0,
|
||||
MIXERSETTINGS_ISSINGLEINST, MIXERSETTINGS_ISSETTINGS, MIXERSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
MixerSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(MixerSettingsData));
|
||||
data.MaxAccel = 1000;
|
||||
data.FeedForward = 0;
|
||||
data.AccelTime = 0;
|
||||
data.DecelTime = 0;
|
||||
data.ThrottleCurve1[0] = 0;
|
||||
data.ThrottleCurve1[1] = 0.25;
|
||||
data.ThrottleCurve1[2] = 0.5;
|
||||
data.ThrottleCurve1[3] = 0.75;
|
||||
data.ThrottleCurve1[4] = 1;
|
||||
data.ThrottleCurve2[0] = 0;
|
||||
data.ThrottleCurve2[1] = 0.25;
|
||||
data.ThrottleCurve2[2] = 0.5;
|
||||
data.ThrottleCurve2[3] = 0.75;
|
||||
data.ThrottleCurve2[4] = 1;
|
||||
data.Mixer1Type = 0;
|
||||
data.Mixer1Vector[0] = 0;
|
||||
data.Mixer1Vector[1] = 0;
|
||||
data.Mixer1Vector[2] = 0;
|
||||
data.Mixer1Vector[3] = 0;
|
||||
data.Mixer1Vector[4] = 0;
|
||||
data.Mixer2Type = 0;
|
||||
data.Mixer2Vector[0] = 0;
|
||||
data.Mixer2Vector[1] = 0;
|
||||
data.Mixer2Vector[2] = 0;
|
||||
data.Mixer2Vector[3] = 0;
|
||||
data.Mixer2Vector[4] = 0;
|
||||
data.Mixer3Type = 0;
|
||||
data.Mixer3Vector[0] = 0;
|
||||
data.Mixer3Vector[1] = 0;
|
||||
data.Mixer3Vector[2] = 0;
|
||||
data.Mixer3Vector[3] = 0;
|
||||
data.Mixer3Vector[4] = 0;
|
||||
data.Mixer4Type = 0;
|
||||
data.Mixer4Vector[0] = 0;
|
||||
data.Mixer4Vector[1] = 0;
|
||||
data.Mixer4Vector[2] = 0;
|
||||
data.Mixer4Vector[3] = 0;
|
||||
data.Mixer4Vector[4] = 0;
|
||||
data.Mixer5Type = 0;
|
||||
data.Mixer5Vector[0] = 0;
|
||||
data.Mixer5Vector[1] = 0;
|
||||
data.Mixer5Vector[2] = 0;
|
||||
data.Mixer5Vector[3] = 0;
|
||||
data.Mixer5Vector[4] = 0;
|
||||
data.Mixer6Type = 0;
|
||||
data.Mixer6Vector[0] = 0;
|
||||
data.Mixer6Vector[1] = 0;
|
||||
data.Mixer6Vector[2] = 0;
|
||||
data.Mixer6Vector[3] = 0;
|
||||
data.Mixer6Vector[4] = 0;
|
||||
data.Mixer7Type = 0;
|
||||
data.Mixer7Vector[0] = 0;
|
||||
data.Mixer7Vector[1] = 0;
|
||||
data.Mixer7Vector[2] = 0;
|
||||
data.Mixer7Vector[3] = 0;
|
||||
data.Mixer7Vector[4] = 0;
|
||||
data.Mixer8Type = 0;
|
||||
data.Mixer8Vector[0] = 0;
|
||||
data.Mixer8Vector[1] = 0;
|
||||
data.Mixer8Vector[2] = 0;
|
||||
data.Mixer8Vector[3] = 0;
|
||||
data.Mixer8Vector[4] = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle MixerSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup MixerStatus MixerStatus
|
||||
* @brief Status for the matrix mixer showing the output of each mixer after all scaling
|
||||
*
|
||||
* Autogenerated files and functions for MixerStatus Object
|
||||
* @{
|
||||
*
|
||||
* @file mixerstatus.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the MixerStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: mixerstatus.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "mixerstatus.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t MixerStatusInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(MIXERSTATUS_OBJID, MIXERSTATUS_NAME, MIXERSTATUS_METANAME, 0,
|
||||
MIXERSTATUS_ISSINGLEINST, MIXERSTATUS_ISSETTINGS, MIXERSTATUS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
MixerStatusData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(MixerStatusData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle MixerStatusHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup ObjectPersistence ObjectPersistence
|
||||
* @brief Someone who knows please enter this
|
||||
*
|
||||
* Autogenerated files and functions for ObjectPersistence Object
|
||||
* @{
|
||||
*
|
||||
* @file objectpersistence.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the ObjectPersistence object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: objectpersistence.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "objectpersistence.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t ObjectPersistenceInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(OBJECTPERSISTENCE_OBJID, OBJECTPERSISTENCE_NAME, OBJECTPERSISTENCE_METANAME, 0,
|
||||
OBJECTPERSISTENCE_ISSINGLEINST, OBJECTPERSISTENCE_ISSETTINGS, OBJECTPERSISTENCE_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
ObjectPersistenceData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(ObjectPersistenceData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle ObjectPersistenceHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,138 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PipXtremeModemSettings PipXtremeModemSettings
|
||||
* @brief Settings for the @ref PipXtremeModemSettings
|
||||
*
|
||||
* Autogenerated files and functions for PipXtremeModemSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file pipxtrememodemsettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PipXtremeModemSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: pipxtrememodemsettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "pipxtrememodemsettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t PipXtremeModemSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(PIPXTREMEMODEMSETTINGS_OBJID, PIPXTREMEMODEMSETTINGS_NAME, PIPXTREMEMODEMSETTINGS_METANAME, 0,
|
||||
PIPXTREMEMODEMSETTINGS_ISSINGLEINST, PIPXTREMEMODEMSETTINGS_ISSETTINGS, PIPXTREMEMODEMSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
PipXtremeModemSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(PipXtremeModemSettingsData));
|
||||
data.Mode = 0;
|
||||
data.Serial_Baudrate = 6;
|
||||
data.Frequency_Calibration = 127;
|
||||
data.Frequency_Min = 0;
|
||||
data.Frequency_Max = 0;
|
||||
data.Frequency = 0;
|
||||
data.Max_RF_Bandwidth = 11;
|
||||
data.Max_Tx_Power = 4;
|
||||
data.Tx_Data_Wait = 10;
|
||||
data.AES_Encryption = 0;
|
||||
data.AES_EncryptionKey[0] = 0;
|
||||
data.AES_EncryptionKey[1] = 0;
|
||||
data.AES_EncryptionKey[2] = 0;
|
||||
data.AES_EncryptionKey[3] = 0;
|
||||
data.AES_EncryptionKey[4] = 0;
|
||||
data.AES_EncryptionKey[5] = 0;
|
||||
data.AES_EncryptionKey[6] = 0;
|
||||
data.AES_EncryptionKey[7] = 0;
|
||||
data.AES_EncryptionKey[8] = 0;
|
||||
data.AES_EncryptionKey[9] = 0;
|
||||
data.AES_EncryptionKey[10] = 0;
|
||||
data.AES_EncryptionKey[11] = 0;
|
||||
data.AES_EncryptionKey[12] = 0;
|
||||
data.AES_EncryptionKey[13] = 0;
|
||||
data.AES_EncryptionKey[14] = 0;
|
||||
data.AES_EncryptionKey[15] = 0;
|
||||
data.Paired_Serial_Number = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle PipXtremeModemSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,114 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PipXtremeModemStatus PipXtremeModemStatus
|
||||
* @brief Status for the @ref PipXtremeModem
|
||||
*
|
||||
* Autogenerated files and functions for PipXtremeModemStatus Object
|
||||
* @{
|
||||
*
|
||||
* @file pipxtrememodemstatus.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PipXtremeModemStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: pipxtrememodemstatus.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "pipxtrememodemstatus.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t PipXtremeModemStatusInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(PIPXTREMEMODEMSTATUS_OBJID, PIPXTREMEMODEMSTATUS_NAME, PIPXTREMEMODEMSTATUS_METANAME, 0,
|
||||
PIPXTREMEMODEMSTATUS_ISSINGLEINST, PIPXTREMEMODEMSTATUS_ISSETTINGS, PIPXTREMEMODEMSTATUS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
PipXtremeModemStatusData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(PipXtremeModemStatusData));
|
||||
data.Firmware_Version_Major = 0;
|
||||
data.Firmware_Version_Minor = 0;
|
||||
data.Serial_Number = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 5000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle PipXtremeModemStatusHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PositionActual PositionActual
|
||||
* @brief Contains the current position relative to @ref HomeLocation
|
||||
*
|
||||
* Autogenerated files and functions for PositionActual Object
|
||||
* @{
|
||||
*
|
||||
* @file positionactual.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PositionActual object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: positionactual.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "positionactual.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t PositionActualInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(POSITIONACTUAL_OBJID, POSITIONACTUAL_NAME, POSITIONACTUAL_METANAME, 0,
|
||||
POSITIONACTUAL_ISSINGLEINST, POSITIONACTUAL_ISSETTINGS, POSITIONACTUAL_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
PositionActualData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(PositionActualData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle PositionActualHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup PositionDesired PositionDesired
|
||||
* @brief The position the craft is trying t achieve. Can come from GCS or @ref PathPlanner
|
||||
*
|
||||
* Autogenerated files and functions for PositionDesired Object
|
||||
* @{
|
||||
*
|
||||
* @file positiondesired.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the PositionDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: positiondesired.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "positiondesired.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t PositionDesiredInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(POSITIONDESIRED_OBJID, POSITIONDESIRED_NAME, POSITIONDESIRED_METANAME, 0,
|
||||
POSITIONDESIRED_ISSINGLEINST, POSITIONDESIRED_ISSETTINGS, POSITIONDESIRED_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
PositionDesiredData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(PositionDesiredData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle PositionDesiredHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup RateDesired RateDesired
|
||||
* @brief Status for the matrix mixer showing the output of each mixer after all scaling
|
||||
*
|
||||
* Autogenerated files and functions for RateDesired Object
|
||||
* @{
|
||||
*
|
||||
* @file ratedesired.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the RateDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: ratedesired.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "ratedesired.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t RateDesiredInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(RATEDESIRED_OBJID, RATEDESIRED_NAME, RATEDESIRED_METANAME, 0,
|
||||
RATEDESIRED_ISSINGLEINST, RATEDESIRED_ISSETTINGS, RATEDESIRED_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
RateDesiredData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(RateDesiredData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle RateDesiredHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,138 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup StabilizationSettings StabilizationSettings
|
||||
* @brief PID settings used by the Stabilization module to combine the @ref AttitudeActual and @ref AttitudeDesired to compute @ref ActuatorDesired
|
||||
*
|
||||
* Autogenerated files and functions for StabilizationSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file stabilizationsettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the StabilizationSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: stabilizationsettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "stabilizationsettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t StabilizationSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(STABILIZATIONSETTINGS_OBJID, STABILIZATIONSETTINGS_NAME, STABILIZATIONSETTINGS_METANAME, 0,
|
||||
STABILIZATIONSETTINGS_ISSINGLEINST, STABILIZATIONSETTINGS_ISSETTINGS, STABILIZATIONSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
StabilizationSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(StabilizationSettingsData));
|
||||
data.RollMax = 35;
|
||||
data.PitchMax = 35;
|
||||
data.YawMax = 35;
|
||||
data.ManualRate[0] = 150;
|
||||
data.ManualRate[1] = 150;
|
||||
data.ManualRate[2] = 150;
|
||||
data.MaximumRate[0] = 300;
|
||||
data.MaximumRate[1] = 300;
|
||||
data.MaximumRate[2] = 300;
|
||||
data.RollRatePI[0] = 0.0015;
|
||||
data.RollRatePI[1] = 0;
|
||||
data.RollRatePI[2] = 0.5;
|
||||
data.PitchRatePI[0] = 0.0015;
|
||||
data.PitchRatePI[1] = 0;
|
||||
data.PitchRatePI[2] = 0.5;
|
||||
data.YawRatePI[0] = 0.003;
|
||||
data.YawRatePI[1] = 0;
|
||||
data.YawRatePI[2] = 0.5;
|
||||
data.RollPI[0] = 2;
|
||||
data.RollPI[1] = 0;
|
||||
data.RollPI[2] = 0.5;
|
||||
data.PitchPI[0] = 2;
|
||||
data.PitchPI[1] = 0;
|
||||
data.PitchPI[2] = 0.5;
|
||||
data.YawPI[0] = 2;
|
||||
data.YawPI[1] = 0;
|
||||
data.YawPI[2] = 0.5;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle StabilizationSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,125 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup SystemAlarms SystemAlarms
|
||||
* @brief Alarms from OpenPilot to indicate failure conditions or warnings. Set by various modules.
|
||||
*
|
||||
* Autogenerated files and functions for SystemAlarms Object
|
||||
* @{
|
||||
*
|
||||
* @file systemalarms.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the SystemAlarms object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: systemalarms.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "systemalarms.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t SystemAlarmsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(SYSTEMALARMS_OBJID, SYSTEMALARMS_NAME, SYSTEMALARMS_METANAME, 0,
|
||||
SYSTEMALARMS_ISSINGLEINST, SYSTEMALARMS_ISSETTINGS, SYSTEMALARMS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
SystemAlarmsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(SystemAlarmsData));
|
||||
data.Alarm[0] = 4;
|
||||
data.Alarm[1] = 4;
|
||||
data.Alarm[2] = 4;
|
||||
data.Alarm[3] = 4;
|
||||
data.Alarm[4] = 4;
|
||||
data.Alarm[5] = 4;
|
||||
data.Alarm[6] = 4;
|
||||
data.Alarm[7] = 4;
|
||||
data.Alarm[8] = 4;
|
||||
data.Alarm[9] = 4;
|
||||
data.Alarm[10] = 4;
|
||||
data.Alarm[11] = 4;
|
||||
data.Alarm[12] = 4;
|
||||
data.Alarm[13] = 4;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 4000;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle SystemAlarmsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,112 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup SystemSettings SystemSettings
|
||||
* @brief Select airframe type. Currently used by @ref ActuatorModule to choose mixing from @ref ActuatorDesired to @ref ActuatorCommand
|
||||
*
|
||||
* Autogenerated files and functions for SystemSettings Object
|
||||
* @{
|
||||
*
|
||||
* @file systemsettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the SystemSettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: systemsettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "systemsettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t SystemSettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(SYSTEMSETTINGS_OBJID, SYSTEMSETTINGS_NAME, SYSTEMSETTINGS_METANAME, 0,
|
||||
SYSTEMSETTINGS_ISSINGLEINST, SYSTEMSETTINGS_ISSETTINGS, SYSTEMSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
SystemSettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(SystemSettingsData));
|
||||
data.AirframeType = 0;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle SystemSettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup SystemStats SystemStats
|
||||
* @brief CPU and memory usage from OpenPilot computer.
|
||||
*
|
||||
* Autogenerated files and functions for SystemStats Object
|
||||
* @{
|
||||
*
|
||||
* @file systemstats.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the SystemStats object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: systemstats.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "systemstats.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t SystemStatsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(SYSTEMSTATS_OBJID, SYSTEMSTATS_NAME, SYSTEMSTATS_METANAME, 0,
|
||||
SYSTEMSTATS_ISSINGLEINST, SYSTEMSTATS_ISSETTINGS, SYSTEMSTATS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
SystemStatsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(SystemStatsData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle SystemStatsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup TaskInfo TaskInfo
|
||||
* @brief Task information
|
||||
*
|
||||
* Autogenerated files and functions for TaskInfo Object
|
||||
* @{
|
||||
*
|
||||
* @file taskinfo.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the TaskInfo object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: taskinfo.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "taskinfo.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t TaskInfoInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(TASKINFO_OBJID, TASKINFO_NAME, TASKINFO_METANAME, 0,
|
||||
TASKINFO_ISSINGLEINST, TASKINFO_ISSETTINGS, TASKINFO_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
TaskInfoData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(TaskInfoData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 10000;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle TaskInfoHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,112 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup TelemetrySettings TelemetrySettings
|
||||
* @brief Select baud rate of telemetry. Warning - this must match your modem.
|
||||
*
|
||||
* Autogenerated files and functions for TelemetrySettings Object
|
||||
* @{
|
||||
*
|
||||
* @file telemetrysettings.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the TelemetrySettings object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: telemetrysettings.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "telemetrysettings.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t TelemetrySettingsInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(TELEMETRYSETTINGS_OBJID, TELEMETRYSETTINGS_NAME, TELEMETRYSETTINGS_METANAME, 0,
|
||||
TELEMETRYSETTINGS_ISSINGLEINST, TELEMETRYSETTINGS_ISSETTINGS, TELEMETRYSETTINGS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
TelemetrySettingsData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(TelemetrySettingsData));
|
||||
data.Speed = 5;
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 1;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.telemetryUpdatePeriod = 0;
|
||||
metadata.gcsTelemetryAcked = 1;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_ONCHANGE;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_NEVER;
|
||||
metadata.loggingUpdatePeriod = 0;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle TelemetrySettingsHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,126 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
*
|
||||
* @file uavobjectsinit.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Initialize all objects.
|
||||
* Automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note 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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "actuatorcommand.h"
|
||||
#include "actuatordesired.h"
|
||||
#include "actuatorsettings.h"
|
||||
#include "ahrscalibration.h"
|
||||
#include "ahrssettings.h"
|
||||
#include "ahrsstatus.h"
|
||||
#include "attitudeactual.h"
|
||||
#include "attitudedesired.h"
|
||||
#include "attituderaw.h"
|
||||
#include "baroaltitude.h"
|
||||
#include "batterysettings.h"
|
||||
#include "firmwareiapobj.h"
|
||||
#include "flightbatterystate.h"
|
||||
#include "flightplancontrol.h"
|
||||
#include "flightplansettings.h"
|
||||
#include "flightplanstatus.h"
|
||||
#include "flighttelemetrystats.h"
|
||||
#include "gcstelemetrystats.h"
|
||||
#include "gpsposition.h"
|
||||
#include "gpssatellites.h"
|
||||
#include "gpstime.h"
|
||||
#include "guidancesettings.h"
|
||||
#include "homelocation.h"
|
||||
#include "i2cstats.h"
|
||||
#include "manualcontrolcommand.h"
|
||||
#include "manualcontrolsettings.h"
|
||||
#include "mixersettings.h"
|
||||
#include "mixerstatus.h"
|
||||
#include "objectpersistence.h"
|
||||
#include "pipxtrememodemsettings.h"
|
||||
#include "pipxtrememodemstatus.h"
|
||||
#include "positionactual.h"
|
||||
#include "positiondesired.h"
|
||||
#include "ratedesired.h"
|
||||
#include "stabilizationsettings.h"
|
||||
#include "systemalarms.h"
|
||||
#include "systemsettings.h"
|
||||
#include "systemstats.h"
|
||||
#include "taskinfo.h"
|
||||
#include "telemetrysettings.h"
|
||||
#include "velocityactual.h"
|
||||
#include "velocitydesired.h"
|
||||
#include "watchdogstatus.h"
|
||||
|
||||
|
||||
/**
|
||||
* Function used to initialize the first instance of each object.
|
||||
* This file is automatically updated by the UAVObjectGenerator.
|
||||
*/
|
||||
void UAVObjectsInitializeAll()
|
||||
{
|
||||
ActuatorCommandInitialize();
|
||||
ActuatorDesiredInitialize();
|
||||
ActuatorSettingsInitialize();
|
||||
AHRSCalibrationInitialize();
|
||||
AHRSSettingsInitialize();
|
||||
AhrsStatusInitialize();
|
||||
AttitudeActualInitialize();
|
||||
AttitudeDesiredInitialize();
|
||||
AttitudeRawInitialize();
|
||||
BaroAltitudeInitialize();
|
||||
BatterySettingsInitialize();
|
||||
FirmwareIAPObjInitialize();
|
||||
FlightBatteryStateInitialize();
|
||||
FlightPlanControlInitialize();
|
||||
FlightPlanSettingsInitialize();
|
||||
FlightPlanStatusInitialize();
|
||||
FlightTelemetryStatsInitialize();
|
||||
GCSTelemetryStatsInitialize();
|
||||
GPSPositionInitialize();
|
||||
GPSSatellitesInitialize();
|
||||
GPSTimeInitialize();
|
||||
GuidanceSettingsInitialize();
|
||||
HomeLocationInitialize();
|
||||
I2CStatsInitialize();
|
||||
ManualControlCommandInitialize();
|
||||
ManualControlSettingsInitialize();
|
||||
MixerSettingsInitialize();
|
||||
MixerStatusInitialize();
|
||||
ObjectPersistenceInitialize();
|
||||
PipXtremeModemSettingsInitialize();
|
||||
PipXtremeModemStatusInitialize();
|
||||
PositionActualInitialize();
|
||||
PositionDesiredInitialize();
|
||||
RateDesiredInitialize();
|
||||
StabilizationSettingsInitialize();
|
||||
SystemAlarmsInitialize();
|
||||
SystemSettingsInitialize();
|
||||
SystemStatsInitialize();
|
||||
TaskInfoInitialize();
|
||||
TelemetrySettingsInitialize();
|
||||
VelocityActualInitialize();
|
||||
VelocityDesiredInitialize();
|
||||
WatchdogStatusInitialize();
|
||||
|
||||
}
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup VelocityActual VelocityActual
|
||||
* @brief Updated by @ref AHRSCommsModule and used within @ref GuidanceModulefor velocity control
|
||||
*
|
||||
* Autogenerated files and functions for VelocityActual Object
|
||||
* @{
|
||||
*
|
||||
* @file velocityactual.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the VelocityActual object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: velocityactual.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "velocityactual.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t VelocityActualInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(VELOCITYACTUAL_OBJID, VELOCITYACTUAL_NAME, VELOCITYACTUAL_METANAME, 0,
|
||||
VELOCITYACTUAL_ISSINGLEINST, VELOCITYACTUAL_ISSETTINGS, VELOCITYACTUAL_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
VelocityActualData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(VelocityActualData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle VelocityActualHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup VelocityDesired VelocityDesired
|
||||
* @brief Used within @ref GuidanceModule to communicate between the task computing the desired velocity and the PID loop to achieve it (running at different rates).
|
||||
*
|
||||
* Autogenerated files and functions for VelocityDesired Object
|
||||
* @{
|
||||
*
|
||||
* @file velocitydesired.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the VelocityDesired object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: velocitydesired.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "velocitydesired.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t VelocityDesiredInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(VELOCITYDESIRED_OBJID, VELOCITYDESIRED_NAME, VELOCITYDESIRED_METANAME, 0,
|
||||
VELOCITYDESIRED_ISSINGLEINST, VELOCITYDESIRED_ISSETTINGS, VELOCITYDESIRED_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
VelocityDesiredData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(VelocityDesiredData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 1000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 1000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle VelocityDesiredHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
@ -1,111 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @addtogroup UAVObjects OpenPilot UAVObjects
|
||||
* @{
|
||||
* @addtogroup WatchdogStatus WatchdogStatus
|
||||
* @brief For monitoring the flags in the watchdog and especially the bootup flags
|
||||
*
|
||||
* Autogenerated files and functions for WatchdogStatus Object
|
||||
* @{
|
||||
*
|
||||
* @file watchdogstatus.c
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
||||
* @brief Implementation of the WatchdogStatus object. This file has been
|
||||
* automatically generated by the UAVObjectGenerator.
|
||||
*
|
||||
* @note Object definition file: watchdogstatus.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
|
||||
*/
|
||||
|
||||
#include "openpilot.h"
|
||||
#include "watchdogstatus.h"
|
||||
|
||||
// Private variables
|
||||
static UAVObjHandle handle;
|
||||
|
||||
// Private functions
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId);
|
||||
|
||||
/**
|
||||
* Initialize object.
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t WatchdogStatusInitialize()
|
||||
{
|
||||
// Register object with the object manager
|
||||
handle = UAVObjRegister(WATCHDOGSTATUS_OBJID, WATCHDOGSTATUS_NAME, WATCHDOGSTATUS_METANAME, 0,
|
||||
WATCHDOGSTATUS_ISSINGLEINST, WATCHDOGSTATUS_ISSETTINGS, WATCHDOGSTATUS_NUMBYTES, &setDefaults);
|
||||
|
||||
// Done
|
||||
if (handle != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize object fields and metadata with the default values.
|
||||
* If a default value is not specified the object fields
|
||||
* will be initialized to zero.
|
||||
*/
|
||||
static void setDefaults(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
WatchdogStatusData data;
|
||||
UAVObjMetadata metadata;
|
||||
|
||||
// Initialize object fields to their default values
|
||||
UAVObjGetInstanceData(obj, instId, &data);
|
||||
memset(&data, 0, sizeof(WatchdogStatusData));
|
||||
|
||||
UAVObjSetInstanceData(obj, instId, &data);
|
||||
|
||||
// Initialize object metadata to their default values
|
||||
metadata.access = ACCESS_READWRITE;
|
||||
metadata.gcsAccess = ACCESS_READWRITE;
|
||||
metadata.telemetryAcked = 0;
|
||||
metadata.telemetryUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.telemetryUpdatePeriod = 5000;
|
||||
metadata.gcsTelemetryAcked = 0;
|
||||
metadata.gcsTelemetryUpdateMode = UPDATEMODE_MANUAL;
|
||||
metadata.gcsTelemetryUpdatePeriod = 0;
|
||||
metadata.loggingUpdateMode = UPDATEMODE_PERIODIC;
|
||||
metadata.loggingUpdatePeriod = 5000;
|
||||
UAVObjSetMetadata(obj, &metadata);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object handle
|
||||
*/
|
||||
UAVObjHandle WatchdogStatusHandle()
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user