NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tilt.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 MIXER_TILT_COMPENSATE_THRUST (1 << 0)
25 #define MIXER_TILT_COMPENSATE_TILT (1 << 1)
26 #define MIXER_TILT_COMPENSATE_BODY (1 << 2)
27 
29 typedef enum {
33 
34 struct tilt_config {
35  uint8_t mode;
37  uint8_t control_channel;
40 } __attribute__((packed)) ;
41 
Definition: tilt.h:30
uint8_t compensation_flags
Definition: tilt.h:36
int8_t servo_angle_min
Definition: tilt.h:38
int8_t servo_angle_max
Definition: tilt.h:39
uint8_t control_channel
Definition: tilt.h:37
uint8_t mode
Definition: tilt.h:35
Definition: tilt.h:31
mixer_tilt_mode_t
mixer tilt mode type
Definition: tilt.h:29
Definition: tilt.h:34
typedef __attribute__