APM:Libraries
|
#include <AP_ADC/AP_ADC.h>
#include <AP_Airspeed/AP_Airspeed.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <GCS_MAVLink/GCS_Dummy.h>
Go to the source code of this file.
Classes | |
class | GCS_MAVLINK |
MAVLink transport control class. More... | |
Functions | |
void | setup () |
void | loop () |
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... | |
float | temperature |
AP_Airspeed | airspeed |
static AP_BoardConfig | board_config |
GCS_Dummy | _gcs |
AP_HAL_MAIN | ( | ) |
void loop | ( | void | ) |
void setup | ( | void | ) |
GCS_Dummy _gcs |
Definition at line 81 of file Airspeed.cpp.
AP_Airspeed airspeed |
Definition at line 34 of file Airspeed.cpp.
Referenced by GCS_MAVLINK::_handle_command_preflight_calibration_baro(), HALSITL::SITL_State::_update_airspeed(), AP_Arming::airspeed_checks(), NavEKF2_core::detectFlight(), NavEKF3_core::detectFlight(), AP_AHRS_DCM::drift_correction(), AP_AHRS_DCM::estimate_wind(), AP_AHRS::groundspeed_vector(), AP_Airspeed::last_update_ms(), DataFlash_Class::Log_Write_Airspeed(), AP_Landing_Deepstall::override_servos(), GCS_MAVLINK::send_scaled_pressure(), AP_AHRS::set_airspeed(), AP_Airspeed::set_HIL(), AP_Airspeed::setHIL(), Airspeed_Calibration::update(), GCS_MAVLINK::vfr_hud_airspeed(), and DataFlash_Class::WritesEnabled().
|
static |
Definition at line 35 of file Airspeed.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 30 of file Airspeed.cpp.
float temperature |
Definition at line 32 of file Airspeed.cpp.
Referenced by AP_Baro_MS56XX::_calculate_5607(), AP_Baro_MS56XX::_calculate_5611(), AP_Baro_MS56XX::_calculate_5637(), AP_Baro_MS56XX::_calculate_5837(), AP_Baro_Backend::_copy_to_frontend(), AP_Airspeed_SDP3X::_correct_pressure(), AP_InertialSensor_Backend::_publish_temperature(), AP_InertialSensor_Backend::_set_gyro_raw_sample_rate(), AP_Airspeed_SDP3X::_timer(), AP_Baro_KellerLD::_update_and_wrap_accumulator(), AP_Airspeed::get_airspeed_ratio(), AP_BattMonitor::get_temperature(), AP_BattMonitor_UAVCAN::has_current(), DataFlash_Class::Log_Write_Airspeed(), DataFlash_Class::Log_Write_Baro_instance(), DataFlash_Class::Log_Write_Current_instance(), DataFlash_Class::Log_Write_ESC(), DataFlash_Class::Log_Write_IMU_instance(), loop(), AP_Baro::setHIL(), AP_Baro_FBM320::timer(), AP_Baro_DPS280::timer(), AP_Baro_BMP085::update(), AP_Baro_KellerLD::update(), AP_Airspeed_MS4525::~AP_Airspeed_MS4525(), and AP_Airspeed_SDP3X::~AP_Airspeed_SDP3X().