APM:Libraries
Variables
SIM_FlightAxis.cpp File Reference
#include "SIM_FlightAxis.h"
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <AP_HAL/AP_HAL.h>
#include <DataFlash/DataFlash.h>
#include "pthread.h"
Include dependency graph for SIM_FlightAxis.cpp:

Go to the source code of this file.

Variables

const AP_HAL::HALhal
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 
struct {
   const char *   name
 
   float   value
 
sim_defaults []
 

Variable Documentation

◆ hal

const AP_HAL::HAL& 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 AC_PID_test.cpp.

◆ name

const char* name

Definition at line 41 of file SIM_FlightAxis.cpp.

Referenced by SITL::FlightAxis::FlightAxis().

◆ sim_defaults

const { ... } sim_defaults[]
Initial value:
= {
{ "AHRS_EKF_TYPE", 10 },
{ "INS_GYR_CAL", 0 },
{ "SERVO1_MIN", 1000 },
{ "SERVO1_MAX", 2000 },
{ "SERVO2_MIN", 1000 },
{ "SERVO2_MAX", 2000 },
{ "SERVO3_MIN", 1000 },
{ "SERVO3_MAX", 2000 },
{ "SERVO4_MIN", 1000 },
{ "SERVO4_MAX", 2000 },
{ "SERVO5_MIN", 1000 },
{ "SERVO5_MAX", 2000 },
{ "SERVO6_MIN", 1000 },
{ "SERVO6_MAX", 2000 },
{ "SERVO6_MIN", 1000 },
{ "SERVO6_MAX", 2000 },
{ "INS_ACC2OFFS_X", 0.001 },
{ "INS_ACC2OFFS_Y", 0.001 },
{ "INS_ACC2OFFS_Z", 0.001 },
{ "INS_ACC2SCAL_X", 1.001 },
{ "INS_ACC2SCAL_Y", 1.001 },
{ "INS_ACC2SCAL_Z", 1.001 },
{ "INS_ACCOFFS_X", 0.001 },
{ "INS_ACCOFFS_Y", 0.001 },
{ "INS_ACCOFFS_Z", 0.001 },
{ "INS_ACCSCAL_X", 1.001 },
{ "INS_ACCSCAL_Y", 1.001 },
{ "INS_ACCSCAL_Z", 1.001 },
}

Referenced by SITL::FlightAxis::FlightAxis().

◆ value

float value

Definition at line 42 of file SIM_FlightAxis.cpp.

Referenced by _atob(), AP_Compass_LSM9DS1::_check_id(), AP_RangeFinder_Bebop::_get_mav_distance_sensor_type(), ChibiOS::SoftSigReaderInt::_irq_handler(), F4Light::PPM_parser::_process_ppmsum_pulse(), HALSITL::SITL_State::_set_param_default(), AP_RCProtocol_DSM::AP_RCProtocol_DSM(), AP_BoardConfig::board_setup_sbus(), AP_Param::count_embedded_param_defaults(), SITL::XPlane::create(), ChibiOS::RCOutput::dshot_send(), dsm_decode(), AP_RCProtocol_DSM::dsm_decode(), AP_RCProtocol_DSM::dsm_guess_format(), dsm_guess_format(), AC_Fence::enable(), exti_out_mode(), SITL::FlightAxis::FlightAxis(), Linux::Storage::from(), Linux::GPIO_Sysfs::from(), HALSITL::GPIO::GPIO(), AP_RangeFinder_VL53L0X::init(), F4Light::GPIO::init(), GCS::instance(), is_equal(), is_negative(), is_positive(), is_zero(), AP_OpticalFlow_Pixart::load_configuration(), AP_Param::load_embedded_param_defaults(), DataFlash_Backend::Log_Write_Parameter(), loop(), AP_Param::parse_param_line(), AP_HAL::GPIO::pinMode(), print_vprintf(), GCS_MAVLINK::queued_param_send(), RC_Channels::rc_channel(), Linux::GPIO_RPI::read(), DataFlash_Backend::remote_log_block_status_msg(), DigitalLPF< Vector2f >::reset(), sbus_decode(), AP_RCProtocol_SBUS::sbus_decode(), SITL::XPlane::send_dref(), AP_Param::set_hide_disabled_groups(), SRV_Channels::set_output_scaled(), SRV_Channels::set_reversible_throttle(), AC_AttitudeControl_Multi::set_throttle_mix_value(), StorageAccess::size(), AP_BoardConfig::spi_check_register(), sumd_crc8(), AP_Baro_FBM320::timer(), timer_set_compare(), timer_set_count(), AP_SBusOut::update(), AP_Volz_Protocol::update(), Empty::DigitalSource::write(), VRBRAIN::VRBRAINDigitalSource::write(), PX4::PX4DigitalSource::write(), F4Light::Storage::write_byte(), and DataFlash_Class::WritesEnabled().