AT32F435 SD card support (#14018)
[betaflight.git] / src / main / pg / pos_hold_multirotor.c
blob2a7a33224101b13329de5a31823919be67d1f0d0
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 #include "platform.h"
24 #ifndef USE_WING
26 #ifdef USE_POSITION_HOLD
28 #include "flight/pos_hold.h"
30 #include "pg/pg.h"
31 #include "pg/pg_ids.h"
33 #include "pos_hold.h"
35 PG_REGISTER_WITH_RESET_TEMPLATE(posHoldConfig_t, posHoldConfig, PG_POSHOLD_CONFIG, 0);
37 PG_RESET_TEMPLATE(posHoldConfig_t, posHoldConfig,
38 .pos_hold_without_mag = false, // position hold within this percentage stick deflection
39 .pos_hold_deadband = 5, // deadband in percent of stick travel for roll and pitch. Must be non-zero, and exceeded, for target location to be changed with sticks
41 #endif
43 #endif // !USE_WING