mirror of https://github.com/ArduPilot/ardupilot
AP_Landing: add new library for fixed wing landing abstraction
This commit is contained in:
parent
ce8db1fdba
commit
61b02cb41d
|
@ -91,6 +91,7 @@
|
|||
#include <AP_ADSB/AP_ADSB.h>
|
||||
#include <AP_Button/AP_Button.h>
|
||||
#include <AP_ICEngine/AP_ICEngine.h>
|
||||
#include <AP_Landing/AP_Landing.h>
|
||||
|
||||
#include "GCS_Mavlink.h"
|
||||
#include "quadplane.h"
|
||||
|
@ -649,6 +650,8 @@ private:
|
|||
AP_Terrain terrain {ahrs, mission, rally};
|
||||
#endif
|
||||
|
||||
AP_Landing landing {mission};
|
||||
|
||||
AP_ADSB adsb {ahrs};
|
||||
|
||||
// avoidance of adsb enabled vehicles (normally manned vheicles)
|
||||
|
|
|
@ -60,3 +60,4 @@ LIBRARIES += AC_Avoidance
|
|||
LIBRARIES += AP_Proximity
|
||||
LIBRARIES += AP_Tuning
|
||||
LIBRARIES += AP_Stats
|
||||
LIBRARIES += AP_Landing
|
||||
|
|
|
@ -31,6 +31,7 @@ def build(bld):
|
|||
'AC_Avoidance',
|
||||
'AP_Proximity',
|
||||
'AP_Stats',
|
||||
'AP_Landing',
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* AP_Landing.cpp - Landing logic handler for ArduPlane
|
||||
*/
|
||||
|
||||
#include "AP_Landing.h"
|
||||
|
||||
// table of user settable parameters
|
||||
const AP_Param::GroupInfo AP_Landing::var_info[] = {
|
||||
|
||||
AP_GROUPEND
|
||||
};
|
||||
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_Mission/AP_Mission.h>
|
||||
|
||||
/// @class AP_Landing
|
||||
/// @brief Class managing ArduPlane landing methods
|
||||
class AP_Landing
|
||||
{
|
||||
public:
|
||||
|
||||
// constructor
|
||||
AP_Landing(AP_Mission &_mission) :
|
||||
mission(_mission) {
|
||||
AP_Param::setup_object_defaults(this, var_info);
|
||||
}
|
||||
|
||||
static const struct AP_Param::GroupInfo var_info[];
|
||||
|
||||
private:
|
||||
|
||||
AP_Mission &mission;
|
||||
};
|
Loading…
Reference in New Issue