APM:Libraries
|
Go to the source code of this file.
Functions | |
void | setup () |
void | loop () |
static void | test_printf (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 * fmt | |
float v | |
const char * result | |
} | float_tests [] |
AP_HAL_MAIN | ( | ) |
void loop | ( | void | ) |
void setup | ( | void | ) |
|
static |
Definition at line 50 of file Printf.cpp.
Referenced by loop().
const { ... } float_tests[] |
Referenced by test_printf().
const char* fmt |
Definition at line 14 of file Printf.cpp.
Referenced by atob(), f_mkfs(), find_volume(), GCS::instance(), DataFlash_Backend::Log_Write(), DataFlash_Class::msg_fmt_for_name(), Linux::Util::set_custom_storage_directory(), test_printf(), and DataFlash_Class::WritesEnabled().
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 7 of file Printf.cpp.
const char* result |
Definition at line 16 of file Printf.cpp.
Referenced by GCS_MAVLINK::_set_mode_common(), F4Light::Semaphore::_take_nonblocking(), AP_ADC::AP_ADC(), AverageFilter< int32_t, int32_t, FILTER_SIZE >::apply(), AP_RangeFinder_BBB_PRU::detect(), Linux::Thread::get_stack_usage(), AC_Circle::get_yaw(), GCS_MAVLINK::handle_command_camera(), GCS_MAVLINK::handle_command_long_message(), Compass::handle_mag_cal_command(), GCS_MAVLINK::handle_mission_item(), GCS_MAVLINK::handle_servorelay_message(), GCS_MAVLINK::handle_set_mode(), SITL::Plane::liftCoeff(), AP_BattMonitor::overpower_detected(), AP_Proximity_LightWareSF40C::process_reply(), SITL::Aircraft::rand_normal(), setup(), AP_InertialSensor::simple_accel_cal(), DerivativeFilter< float, 7 >::slope(), test_printf(), and AP_GPS::update_instance().
float v |
Definition at line 15 of file Printf.cpp.
Referenced by PX4::PX4AnalogSource::_add_value(), VRBRAIN::VRBRAINAnalogSource::_add_value(), ChibiOS::AnalogSource::_add_value(), AP_InertialSensor_BMI160::_check_err_reg(), Linux::Perf::_debug_counters(), AP_Compass_LSM9DS1::_dump_registers(), AP_Compass_QMC5883L::_dump_registers(), AP_GeodesicGrid::_from_neighbor_umbrella(), AP_InertialSensor_BMI160::_hardware_init(), F4Light::PPM_parser::_process_dsm_pulse(), Linux::RCInput::_process_dsm_pulse(), F4Light::PPM_parser::_process_sbus_pulse(), Linux::RCInput::_process_sbus_pulse(), HALSITL::UARTDriver::_set_nonblocking(), AP_GeodesicGrid::_subtriangle_index(), Linux::RCInput_ZYNQ::_timer_tick(), AP_GeodesicGrid::_triangle_index(), OpticalFlow_backend::_yawAngleRad(), SRV_Channels::adjust_trim(), atob(), SRV_Channels::auto_trim_enabled(), F4Light::USBDriver::available(), F4Light::UARTDriver::available(), BM_GeodesicGridSections(), AP_HAL::Device::check_next_register(), Vector2< int32_t >::circle_segment_intersection(), Vector2< int32_t >::closest_point(), AP_Param::convert_old_parameter(), DCD_ReadDevInEP(), delay_byte(), Vector3< int32_t >::distance_to_segment(), dsm_decode(), Quaternion::earth_to_body(), f_printf(), SITL::Aircraft::filtered_idx(), SITL::Aircraft::filtered_servo_angle(), SITL::Aircraft::filtered_servo_range(), AP_Param::find_group(), MatrixN< float, N >::force_symmetry(), Matrix3< float >::from_axis_angle(), ftoa_engine(), F4Light::I2CDevice::get_device(), PX4::PX4UARTDriver::get_flow_control(), VRBRAIN::VRBRAINUARTDriver::get_flow_control(), HALSITL::UARTDriver::get_flow_control(), ChibiOS::UARTDriver::get_flow_control(), F4Light::Semaphore::give(), have_rotation(), AC_PID_2D::imax(), AC_PI_2D::imax(), AC_PID::imax(), AP_Baro_ICM20789::imu_spi_init(), Quaternion::is_nan(), is_negative(), AP_Param::is_sentinal(), AP_OpticalFlow_Pixart::load_configuration(), loop(), AP_GPS_Backend::make_gps_time(), SRV_Channels::move_servo(), MatrixN< float, N >::mult(), AP_ParamT< T, PT >::operator&=(), Vector2< int32_t >::operator()(), Vector3< int32_t >::operator()(), MatrixN< float, N >::operator+=(), AP_ParamT< T, PT >::operator+=(), MatrixN< float, N >::operator-=(), AP_ParamT< T, PT >::operator-=(), operator<<(), AP_ParamT< T, PT >::operator=(), AP_ParamV< T, PT >::operator=(), Matrix3< float >::operator[](), AP_ParamT< T, PT >::operator|=(), SITL::FlightAxis::parse_reply(), print_vprintf(), AP_RCProtocol_SBUS::process_pulse(), AP_RCProtocol_DSM::process_pulse(), Vector2< int32_t >::project(), Vector3< int32_t >::project(), Vector2< int32_t >::projected(), Vector3< int32_t >::projected(), rand_vec3f(), VRBRAIN::VRBRAINRCInput::read(), PX4::PX4RCInput::read(), ChibiOS::RCInput::read(), StorageAccess::read_byte(), AP_RangeFinder_VL53L0X::read_register(), AP_RangeFinder_VL53L0X::read_register16(), StorageAccess::read_uint16(), StorageAccess::read_uint32(), AP_OpticalFlow_Pixart::reg_read(), reset(), VRBRAIN::VRBRAINUtil::run_debug_shell(), PX4::PX4Util::run_debug_shell(), safe_asin(), safe_sqrt(), AP_Param::send_parameter(), AP_ParamT< T, PT >::set(), AP_ParamV< T, PT >::set(), AP_ParamA< T, N, PT >::set(), AP_ParamT< T, PT >::set_and_notify(), AP_ParamV< T, PT >::set_and_notify(), AP_ParamT< T, PT >::set_and_save(), AP_ParamV< T, PT >::set_and_save(), AP_ParamT< T, PT >::set_and_save_ifchanged(), AP_ParamT< T, PT >::set_default(), AP_Airspeed::set_EAS2TAS(), AP_Param::set_float(), AP_BoardConfig::spi_check_register(), srxl_channels_get_v5(), AP_InertialSensor_Invensense::start(), F4Light::Scheduler::SVC_Handler(), AP_GPS_Backend::swap_int16(), AP_GPS_Backend::swap_int32(), test_euler(), test_frame_transforms(), test_printf(), AP_RangeFinder_analog::update(), AP_InertialSensor_LSM9DS0::update(), AP_InertialSensor_LSM9DS1::update(), SRV_Channels::upgrade_motors_servo(), SRV_Channels::upgrade_parameters(), USB_OTG_ReadCoreItr(), USB_OTG_ReadDevAllInEPItr(), USB_OTG_ReadDevAllOutEp_itr(), USB_OTG_ReadDevOutEP_itr(), VectorN< float, N >::VectorN(), F4Light::AnalogSource::voltage_average_ratiometric(), and Radio_CC2500::WriteRegCheck().