update serTcpOpen declaration to fix compile errors (#14113)
[betaflight.git] / src / main / pg / autopilot.h
blob018498dfba6d7e51c520527f2fe0377949305877
1 /*
2 * This file is part of Betaflight.
4 * Betaflight is free software. You can redistribute this software
5 * and/or modify this software under the terms of the GNU General
6 * Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or (at your option) any later
8 * version.
10 * Betaflight is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this software.
19 * If not, see <http://www.gnu.org/licenses/>.
22 #pragma once
24 #include <stdint.h>
26 #include "pg/pg.h"
28 typedef struct apConfig_s {
29 uint8_t landing_altitude_m; // altitude below which landing behaviours can change, metres
30 uint16_t hover_throttle; // value used at the start of a rescue or position hold
31 uint16_t throttle_min;
32 uint16_t throttle_max;
33 uint8_t altitude_P;
34 uint8_t altitude_I;
35 uint8_t altitude_D;
36 uint8_t altitude_F;
37 uint8_t position_P;
38 uint8_t position_I;
39 uint8_t position_D;
40 uint8_t position_A;
41 uint8_t position_cutoff;
42 uint8_t max_angle;
43 } apConfig_t;
45 PG_DECLARE(apConfig_t, apConfig);