From 79a4bc6ea413c157eb5eaeb8820bf6eb6ea2e05c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Sep 2013 11:43:59 +1000 Subject: [PATCH] AP_Vehicle: added new header for parameters in multiple libraries this adds a header where we can put vehicle specific parameters that will be used in multiple libraries --- libraries/AP_Vehicle/AP_Vehicle.h | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libraries/AP_Vehicle/AP_Vehicle.h diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h new file mode 100644 index 00000000000..7fc9a508db4 --- /dev/null +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -0,0 +1,40 @@ +/* + 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 . + */ +#ifndef AP_VEHICLE_H +#define AP_VEHICLE_H +/* + this header holds a parameter structure for each vehicle type for + parameters needed by multiple libraries + */ + +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; + AP_Int16 airspeed_min; + AP_Int16 airspeed_max; + AP_Int16 pitch_limit_max_cd; + AP_Int16 pitch_limit_min_cd; + }; +}; + +#endif // AP_VEHICLE_H