NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gtune.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Copyright: collective.
5  * Cleanup: Martin Schröder <mkschreder.uk@gmail.com>
6  * Original source from Cleanflight.
7  *
8  * Ninjaflight is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * Ninjaflight is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #pragma once
23 
24 #include "../common/axis.h"
25 
26 struct gtune_config {
27  uint8_t gtune_lolimP[FD_INDEX_COUNT]; // [0..200] Lower limit of P during G tune
28  uint8_t gtune_hilimP[FD_INDEX_COUNT]; // [0..200] Higher limit of P during G tune. 0 Disables tuning for that axis.
29  uint8_t gtune_pwr; // [0..10] Strength of adjustment
30  uint16_t gtune_settle_time; // [200..1000] Settle time in ms
31  uint8_t gtune_average_cycles; // [8..128] Number of looptime cycles used for gyro average calculation
32 } __attribute__((packed)) ;
33 
uint16_t gtune_settle_time
Definition: gtune.h:30
uint8_t gtune_hilimP[FD_INDEX_COUNT]
Definition: gtune.h:28
Definition: gtune.h:26
Definition: axis.h:33
uint8_t gtune_average_cycles
Definition: gtune.h:31
uint8_t gtune_lolimP[FD_INDEX_COUNT]
Definition: gtune.h:27
uint8_t gtune_pwr
Definition: gtune.h:29
struct gtune_config __attribute__((packed))