NinjaFlight
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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
{
30
MIXER_TILT_MODE_STATIC
,
31
MIXER_TILT_MODE_DYNAMIC
32
}
mixer_tilt_mode_t
;
33
34
struct
tilt_config
{
35
uint8_t
mode
;
36
uint8_t
compensation_flags
;
37
uint8_t
control_channel
;
38
int8_t
servo_angle_min
;
39
int8_t
servo_angle_max
;
40
}
__attribute__
((packed)) ;
41
MIXER_TILT_MODE_STATIC
Definition:
tilt.h:30
tilt_config::compensation_flags
uint8_t compensation_flags
Definition:
tilt.h:36
tilt_config::servo_angle_min
int8_t servo_angle_min
Definition:
tilt.h:38
tilt_config::servo_angle_max
int8_t servo_angle_max
Definition:
tilt.h:39
tilt_config::control_channel
uint8_t control_channel
Definition:
tilt.h:37
tilt_config::mode
uint8_t mode
Definition:
tilt.h:35
MIXER_TILT_MODE_DYNAMIC
Definition:
tilt.h:31
mixer_tilt_mode_t
mixer_tilt_mode_t
mixer tilt mode type
Definition:
tilt.h:29
tilt_config
Definition:
tilt.h:34
__attribute__
typedef __attribute__
src
main
config
tilt.h
Generated on Mon Dec 12 2016 15:48:45 for NinjaFlight by
1.8.7