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
#pragma once
2
3
#include <stdint.h>
4
#include "../config/tilt.h"
5
6
struct
tilt_input_params
{
7
int16_t
motor_pitch_dd
;
8
int16_t
body_pitch_dd
;
9
int16_t
roll
;
10
int16_t
pitch
;
11
int16_t
yaw
;
12
int16_t
throttle
;
13
};
14
15
struct
tilt_output_params
{
16
int16_t
roll
;
17
int16_t
pitch
;
18
int16_t
yaw
;
19
int16_t
throttle
;
20
};
21
22
void
tilt_calculate_compensation
(
const
struct
tilt_config
*
tilt
,
const
struct
tilt_input_params
*
input
,
struct
tilt_output_params
*
output
);
tilt_input_params::motor_pitch_dd
int16_t motor_pitch_dd
Definition:
tilt.h:7
tilt_output_params::throttle
int16_t throttle
Definition:
tilt.h:19
tilt_input_params::throttle
int16_t throttle
Definition:
tilt.h:12
output
uint8_t output
Definition:
mixer.h:12
tilt_input_params::yaw
int16_t yaw
Definition:
tilt.h:11
input
uint8_t input
Definition:
mixer.h:13
tilt_output_params::roll
int16_t roll
Definition:
tilt.h:16
tilt_output_params
Definition:
tilt.h:15
tilt_input_params::pitch
int16_t pitch
Definition:
tilt.h:10
tilt
struct tilt_config tilt
Definition:
config.h:118
tilt_output_params::yaw
int16_t yaw
Definition:
tilt.h:18
tilt_input_params::roll
int16_t roll
Definition:
tilt.h:9
tilt_config
Definition:
tilt.h:34
tilt_calculate_compensation
void tilt_calculate_compensation(const struct tilt_config *tilt, const struct tilt_input_params *input, struct tilt_output_params *output)
Definition:
tilt.c:10
tilt_output_params::pitch
int16_t pitch
Definition:
tilt.h:17
tilt_input_params
Definition:
tilt.h:6
tilt_input_params::body_pitch_dd
int16_t body_pitch_dd
Definition:
tilt.h:8
src
main
flight
tilt.h
Generated on Mon Dec 12 2016 15:48:45 for NinjaFlight by
1.8.7