2013-09-12 22:43:59 -03:00
|
|
|
/*
|
|
|
|
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/>.
|
|
|
|
*/
|
2016-02-17 21:25:52 -04:00
|
|
|
#pragma once
|
|
|
|
|
2013-09-12 22:43:59 -03:00
|
|
|
/*
|
|
|
|
this header holds a parameter structure for each vehicle type for
|
|
|
|
parameters needed by multiple libraries
|
|
|
|
*/
|
|
|
|
|
2015-08-11 03:28:46 -03:00
|
|
|
#include <AP_Param/AP_Param.h>
|
2014-03-25 22:15:45 -03:00
|
|
|
|
2013-09-12 22:43:59 -03:00
|
|
|
class AP_Vehicle {
|
|
|
|
|
|
|
|
public:
|
|
|
|
/*
|
|
|
|
common parameters for fixed wing aircraft
|
|
|
|
*/
|
|
|
|
struct FixedWing {
|
|
|
|
AP_Int8 throttle_min;
|
|
|
|
AP_Int8 throttle_max;
|
|
|
|
AP_Int8 throttle_slewrate;
|
|
|
|
AP_Int8 throttle_cruise;
|
2015-04-15 19:51:30 -03:00
|
|
|
AP_Int8 takeoff_throttle_max;
|
2016-08-07 21:48:12 -03:00
|
|
|
AP_Int16 airspeed_min;
|
|
|
|
AP_Int16 airspeed_max;
|
2016-06-23 09:39:59 -03:00
|
|
|
AP_Int16 roll_limit_cd;
|
2013-09-12 22:43:59 -03:00
|
|
|
AP_Int16 pitch_limit_max_cd;
|
|
|
|
AP_Int16 pitch_limit_min_cd;
|
2014-04-13 09:11:28 -03:00
|
|
|
AP_Int8 autotune_level;
|
2014-08-27 07:11:03 -03:00
|
|
|
AP_Int16 land_pitch_cd;
|
2015-03-14 23:52:34 -03:00
|
|
|
AP_Float land_flare_sec;
|
2016-01-30 02:38:56 -04:00
|
|
|
AP_Float land_pre_flare_airspeed;
|
2014-11-12 23:05:22 -04:00
|
|
|
AP_Int8 stall_prevention;
|
2013-09-12 22:43:59 -03:00
|
|
|
};
|
2013-10-18 05:02:52 -03:00
|
|
|
|
|
|
|
/*
|
|
|
|
common parameters for multicopters
|
|
|
|
*/
|
|
|
|
struct MultiCopter {
|
|
|
|
AP_Int16 angle_max;
|
|
|
|
};
|
2013-09-12 22:43:59 -03:00
|
|
|
};
|
|
|
|
|
2015-05-13 05:32:34 -03:00
|
|
|
|
2015-05-24 20:48:51 -03:00
|
|
|
#include "AP_Vehicle_Type.h"
|