APM:Libraries
|
#include <stdio.h>
#include <unistd.h>
#include <AP_Common/AP_Common.h>
#include <AP_HAL_Linux/AP_HAL_Linux.h>
#include <AP_Menu/AP_Menu.h>
Go to the source code of this file.
Classes | |
class | MenuCommands |
Macros | |
#define | MENU_FUNC(func) FUNCTOR_BIND(&commands, &MenuCommands::func, int8_t, uint8_t, const Menu::arg *) |
Functions | |
void | setup () |
void | loop () |
int | parse_gpio_pin_number (uint8_t argc, const Menu::arg *argv) |
static int8_t | test_gpio_input (uint8_t argc, const Menu::arg *argv, bool use_channel) |
static int8_t | test_gpio_output (uint8_t argc, const Menu::arg *argv, bool use_channel) |
MENU (main_menu, "GPIOTest: Please select one of the operations followed by the GPIO pin number", test_menu_commands) | |
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... | |
MenuCommands | commands |
const struct Menu::command | test_menu_commands [] |
#define MENU_FUNC | ( | func | ) | FUNCTOR_BIND(&commands, &MenuCommands::func, int8_t, uint8_t, const Menu::arg *) |
Definition at line 12 of file GPIOTest.cpp.
AP_HAL_MAIN | ( | ) |
void loop | ( | void | ) |
MENU | ( | main_menu | , |
"GPIOTest: Please select one of the operations followed by the GPIO pin number" | , | ||
test_menu_commands | |||
) |
int parse_gpio_pin_number | ( | uint8_t | argc, |
const Menu::arg * | argv | ||
) |
Definition at line 16 of file GPIOTest.cpp.
Referenced by test_gpio_input(), and test_gpio_output().
void setup | ( | void | ) |
|
static |
Definition at line 31 of file GPIOTest.cpp.
Referenced by MenuCommands::gpio_input(), and MenuCommands::gpio_input_channel().
|
static |
Definition at line 52 of file GPIOTest.cpp.
Referenced by MenuCommands::gpio_output(), and MenuCommands::gpio_output_channel().
MenuCommands commands |
Definition at line 102 of file GPIOTest.cpp.
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 14 of file GPIOTest.cpp.
const struct Menu::command test_menu_commands[] |