APM:Libraries
|
Go to the source code of this file.
Functions | |
AP_HAL::OwnPtr< AP_HAL::Device > | get_device (const char *name) |
void | setup (void) |
void | loop (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... | |
struct { | |
const char * name | |
uint8_t whoami_reg | |
} | whoami_list [] |
AP_HAL_MAIN | ( | ) |
AP_HAL::OwnPtr<AP_HAL::Device> get_device | ( | const char * | name | ) |
Definition at line 22 of file BusTest.cpp.
Referenced by PX4::I2CDeviceManager::from(), VRBRAIN::I2CDeviceManager::from(), Linux::I2CDeviceManager::from(), VRBRAIN::SPIDeviceManager::from(), PX4::SPIDeviceManager::from(), ChibiOS::I2CDeviceManager::from(), ChibiOS::SPIDeviceManager::from(), Linux::I2CDeviceManager::get_device(), loop(), and Linux::SPIDeviceManager::SPIDeviceManager().
void loop | ( | void | ) |
void setup | ( | void | ) |
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 8 of file BusTest.cpp.
const char* name |
Definition at line 11 of file BusTest.cpp.
Referenced by AP_Baro_MS56XX::_init(), VRBRAIN::VRBRAINScheduler::_storage_thread(), PX4::PX4Scheduler::_storage_thread(), HALSITL::SITL_State::base_port(), PX4::DeviceBus::bus_thread(), VRBRAIN::DeviceBus::bus_thread(), AP_Param::check_group_info(), AP_Param::check_var_info(), AP_BattMonitor::convert_params(), SITL::XPlane::create(), PX4::SPIDeviceManager::from(), VRBRAIN::SPIDeviceManager::from(), ChibiOS::SPIDeviceManager::from(), F4Light::SPIDeviceManager::get_device(), VRBRAIN::VRBRAINUtil::get_shell_stream(), PX4::PX4Util::get_shell_stream(), AP_BoardConfig::in_sensor_config_error(), Linux::Scheduler::init(), GCS::instance(), DataFlash_Backend::Log_Write_Parameter(), DataFlash_Class::Log_Write_POS(), loop(), DataFlash_Class::msg_fmt_for_name(), AP_Param::notify(), ChibiOS::DeviceBus::register_periodic_callback(), Linux::SPIDevice::register_periodic_callback(), Linux::I2CDevice::register_periodic_callback(), DataFlash_Backend::remote_log_block_status_msg(), AP_Scheduler::run(), AP_Param::save(), Linux::SPIDeviceManager::SPIDeviceManager(), st_clust(), DataFlash_Class::validate_structure(), DataFlash_Class::WritesEnabled(), and Linux::Thread::~Thread().
struct { ... } whoami_list[] |
Referenced by loop().
uint8_t whoami_reg |
Definition at line 12 of file BusTest.cpp.