NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rate_profile.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 #define MAX_CONTROL_RATE_PROFILE_COUNT 1
25 
26 struct rate_profile {
27  uint8_t rcRate8;
28  uint8_t rcExpo8;
29  uint8_t thrMid8;
30  uint8_t thrExpo8;
31  uint8_t rates[3];
32  uint8_t dynThrPID;
33  uint8_t rcYawExpo8;
34  uint16_t tpa_breakpoint; // Breakpoint at which TPA is activated
35 } __attribute__((packed)) ;
36 
38  uint8_t profile_id;
39 } __attribute__((packed)) ;
40 
41 struct rate_config {
43 } __attribute__((packed)) ;
44 
uint8_t rcYawExpo8
Definition: rate_profile.h:33
Definition: rate_profile.h:41
uint8_t rcRate8
Definition: rate_profile.h:27
uint8_t rates[3]
Definition: rate_profile.h:31
uint8_t dynThrPID
Definition: rate_profile.h:32
uint8_t thrMid8
Definition: rate_profile.h:29
#define MAX_CONTROL_RATE_PROFILE_COUNT
Definition: rate_profile.h:24
uint8_t thrExpo8
Definition: rate_profile.h:30
uint16_t tpa_breakpoint
Definition: rate_profile.h:34
uint8_t rcExpo8
Definition: rate_profile.h:28
Definition: rate_profile.h:26
struct rate_profile __attribute__((packed))
uint8_t profile_id
Definition: rate_profile.h:38
Definition: rate_profile.h:37
struct rate_profile profile[MAX_CONTROL_RATE_PROFILE_COUNT]
Definition: rate_profile.h:42