19 changed files with 292 additions and 207 deletions
@ -0,0 +1,104 @@
@@ -0,0 +1,104 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions |
||||
* are met: |
||||
* |
||||
* 1. Redistributions of source code must retain the above copyright |
||||
* notice, this list of conditions and the following disclaimer. |
||||
* 2. Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in |
||||
* the documentation and/or other materials provided with the |
||||
* distribution. |
||||
* 3. Neither the name PX4 nor the names of its contributors may be |
||||
* used to endorse or promote products derived from this software |
||||
* without specific prior written permission. |
||||
* |
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
* POSSIBILITY OF SUCH DAMAGE. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#include <systemlib/param/param.h> |
||||
|
||||
/**
|
||||
* MAVLink system ID |
||||
* @group MAVLink |
||||
* @min 1 |
||||
* @max 250 |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_SYS_ID, 1); |
||||
|
||||
/**
|
||||
* MAVLink component ID |
||||
* @group MAVLink |
||||
* @min 1 |
||||
* @max 250 |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_COMP_ID, 1); |
||||
|
||||
/**
|
||||
* MAVLink Radio ID |
||||
* |
||||
* When non-zero the MAVLink app will attempt to configure the |
||||
* radio to this ID and re-set the parameter to 0. If the value |
||||
* is negative it will reset the complete radio config to |
||||
* factory defaults. |
||||
* |
||||
* @group MAVLink |
||||
* @min -1 |
||||
* @max 240 |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_RADIO_ID, 0); |
||||
|
||||
/**
|
||||
* MAVLink airframe type |
||||
* |
||||
* @min 1 |
||||
* @group MAVLink |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_TYPE, 1); |
||||
|
||||
/**
|
||||
* Use/Accept HIL GPS message even if not in HIL mode |
||||
* |
||||
* If set to 1 incoming HIL GPS messages are parsed. |
||||
* |
||||
* @group MAVLink |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_USEHILGPS, 0); |
||||
|
||||
/**
|
||||
* Forward external setpoint messages |
||||
* |
||||
* If set to 1 incoming external setpoint messages will be directly forwarded |
||||
* to the controllers if in offboard control mode |
||||
* |
||||
* @group MAVLink |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_FWDEXTSP, 1); |
||||
|
||||
/**
|
||||
* Test parameter |
||||
* |
||||
* This parameter is not actively used by the system. Its purpose is to allow |
||||
* testing the parameter interface on the communication level. |
||||
* |
||||
* @group MAVLink |
||||
* @min -1000 |
||||
* @max 1000 |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_TEST_PAR, 1); |
||||
|
@ -0,0 +1,77 @@
@@ -0,0 +1,77 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions |
||||
* are met: |
||||
* |
||||
* 1. Redistributions of source code must retain the above copyright |
||||
* notice, this list of conditions and the following disclaimer. |
||||
* 2. Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in |
||||
* the documentation and/or other materials provided with the |
||||
* distribution. |
||||
* 3. Neither the name PX4 nor the names of its contributors may be |
||||
* used to endorse or promote products derived from this software |
||||
* without specific prior written permission. |
||||
* |
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
* POSSIBILITY OF SUCH DAMAGE. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#include <systemlib/param/param.h> |
||||
|
||||
/**
|
||||
* Logging rate. |
||||
* |
||||
* A value of -1 indicates the commandline argument |
||||
* should be obeyed. A value of 0 sets the minimum rate, |
||||
* any other value is interpreted as rate in Hertz. This |
||||
* parameter is only read out before logging starts (which |
||||
* commonly is before arming). |
||||
* |
||||
* @min -1 |
||||
* @max 1 |
||||
* @group SD Logging |
||||
*/ |
||||
PARAM_DEFINE_INT32(SDLOG_RATE, -1); |
||||
|
||||
/**
|
||||
* Enable extended logging mode. |
||||
* |
||||
* A value of -1 indicates the commandline argument |
||||
* should be obeyed. A value of 0 disables extended |
||||
* logging mode, a value of 1 enables it. This |
||||
* parameter is only read out before logging starts |
||||
* (which commonly is before arming). |
||||
* |
||||
* @min -1 |
||||
* @max 1 |
||||
* @group SD Logging |
||||
*/ |
||||
PARAM_DEFINE_INT32(SDLOG_EXT, -1); |
||||
|
||||
/**
|
||||
* Use timestamps only if GPS 3D fix is available |
||||
* |
||||
* A value of 1 constrains the log folder creation |
||||
* to only use the time stamp if a 3D GPS lock is |
||||
* present. |
||||
* |
||||
* @min 0 |
||||
* @max 1 |
||||
* @group SD Logging |
||||
*/ |
||||
PARAM_DEFINE_INT32(SDLOG_GPSTIME, 1); |
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
/****************************************************************************
|
||||
* Copyright (C) 2015 Mark Charlebois. All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions |
||||
* are met: |
||||
* |
||||
* 1. Redistributions of source code must retain the above copyright |
||||
* notice, this list of conditions and the following disclaimer. |
||||
* 2. Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in |
||||
* the documentation and/or other materials provided with the |
||||
* distribution. |
||||
* 3. Neither the name PX4 nor the names of its contributors may be |
||||
* used to endorse or promote products derived from this software |
||||
* without specific prior written permission. |
||||
* |
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
* POSSIBILITY OF SUCH DAMAGE. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
#include <systemlib/param/param.h> |
||||
|
||||
// This is added because it is a parameter used by commander, yet created by mavlink. Since mavlink is not
|
||||
// running on QURT, we need to manually define it so it is available to commander. "2" is for quadrotor.
|
||||
|
||||
// Following is hack to prevent duplicate parameter definition error in param parser
|
||||
/**
|
||||
* @board QuRT_App |
||||
*/ |
||||
PARAM_DEFINE_INT32(MAV_TYPE,2); |
||||
|
Loading…
Reference in new issue