APM:Libraries
|
Go to the source code of this file.
Macros | |
#define | SHOW_POLES_BREAKDOWN 0 |
Functions | |
void | setup () |
void | loop () |
void | test_matrix_rotate (void) |
void | test_frame_transforms (void) |
void | test_conversions (void) |
void | test_quaternion_eulers (void) |
void | test_matrix_eulers (void) |
static float | rad_diff (float rad1, float rad2) |
static void | check_result (const char *msg, float roll, float pitch, float yaw, float roll2, float pitch2, float yaw2) |
static void | test_euler (float roll, float pitch, float yaw) |
static void | test_quaternion (float roll, float pitch, float yaw) |
static void | test_conversion (float roll, float pitch, float yaw) |
static float | rand_num (void) |
AP_HAL_MAIN () | |
Variables | |
const AP_HAL::HAL & | hal = AP_HAL::get_HAL() |
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More... | |
static const float | angles [] |
#define SHOW_POLES_BREAKDOWN 0 |
Definition at line 18 of file eulers.cpp.
AP_HAL_MAIN | ( | ) |
|
static |
Definition at line 32 of file eulers.cpp.
Referenced by test_conversion(), test_euler(), and test_quaternion().
void loop | ( | void | ) |
|
static |
Definition at line 20 of file eulers.cpp.
Referenced by check_result().
|
static |
Definition at line 244 of file eulers.cpp.
Referenced by test_matrix_rotate().
void setup | ( | void | ) |
|
static |
Definition at line 164 of file eulers.cpp.
Referenced by setup(), and test_conversions().
void test_conversions | ( | void | ) |
Definition at line 192 of file eulers.cpp.
Referenced by setup().
|
static |
Definition at line 80 of file eulers.cpp.
Referenced by test_matrix_eulers().
void test_frame_transforms | ( | void | ) |
Definition at line 212 of file eulers.cpp.
Referenced by setup().
void test_matrix_eulers | ( | void | ) |
Definition at line 93 of file eulers.cpp.
Referenced by setup().
void test_matrix_rotate | ( | void | ) |
Definition at line 249 of file eulers.cpp.
Referenced by setup().
|
static |
Definition at line 107 of file eulers.cpp.
Referenced by test_quaternion_eulers().
void test_quaternion_eulers | ( | void | ) |
Definition at line 131 of file eulers.cpp.
Referenced by setup().
|
static |
Definition at line 90 of file eulers.cpp.
Referenced by AP_MotorsHeli_Quad::calculate_roll_pitch_collective_factors(), test_conversions(), test_matrix_eulers(), and test_quaternion_eulers().
const AP_HAL::HAL& hal = AP_HAL::get_HAL() |
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
The strategy for roll/pitch autotune is to give the user a AUTOTUNE flight mode which behaves just like FBWA, but does automatic tuning.
While the user is flying in AUTOTUNE the gains are saved every 10 seconds, but the saved gains are not the current gains, instead it saves the gains from 10s ago. When the user exits AUTOTUNE the gains are restored from 10s ago.
This allows the user to fly as much as they want in AUTOTUNE mode, and if they are ever unhappy they just exit the mode. If they stay in AUTOTUNE for more than 10s then their gains will have changed.
Using this approach users don't need any special switches, they just need to be able to enter and exit AUTOTUNE mode
Definition at line 16 of file eulers.cpp.