APM:Libraries
Macros
DerivativeFilter.cpp File Reference
#include <inttypes.h>
#include <AP_Math/AP_Math.h>
#include "Filter.h"
#include "DerivativeFilter.h"
Include dependency graph for DerivativeFilter.cpp:

Go to the source code of this file.

Macros

#define f(i)   FilterWithBuffer<T,FILTER_SIZE>::samples[(((FilterWithBuffer<T,FILTER_SIZE>::sample_index-1)+i+1)+3*FILTER_SIZE/2) % FILTER_SIZE]
 
#define x(i)   _timestamps[(((FilterWithBuffer<T,FILTER_SIZE>::sample_index-1)+i+1)+3*FILTER_SIZE/2) % FILTER_SIZE]
 

Macro Definition Documentation

◆ f

#define f (   i)    FilterWithBuffer<T,FILTER_SIZE>::samples[(((FilterWithBuffer<T,FILTER_SIZE>::sample_index-1)+i+1)+3*FILTER_SIZE/2) % FILTER_SIZE]

Referenced by PX4::PX4AnalogSource::_add_value(), VRBRAIN::VRBRAINAnalogSource::_add_value(), ChibiOS::AnalogSource::_add_value(), SITL::Calibration::_angular_velocity_control(), AP_GPS_SBP2::_attempt_state_update(), SITL::Calibration::_attitude_control(), SITL::Calibration::_attitude_set(), AP_Baro_MS56XX::_calculate_5607(), AP_Baro_MS56XX::_calculate_5611(), Linux::UtilRPI::_check_rpi_version(), AP_InertialSensor_BMI160::_configure_gyro(), AP_Airspeed_SDP3X::_correct_pressure(), AP_TECS::_detect_underspeed(), AP_BattMonitor_Bebop::_filter_voltage(), AP_PitchController::_get_coordination_rate_offset(), AP_PitchController::_get_rate_out(), AP_RollController::_get_rate_out(), Linux::RCOutput_AeroIO::_hw_to_usec(), AP_InertialSensor_RST::_init_accel(), AP_InertialSensor_RST::_init_gyro(), AP_InertialSensor::_init_gyro(), Linux::CameraSensor_Mt9v117::_init_sensor(), AP_TECS::_initialise_states(), AP_InertialSensor_PX4::_new_accel_sample(), AP_InertialSensor_PX4::_new_gyro_sample(), AP_InertialSensor_Backend::_notify_new_gyro_raw_sample(), AP_GPS_NMEA::_parse_degrees(), AP_GPS_ERB::_parse_gps(), AP_GPS_UBLOX::_parse_gps(), AP_L1_Control::_prevent_indecision(), AP_InertialSensor_LSM9DS1::_set_accel_scale(), AP_InertialSensor_LSM9DS0::_set_accel_scale(), HALSITL::SITL_State::_simulator_servos(), SITL::Calibration::_stop_control(), AP_GPS_NMEA::_term_complete(), AP_Baro_SITL::_timer(), HALSITL::SITL_State::_update_gps(), AP_TECS::_update_height_demand(), AP_TECS::_update_pitch(), AP_Baro_BMP280::_update_pressure(), HALSITL::SITL_State::_update_rangefinder(), AP_TECS::_update_speed(), AP_TECS::_update_speed_demand(), AP_TECS::_update_throttle_with_airspeed(), AP_TECS::_update_throttle_without_airspeed(), Linux::RCOutput_AeroIO::_usec_to_hw(), AP_Airspeed_MS4525::_voltage_correction(), AP_AHRS_DCM::_yaw_gain(), AC_Sprayer::AC_Sprayer(), AC_WPNav::AC_WPNav(), AC_PosControl::accel_to_lean_angles(), CompassCalibrator::accept_sample(), AC_Avoid::adjust_roll_pitch(), AC_Avoid::adjust_speed(), SRV_Channels::adjust_trim(), AC_Avoid::adjust_velocity_circle_fence(), AC_Avoid::adjust_velocity_polygon(), AC_Avoid::adjust_velocity_z(), AC_WPNav::advance_spline_target_along_track(), AC_WPNav::advance_wp_target_along_track(), SITL::Aircraft::Aircraft(), NavEKF2_core::alignMagStateDeclination(), NavEKF3_core::alignMagStateDeclination(), AC_AttitudeControl::ang_vel_limit(), AP_Mount_Backend::angle_input_rad(), AP_Motors::AP_Motors(), AP_MotorsMulticopter::AP_MotorsMulticopter(), DigitalLPF< Vector2f >::apply(), AP_MotorsMulticopter::apply_thrust_curve_and_volt_scaling(), AC_AttitudeControl::attitude_controller_run_quat(), DataFlash_Class::backend_starting_new_log(), AP_Arming::battery_checks(), BM_GeodesicGridSections(), BM_MatrixMultiplication(), AP_Landing_Deepstall::build_approach_path(), AP_Mount_Backend::calc_angle_to_location(), AP_GPS::calc_blend_weights(), AP_GPS::calc_blended_state(), AC_Loiter::calc_desired_velocity(), AP_Frsky_Telem::calc_home(), AC_PosControl::calc_leash_length(), AP_Motors::calc_pwm_output_0to1(), AP_Motors::calc_pwm_output_1to1(), AP_MotorsHeli::calc_pwm_output_1to1_swash_servo(), AC_WPNav::calc_slow_down_distance(), AP_MotorsMulticopter::calc_spin_up_to_pwm(), AP_MotorsMulticopter::calc_thrust_to_pwm(), AP_AHRS::calc_trig(), AC_Circle::calc_velocities(), NavEKF2_core::calcEarthRateNED(), NavEKF3_core::calcEarthRateNED(), NavEKF2_core::calcGpsGoodForFlight(), NavEKF3_core::calcGpsGoodForFlight(), NavEKF2_core::calcGpsGoodToAlign(), NavEKF3_core::calcGpsGoodToAlign(), NavEKF2_core::calcOutputStates(), NavEKF3_core::calcOutputStates(), NavEKF2_core::calcQuatAndFieldStates(), NavEKF3_core::calcQuatAndFieldStates(), NavEKF2_core::CalcRangeBeaconPosDownOffset(), NavEKF3_core::CalcRangeBeaconPosDownOffset(), NavEKF3_core::calcRotVecVariances(), AP_MotorsHeli_Quad::calculate_armed_scalars(), AP_MotorsHeli_Dual::calculate_armed_scalars(), AP_MotorsHeli_Single::calculate_armed_scalars(), AP_MotorsHeli_RSC::calculate_desired_throttle(), SITL::Plane::calculate_forces(), Compass::calculate_heading(), AP_MotorsHeli_Single::calculate_scalars(), AP_InertialSensor::calibrate_trim(), PX4::PX4AnalogIn::channel(), VRBRAIN::VRBRAINAnalogIn::channel(), AnalogIn_IIO::channel(), ChibiOS::AnalogIn::channel(), AP_AdvancedFailsafe::check(), AC_Fence::check_destination_within_fence(), AC_PosControl::check_for_ekf_z_reset(), AP_Tuning::check_input(), AP::PerfInfo::check_loop_time(), check_result(), NavEKF2_core::checkAttitudeAlignmentStatus(), NavEKF3_core::checkAttitudeAlignmentStatus(), NavEKF2_core::checkGyroCalStatus(), NavEKF3_core::checkGyroCalStatus(), Vector2< int32_t >::circle_segment_intersection(), closest_approach_z(), DigitalLPF< Vector2f >::compute_alpha(), DigitalBiquadFilter< Vector3f >::compute_params(), Compass::consistent(), NavEKF2_core::ConstrainStates(), NavEKF3_core::ConstrainStates(), NavEKF2_core::ConstrainVariances(), NavEKF3_core::ConstrainVariances(), AC_PrecLand::construct_pos_meas_using_rangefinder(), AP_Camera::control(), AP_Mount_Backend::control(), NavEKF2_core::controlMagYawReset(), NavEKF3_core::controlMagYawReset(), AP_Proximity_Backend::convert_angle_to_sector(), SITL::SITL::convert_earth_frame(), AP_Param::convert_old_parameter(), AP_Param::convert_old_parameters(), AP_BattMonitor::convert_params(), AP_Compass_Backend::correct_field(), NavEKF2_core::correctEkfOriginHeight(), NavEKF3_core::correctEkfOriginHeight(), NavEKF3_core::CovarianceInit(), NavEKF2_core::CovariancePrediction(), NavEKF3_core::CovariancePrediction(), SITL::JSBSim::create_templates(), AP_Navigation::crosstrack_error_integrator(), AP_L1_Control::crosstrack_error_integrator(), NavEKF2_core::detectFlight(), NavEKF3_core::detectFlight(), NavEKF2_core::detectOptFlowTakeoff(), NavEKF3_core::detectOptFlowTakeoff(), AC_Avoid::distance_to_lean_pct(), Vector3< int32_t >::distance_to_segment(), AP_AHRS_DCM::drift_correction(), AP_AHRS_DCM::drift_correction_yaw(), NavEKF2_core::errorScore(), NavEKF3_core::errorScore(), AP_AHRS_DCM::estimate_wind(), NavEKF2_core::EstimateTerrainOffset(), NavEKF3_core::EstimateTerrainOffset(), SITL::FlightAxis::exchange_data(), f_printf(), AP_Compass_Backend::field_ok(), DataFlash_Class::fill_log_write_logstructure(), SITL::Aircraft::filtered_idx(), SITL::Aircraft::filtered_servo_angle(), SITL::Aircraft::filtered_servo_range(), AP_Rally::find_nearest_rally_point(), SoloGimbalEKF::fixCovariance(), AP_Frsky_Telem::format_gps(), Quaternion::from_axis_angle(), Quaternion::from_euler(), Quaternion::from_rotation_matrix(), NavEKF2_core::FuseAirspeed(), NavEKF3_core::FuseAirspeed(), NavEKF3_core::FuseBodyVel(), SoloGimbalEKF::fuseCompass(), NavEKF2_core::FuseDeclination(), NavEKF3_core::FuseDeclination(), NavEKF2_core::fuseEulerYaw(), NavEKF3_core::fuseEulerYaw(), NavEKF2_core::FuseMagnetometer(), NavEKF3_core::FuseMagnetometer(), NavEKF2_core::FuseOptFlow(), NavEKF3_core::FuseOptFlow(), NavEKF2_core::FuseRngBcn(), NavEKF3_core::FuseRngBcn(), NavEKF2_core::FuseRngBcnStatic(), NavEKF3_core::FuseRngBcnStatic(), NavEKF2_core::FuseSideslip(), NavEKF3_core::FuseSideslip(), NavEKF2_core::FuseVelPosNED(), NavEKF3_core::FuseVelPosNED(), AP_InertialSensor_SITL::generate_accel(), AP_InertialSensor_SITL::generate_gyro(), AR_AttitudeControl::get_accel_max(), AC_AttitudeControl::get_accel_pitch_max_radss(), AC_AttitudeControl::get_accel_roll_max_radss(), AC_AttitudeControl::get_accel_yaw_max_radss(), AP_Baro::get_air_density_ratio(), AP_Baro::get_altitude_difference(), AC_Loiter::get_angle_max_cd(), AC_AttitudeControl::get_att_target_euler_cd(), AP_MotorsMulticopter::get_compensation_gain(), AP_MotorsMulticopter::get_current_limit_max_throttle(), AR_AttitudeControl::get_desired_speed_accel_limited(), AP_Proximity_SITL::get_distance_to_fence(), AP_Baro::get_EAS2TAS(), Quaternion::get_euler_pitch(), Quaternion::get_euler_roll(), Quaternion::get_euler_yaw(), AP_InertialSensor::get_gyro_drift_rate(), AP_Proximity_Backend::get_horizontal_distances(), Linux::Util::get_hw_arm32(), AP_Winch::get_line_length(), AC_Avoid::get_max_speed(), PID::get_pid(), AC_InputManager_Heli::get_pilot_desired_collective(), AP_TECS::get_pitch_demand(), AC_Avoid::get_proximity_roll_pitch_pct(), AP_AHRS_NavEKF::get_relative_position_D_home(), AP_AHRS_NavEKF::get_relative_position_NED_origin(), AC_AttitudeControl_Heli::get_roll_trim_rad(), AP_PitchController::get_servo_out(), AP_RollController::get_servo_out(), AP_YawController::get_servo_out(), AP_WheelEncoder::get_signal_quality(), AC_AttitudeControl::get_slew_yaw_rads(), AC_WPNav::get_slow_down_speed(), AP_SteerController::get_steering_out_angle_error(), AP_SteerController::get_steering_out_rate(), AR_AttitudeControl::get_steering_out_rate(), AR_AttitudeControl::get_stopping_distance(), AC_Avoid::get_stopping_distance(), AC_PosControl::get_stopping_point_xy(), AP_Follow::get_target_location_and_velocity(), AC_PrecLand::get_target_position_cm(), AC_AttitudeControl_Sub::get_throttle_avg_max(), AC_AttitudeControl_Multi::get_throttle_avg_max(), AP_Motors::get_throttle_bidirectional(), AC_AttitudeControl_Sub::get_throttle_boosted(), AC_AttitudeControl_Multi::get_throttle_boosted(), AP_TECS::get_throttle_demand(), AR_AttitudeControl::get_throttle_out_speed(), AR_AttitudeControl::get_throttle_out_stop(), AP_Proximity_SITL::get_upward_distance(), SoloGimbalEKF::getDebug(), SoloGimbalEKF::getGyroBias(), NavEKF2_core::getGyroBias(), NavEKF3_core::getGyroBias(), NavEKF2_core::getHeightControlLimit(), NavEKF3_core::getHeightControlLimit(), NavEKF2_core::getMagOffsets(), NavEKF3_core::getMagOffsets(), NavEKF2_core::getOriginLLH(), NavEKF3_core::getOriginLLH(), AP_DEVO_Telem::gpsDdToDmsFormat(), AP_AHRS::groundspeed_vector(), AC_Fence::handle_msg(), GCS_MAVLINK::handle_timesync(), have_rotation(), NavEKF2_core::healthy(), NavEKF3_core::healthy(), AC_Circle::init(), AP_Baro::init(), AP_GPS::init(), AP_Proximity_Backend::init_boundary(), AC_WPNav::init_brake_target(), AP_Proximity_LightWareSF40C::init_sectors(), AP_Proximity_RPLidarA2::init_sectors(), AC_PosControl::init_takeoff(), AC_Loiter::init_target(), AC_PosControl::init_vel_controller_xyz(), NavEKF2_core::InitialiseFilterBootstrap(), NavEKF3_core::InitialiseFilterBootstrap(), NavEKF3_core::initialiseQuatCovariances(), AC_AttitudeControl::input_angle_step_bf_roll_pitch_yaw(), AC_AttitudeControl::input_euler_angle_roll_pitch_euler_rate_yaw(), AC_AttitudeControl::input_euler_angle_roll_pitch_yaw(), AC_AttitudeControl::input_euler_rate_roll_pitch_yaw(), AC_AttitudeControl::input_quaternion(), AC_AttitudeControl::input_rate_bf_roll_pitch_yaw(), AC_AttitudeControl::input_rate_bf_roll_pitch_yaw_2(), AC_AttitudeControl::input_rate_bf_roll_pitch_yaw_3(), AC_AttitudeControl::input_shaping_angle(), AC_AttitudeControl::input_shaping_rate_predictor(), is_negative(), AC_AttitudeControl_Sub::is_throttle_mix_min(), AC_AttitudeControl_Multi::is_throttle_mix_min(), SRV_Channels::limit_slew_rate(), location_path_proportion(), AP_Landing_Deepstall::Log(), DataFlash_Backend::Log_Write(), DataFlash_Class::Log_Write_AHRS2(), DataFlash_Class::Log_Write_Airspeed(), DataFlash_Class::Log_Write_POS(), DataFlash_Class::Log_Write_Rate(), DataFlashTest_AllTypes::Log_Write_TypeMessages(), DataFlashTest_AllTypes::Log_Write_TypeMessages_Log_Write(), DataFlash_Class::Log_WriteV(), AP_L1_Control::loiter_radius(), longitude_scale(), loop(), mat_mul(), AP_Mission::mission_cmd_to_mavlink(), AP_MotorsHeli_Quad::move_actuators(), AP_MotorsHeli_Dual::move_actuators(), AP_MotorsHeli_Single::move_actuators(), SRV_Channels::move_servo(), AP_MotorsHeli_Single::move_yaw(), DataFlash_Class::msg_fmt_for_name(), DataFlash_Class::msg_type_in_use(), mul_converth(), AP_L1_Control::nav_roll_cd(), RC_Channel::norm_input(), RC_Channel::norm_input_dz(), Location_Class::offset(), AP_MotorsHeli_RSC::output(), AP_MotorsTailsitter::output_armed_stabilizing(), AP_MotorsMatrix::output_armed_stabilizing(), AP_Motors6DOF::output_armed_stabilizing(), AP_MotorsCoax::output_armed_stabilizing(), AP_MotorsSingle::output_armed_stabilizing(), AP_MotorsTri::output_armed_stabilizing(), AP_Motors6DOF::output_armed_stabilizing_vectored(), AP_Motors6DOF::output_armed_stabilizing_vectored_6dof(), AP_MotorsHeli::output_disarmed(), AP_MotorsMulticopter::output_logic(), AP_MotorsHeli::output_min(), AP_MotorsHeli_Single::output_test(), AP_MotorsTailsitter::output_to_motors(), AP_Landing_Deepstall::override_servos(), AC_AttitudeControl_Sub::parameter_sanity_check(), AC_AttitudeControl_Multi::parameter_sanity_check(), AP_Beacon_Pozyx::parse_buffer(), AP_Param::parse_param_line(), AC_AttitudeControl_Heli::passthrough_bf_roll_pitch_rate_yaw(), Compass::per_motor_calibration_end(), AP_IRLock_I2C::pixel_to_1M_plane(), AC_Fence::pre_arm_check_alt(), AP_Landing_Deepstall::predict_travel_distance(), SoloGimbalEKF::predictCovariance(), SoloGimbalEKF::predictStates(), AP_Frsky_Telem::prep_number(), AP_Baro_Backend::pressure_ok(), Linux::RCOutput_PCA9685::push(), rand_num(), AC_AttitudeControl::rate_bf_pitch_target(), AC_AttitudeControl::rate_bf_roll_target(), AC_AttitudeControl::rate_bf_yaw_target(), AC_AttitudeControl_Heli::rate_controller_run(), AC_AttitudeControl::rate_target_to_motor_pitch(), AC_AttitudeControl::rate_target_to_motor_roll(), AC_AttitudeControl::rate_target_to_motor_yaw(), AP_Tuning::re_center(), AP_GPS_MTK::read(), AP_BattMonitor_Bebop::read(), AP_BattMonitor_SMBus::read_temp(), NavEKF2_core::readDeltaAngle(), NavEKF2_core::readDeltaVelocity(), NavEKF3_core::readDeltaVelocity(), NavEKF2_core::readGpsData(), NavEKF3_core::readGpsData(), NavEKF2_core::readIMUData(), NavEKF3_core::readIMUData(), NavEKF2_core::readRngBcnData(), NavEKF3_core::readRngBcnData(), NavEKF2_core::realignYawGPS(), NavEKF3_core::realignYawGPS(), SITL::XPlane::receive_data(), AC_PosControl::relax_alt_hold_controllers(), AP_AHRS_DCM::renorm(), CompassCalibrator::reset_state(), NavEKF2_core::resetGyroBias(), NavEKF3_core::resetGyroBias(), NavEKF2_core::ResetVelocity(), NavEKF3_core::ResetVelocity(), AC_PrecLand::retrieve_los_meas(), Vector3< int32_t >::rotate_inverse(), AC_PrecLand::run_estimator(), AC_PosControl::run_xy_controller(), AC_PosControl::run_z_controller(), SoloGimbalEKF::RunEKF(), safe_asin(), AC_Loiter::sanity_check_params(), AP_Param::save(), AP_AutoTune::save_float_if_changed(), sbus_decode(), AP_RCProtocol_SBUS::sbus_decode(), AP_RSSI::scale_and_constrain_float_rssi(), AP_SmartRTL::segment_segment_dist(), NavEKF2_core::SelectBetaFusion(), NavEKF3_core::SelectBetaFusion(), NavEKF3_core::SelectBodyOdomFusion(), NavEKF2_core::SelectFlowFusion(), NavEKF3_core::SelectFlowFusion(), NavEKF2_core::selectHeightForFusion(), NavEKF3_core::selectHeightForFusion(), NavEKF2_core::SelectMagFusion(), NavEKF3_core::SelectMagFusion(), NavEKF2_core::SelectTasFusion(), NavEKF3_core::SelectTasFusion(), NavEKF2_core::SelectVelPosFusion(), NavEKF3_core::SelectVelPosFusion(), GCS_MAVLINK::send_ahrs2(), SITL::XPlane::send_data(), AP_DEVO_Telem::send_frames(), Compass::send_mag_cal_progress(), GCS_MAVLINK::send_proximity(), SITL::Gimbal::send_report(), GCS_MAVLINK::send_scaled_pressure(), GCS_MAVLINK::send_scaled_pressure3(), SITL::Gazebo::send_servos(), SITL::JSBSim::send_servos(), SITL::CRRCSim::send_servos_heli(), AP_MotorsHeli_Dual::servo_test(), AP_MotorsHeli_Single::servo_test(), AC_PosControl::set_accel_xy(), AC_PosControl::set_accel_z(), AC_PosControl_Sub::set_alt_target_from_climb_rate_ff(), AC_PosControl::set_alt_target_from_climb_rate_ff(), AP_MotorsHeli_Single::set_desired_rotor_speed(), AC_AttitudeControl_Heli::set_hover_roll_trim_scalar(), AC_PID::set_input_filter_all(), AC_PID::set_input_filter_d(), AC_AttitudeControl::set_input_tc(), AP_ADSB::set_max_speed(), AP_TECS::set_path_proportion(), AC_Loiter::set_pilot_desired_acceleration(), AC_PosControl::set_speed_xy(), AC_PosControl::set_speed_z(), AC_WPNav::set_spline_origin_and_destination(), AP_Beacon_Marvelmind::set_stationary_beacons_positions(), CompassCalibrator::set_status(), AP_Motors::set_throttle_avg_max(), AP_MotorsHeli_RSC::set_throttle_curve(), AP_MotorsMulticopter::set_throttle_passthrough_for_esc_calibration(), SoloGimbalEKF::setGyroBias(), AP_Baro::setHIL(), NavEKF2_core::setOrigin(), NavEKF3_core::setOrigin(), setup(), NavEKF3_core::setup_core(), AP_Motors6DOF::setup_motors(), AP_MotorsMatrix::setup_motors(), NavEKF2_core::setWindMagStateLearningMode(), NavEKF3_core::setWindMagStateLearningMode(), AC_AttitudeControl::shift_ef_yaw_target(), AC_WPNav::shift_wp_origin_to_current_pos(), SITL::Gripper_EPM::should_report(), AP_InertialSensor::simple_accel_cal(), AP_Baro::SimpleAtmosphere(), AP_Baro::SimpleUnderWaterAtmosphere(), DerivativeFilter< float, 7 >::slope(), SITL::Aircraft::smooth_sensors(), splinterp5(), AC_AttitudeControl::sqrt_controller(), AC_PosControl::sqrt_controller(), srxl_decode(), st24_decode(), stability_test(), AP_InertialSensor_LSM9DS0::start(), AP_InertialSensor_LSM9DS1::start(), AP_AccelCal::start(), AccelCalibrator::start(), AP_GPS_GSOF::SwapFloat(), SITL::Aircraft::sync_frame_time(), AC_Fence::sys_status_failed(), TEST(), test_accuracy(), test_conversions(), test_euler(), test_frame_transforms(), test_one_offset(), test_quaternion_eulers(), test_rotate_inverse(), test_rotation_accuracy(), test_uart(), test_wrap_cd(), AC_AttitudeControl::thrust_heading_rotation_angles(), AP_TECS::timeConstant(), AP_BattMonitor_SMBus_Maxell::timer(), Quaternion::to_axis_angle(), AP_Landing::type_slope_adjust_landing_slope_for_rangefinder_bump(), AP_Landing::type_slope_setup_landing_glide_slope(), AP_Landing::type_slope_verify_land(), CompassLearn::update(), AP_OpticalFlow_SITL::update(), AP_Beacon_SITL::update(), Airspeed_Calibration::update(), SITL::Gimbal::update(), AP_Winch_Servo::update(), SITL::Tracker::update(), SITL::SimRover::update(), SITL::Helicopter::update(), SITL::SingleCopter::update(), SITL::Gripper_Servo::update(), SITL::XPlane::update(), SITL::FlightAxis::update(), SITL::Sprayer::update(), Variometer::update(), SITL::ICEngine::update(), SITL::ADSB::update(), AC_Circle::update(), AP_AutoTune::update(), AP_Baro::update(), AC_Loiter::update(), SoloGimbal_Parameters::update(), AC_PrecLand::update(), AP_AHRS_DCM::update(), AP_TECS::update_50hz(), AC_AttitudeControl_Sub::update_althold_lean_angle_max(), AC_AttitudeControl_Multi::update_althold_lean_angle_max(), AC_AttitudeControl_Heli::update_althold_lean_angle_max(), AC_AttitudeControl::update_ang_vel_target_from_att_error(), AC_WPNav::update_brake(), AP_Airspeed::update_calibration(), SITL::Aircraft::update_dynamics(), SITL::Gripper_EPM::update_from_demand(), AP_L1_Control::update_heading_hold(), AP_MotorsMulticopter::update_lift_max_from_batt_voltage(), AP_L1_Control::update_loiter(), SITL::Aircraft::update_mag_field_bf(), AP_TECS::update_pitch_throttle(), AP_BattMonitor_Backend::update_resistance_estimate(), AP_MotorsHeli_RSC::update_rotor_runup(), SITL::Motor::update_servo(), SITL::Gripper_EPM::update_servobased(), AP_AHRS_NavEKF::update_SITL(), AC_WPNav::update_spline(), AP_Landing_Deepstall::update_steering(), AP_MotorsMulticopter::update_throttle_filter(), AP_MotorsHeli::update_throttle_filter(), AC_AttitudeControl_Sub::update_throttle_rpy_mix(), AC_AttitudeControl_Multi::update_throttle_rpy_mix(), AC_PosControl::update_vel_controller_xy(), AP_L1_Control::update_waypoint(), AC_WPNav::update_wpnav(), AC_PosControl::update_xy_controller(), NavEKF3::UpdateFilter(), NavEKF2::UpdateFilter(), NavEKF2_core::UpdateStrapdownEquationsNED(), NavEKF3_core::UpdateStrapdownEquationsNED(), AP_Landing_Deepstall::verify_land(), HALSITL::ADCSource::voltage_average(), HALSITL::ADCSource::voltage_latest(), AP_InertialSensor::wait_for_sample(), AC_WPNav::wp_and_spline_init(), wrap_180(), wrap_180_cd(), wrap_360_cd(), NavEKF3_core::writeBodyFrameOdom(), NavEKF2_core::writeOptFlowMeas(), NavEKF3_core::writeOptFlowMeas(), and NavEKF3_core::writeWheelOdom().

