1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Adding test for the downwards thrust direction logic added in

495c6b8f73.
This commit is contained in:
Dominic Clifton 2014-05-05 17:06:20 +01:00
parent f268c9c4f2
commit ddd322fb9f
11 changed files with 193 additions and 23 deletions

View file

@ -28,8 +28,6 @@ enum {
#define ANGLE_INDEX_COUNT 2
extern int16_t angle[ANGLE_INDEX_COUNT]; // see angle_index_t
// See http://en.wikipedia.org/wiki/Flight_dynamics
enum {
FD_ROLL = 0,
@ -82,6 +80,20 @@ typedef union {
rollAndPitchTrims_t_def trims;
} rollAndPitchTrims_t;
typedef struct angleInclinations_s {
// absolute angle inclination in multiple of 0.1 degree 180 deg = 1800
int16_t rollDeciDegrees;
int16_t pitchDeciDegrees;
} angleInclinations_t_def;
typedef union {
int16_t raw[ANGLE_INDEX_COUNT];
angleInclinations_t_def angles;
} angleInclinations_t;
extern angleInclinations_t angle;
extern int16_t gyroData[FLIGHT_DYNAMICS_INDEX_COUNT];
extern int16_t gyroZero[FLIGHT_DYNAMICS_INDEX_COUNT];