APM:Libraries
Functions | Variables
AnalogIn.cpp File Reference
#include <AP_HAL/AP_HAL.h>
Include dependency graph for AnalogIn.cpp:

Go to the source code of this file.

Functions

void setup ()
 
void loop ()
 
 AP_HAL_MAIN ()
 

Variables

const AP_HAL::HALhal = AP_HAL::get_HAL()
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- More...
 
AP_HAL::AnalogSourcechan
 
static int8_t pin
 

Function Documentation

◆ AP_HAL_MAIN()

AP_HAL_MAIN ( )

Referenced by loop().

Here is the caller graph for this function:

◆ loop()

void loop ( void  )

Definition at line 17 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ setup()

void setup ( void  )

Definition at line 10 of file AnalogIn.cpp.

Here is the call graph for this function:

Variable Documentation

◆ chan

Definition at line 8 of file AnalogIn.cpp.

Referenced by AP_Motors::add_motor_num(), AP_Camera::AP_Camera(), AP_Mount_Alexmos::AP_Mount_Alexmos(), ChibiOS::SoftSigReader::attach_capture_timer(), AP_Tuning::check_input(), Compass::compass_cal_requires_reboot(), AP_Mount::control_msg(), SRV_Channels::get_channel_for(), AP_Airspeed::get_EAS2TAS(), ChibiOS::SoftSigReaderInt::get_instance(), AP_GPS::get_lag(), AP_AHRS_NavEKF::get_NavEKF3_const(), DataFlash_MAVLink::get_num_logs(), SRV_Channels::get_output_norm(), SRV_Channels::get_output_pwm(), AP_Motors::get_pwm_type(), RC_Channels::get_radio_in(), DataFlash_MAVLink::handle_ack(), AP_Mount_Servo::has_pan_control(), AP_Mount_SToRM32::init(), ChibiOS::SoftSigReaderInt::init(), ChibiOS::AnalogIn::init(), AP_Radio::instance(), GCS_MAVLINK::load_signing_key(), AP_RCProtocol::protocol_detected(), RC_Channels::rc_channel(), AP_RCProtocol_Backend::read(), GCS_MAVLINK::save_signing_timestamp(), ChibiOS::RCOutput::scale_esc_to_unity(), DataFlash_MAVLink::send_log_block(), AP_GPS::send_mavlink_gps2_raw(), AP_GPS::send_mavlink_gps_raw(), AP_Button::send_report(), SoloGimbal_Parameters::set_channel(), SRV_Channels::set_default_function(), SRV_Channels::set_esc_scaling_for(), SRV_Channels::set_output_pwm_chan(), SRV_Channels::set_reversible_throttle(), NavEKF3::setInhibitGpsVertVelUse(), NavEKF2::setInhibitGpsVertVelUse(), GCS_MAVLINK::signing_enabled(), AP_GPS_Backend::supports_mavlink_gps_rtk_message(), GCS_MAVLINK::update_signing_timestamp(), and valid_channel().

◆ hal

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 6 of file AnalogIn.cpp.

◆ pin

int8_t pin
static