◆ x

#define x (   i)    _timestamps[(((FilterWithBuffer<T,FILTER_SIZE>::sample_index-1)+i+1)+3*FILTER_SIZE/2) % FILTER_SIZE]

Referenced by OpticalFlow_backend::_applyYaw(), AP_Compass_LSM303D::_read_sample(), Linux::OpticalFlow_Onboard::_run_optflow(), Linux::RCInput_RPI::_timer_tick(), AP_AHRS_DCM::_yaw_gain(), AP_GPS::calc_blended_state(), check_path(), AP_AHRS_DCM::drift_correction(), Matrix3< float >::from_axis_angle(), ftoa_engine(), CompassCalibrator::CompassSample::get(), AC_PosControl::get_pos_target(), GCS_MAVLINK::handle_common_vision_position_estimate_data(), Vector2< int32_t >::is_inf(), Vector3< int32_t >::is_inf(), Vector2< int32_t >::is_nan(), Vector3< int32_t >::is_nan(), is_negative(), Vector2< int32_t >::length(), Vector3< int32_t >::length(), Vector2< int32_t >::operator!=(), Vector3< int32_t >::operator!=(), Vector2< int32_t >::operator%(), Vector3< int32_t >::operator%(), Vector2< int32_t >::operator*(), Vector3< int32_t >::operator*(), Vector2< int32_t >::operator*=(), Vector3< int32_t >::operator*=(), Vector2< int32_t >::operator+(), Vector3< int32_t >::operator+(), Vector2< int32_t >::operator+=(), Vector3< int32_t >::operator+=(), Vector2< int32_t >::operator-(), Vector3< int32_t >::operator-(), Vector2< int32_t >::operator-=(), Vector3< int32_t >::operator-=(), Vector2< int32_t >::operator/(), Vector3< int32_t >::operator/(), Vector2< int32_t >::operator/=(), Vector3< int32_t >::operator/=(), Vector2< int32_t >::operator==(), Vector3< int32_t >::operator==(), print_vprintf(), AP_Beacon_Marvelmind::process_beacons_positions_datagram(), AP_Beacon_Marvelmind::process_beacons_positions_highres_datagram(), SITL::Aircraft::rand_normal(), ExtendedKalmanFilter::reset(), Vector3< int32_t >::rotate(), CompassCalibrator::CompassSample::set(), AC_PosControl::set_xy_target(), DerivativeFilter< float, 7 >::slope(), AP_Compass_IST8310::timer(), AP_Compass_QMC5883L::timer(), and DataFlash_Class::WritesEnabled().