ardupilot/libraries
Lucas De Marchi 91dabbe418 AP_HAL_PX4: implement method to ajust periodic callback
Just setting up the periodic callback sampling time on initialization
may not work well for sensors that need to request for a sample with a
bus transaction, sleep and then read the new data. That's because the
function will be kept calling at a periodic rate, while the time in
which we can read the value is not really that sampling time, but rather
the time in which sensor was last read + the time spent in the function
before sending a new sample request.

Instead of creating a new type of thread to handle this case, just
implement the minimal and easy case of updating the period for this
callback, that can only be called from inside the callback function.
2017-03-24 12:06:19 +11:00
..
AC_AttitudeControl AC_PosControl: protect against POS_Z_P, ACCEL_Z_P divide-by-zero 2017-03-15 09:22:23 +09:00
AC_Avoidance AC_Avoidance: only stop below alt-fence if fence is enabled 2017-03-06 18:02:03 +09:00
AC_Fence AC_Fence: Add minimum altitude limit 2017-02-21 11:26:14 +11:00
AC_InputManager Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AC_PID AC_PID: added feed-forward to AC_PID 2017-02-18 17:26:43 +11:00
AC_PrecLand AC_PrecLand: Update for AHRS NED changes 2017-02-13 09:23:14 +11:00
AC_Sprayer AC_Sprayer: use new SRV_Channels API 2017-01-12 17:39:37 +11:00
AC_WPNav AC_WPNav: speed-up and down parameter min to 10cm/s 2017-03-15 09:22:23 +09:00
AP_AccelCal AP_AccelCal: fix bug preventing accel cal fit to run more than one iteration 2016-11-18 20:03:30 -02:00
AP_ADC Global: change Device::PeriodicCb signature 2017-01-14 10:03:54 +11:00
AP_ADSB AP_ADSB: cleanup 2017-02-22 11:55:47 -08:00
AP_AdvancedFailsafe AP_AdvancedFailsafe: adapt to new RC_Channel API 2017-01-12 17:39:37 +11:00
AP_AHRS AP_AHRS: get_gyro_latest returns latest rates from IMU with drift correction 2017-03-03 13:14:28 +11:00
AP_Airspeed AP_Airspeed: Change from magic number 0 to definition name. 2017-02-18 14:12:36 +00:00
AP_Arming AP_Arming: GPS blending health check renamed 2017-03-13 11:31:51 +11:00
AP_Avoidance AP_Avoidance: Remove unutilized get_destination_perpendicular 2017-02-13 09:23:14 +11:00
AP_Baro AP_Baro: don't compile drivers for devices that don't use them 2017-03-24 12:06:19 +11:00
AP_BattMonitor AP_BattMonitor: fix param description 2017-02-15 20:01:59 +10:00
AP_Beacon AP_Beacon: Apply correct conversion from Pozyx beacon earth frame 2017-01-27 16:57:42 +09:00
AP_BoardConfig AP_BoardConfig: make error function public and static 2017-03-24 12:06:19 +11:00
AP_Buffer Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_Button Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_Camera Camera: Fix an incorrect label on CAM_DURATION 2017-02-13 19:20:49 +00:00
AP_Common AP_Common: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AP_Compass AP_Compass: IST8310 chip does not follow right-hand rule format, flip z 2017-03-24 12:06:19 +11:00
AP_Declination AP_Declination: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AP_FlashStorage AP_FlashStorage: added erase_ok callback 2016-12-02 09:49:40 +11:00
AP_Frsky_Telem AP_FrSky_Telem: fix sending messages 3 times 2017-03-22 01:23:26 +00:00
AP_GPS AP_GPS: Fix parameter metadata 2017-03-22 16:16:26 -07:00
AP_Gripper AP_Gripper: Add missing parameter units 2017-01-16 19:07:26 +00:00
AP_HAL AP_SerialManager: uartA with 460800 baud for aerofc 2017-03-24 12:06:19 +11:00
AP_HAL_AVR AP_HAL_AVR: remove examples 2016-05-23 21:49:45 -03:00
AP_HAL_Empty AP_HAL_Empty: adapt to new api 2017-01-23 21:23:16 +11:00
AP_HAL_FLYMAPLE AP_HAL_FLYMAPLE: remove hal 2016-05-23 21:49:45 -03:00
AP_HAL_Linux AP_HAL_Linux: BBBmini remove onboard OpticalFlow 2017-03-07 22:48:48 -08:00
AP_HAL_PX4 AP_HAL_PX4: implement method to ajust periodic callback 2017-03-24 12:06:19 +11:00
AP_HAL_QURT HAL_QURT: fixed a bug in new_input() 2017-01-12 17:39:37 +11:00
AP_HAL_SITL AP_HAL_SITL: Fix SIM_GPS_DISABLE not disabling the ublox GPS with PVT support 2017-03-19 23:13:11 -07:00
AP_HAL_VRBRAIN AP_HAL_VRBRAIN: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AP_ICEngine AP_ICEngine: Update for AHRS NED changes 2017-02-13 09:23:14 +11:00
AP_InertialNav AP_InertialNav: Update for AHRS NED changes 2017-02-13 09:23:14 +11:00
AP_InertialSensor AP_InertialSensor: use MPU6500 on aerofc 2017-03-24 12:06:19 +11:00
AP_IRLock AP_IRLock_SITL: make port variable 2017-03-18 19:58:11 +11:00
AP_JSButton AP_JSButton: Fix param metadata for relay enum values 2017-02-22 14:42:23 +00:00
AP_L1_Control AP_L1_Control: add missing parameter metadata 2016-10-27 09:15:03 -07:00
AP_Landing AP_Landing: fix to remove reorder warning 2017-03-20 07:32:36 +11:00
AP_LandingGear AP_LandingGear: use new SRV_Channels API 2017-01-12 17:39:37 +11:00
AP_LeakDetector AP_LeakDetector: New library and analog/digital sensor drivers 2017-02-21 11:26:14 +11:00
AP_Math AP_Math: added matrixN for soaring controller 2017-03-14 08:35:44 +11:00
AP_Menu AP_Menu: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AP_Mission AP_Mission: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AP_Module AP_Module: Update for AHRS NED changes 2017-02-13 09:23:14 +11:00
AP_Motors AP_Motors: Initialize throttle range directly 2017-02-28 22:34:35 -08:00
AP_Mount AP_Mount: Remove solo gimbal from the minimal build support 2017-03-06 11:53:08 +11:00
AP_NavEKF NavEKF: Add GPS vertical accuracy to nav_gps_flags 2017-02-22 11:53:42 -08:00
AP_NavEKF2 AP_NavEKF2: Fix parameter metadata 2017-03-22 16:16:26 -07:00
AP_NavEKF3 AP_NavEKF3: Reference correct derivation 2017-03-13 11:31:51 +11:00
AP_Navigation Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_Notify AP_Notify: Correct the display area clear of the text message. 2017-03-22 01:24:21 +00:00
AP_OpticalFlow AP_OpticalFlow: Fix parameter metadata 2017-03-22 16:16:26 -07:00
AP_Parachute AP_Parachute: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AP_Param AP_Param: load parameters from a comma-separated-list 2017-02-23 22:46:33 -08:00
AP_Proximity AP_Proximity: minor fix to param description 2017-03-01 14:59:44 +09:00
AP_Rally Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_RangeFinder Add aerofc support 2017-03-24 12:06:19 +11:00
AP_RCMapper AP_RCMapper: Add forward and strafe channel mappings for Sub 2017-02-21 11:26:14 +11:00
AP_Relay Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_RPM Add aerofc support 2017-03-24 12:06:19 +11:00
AP_RSSI Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_Scheduler AP_Scheduler: Set main loop rate to 400hz for Sub 2017-02-21 11:26:14 +11:00
AP_SerialManager AP_SerialManager: uartA with 460800 baud for aerofc 2017-03-24 12:06:19 +11:00
AP_ServoRelayEvents AP_ServoRelayEvents: fix do_set_servo 2017-03-15 12:36:48 +11:00
AP_Soaring AP_Soaring: adding const qualifiers to some of soaring controller's methods 2017-03-14 08:53:11 +11:00
AP_SpdHgtControl AP_SpdHgtControl: added function to reset integrator 2017-03-14 08:20:48 +11:00
AP_Stats AP_Stats: Add missing parameter units 2017-01-16 19:07:27 +00:00
AP_TECS AP_TECS: disable bad descent for soaring 2017-03-14 08:53:11 +11:00
AP_TemperatureSensor AP_TemperatureSensor: Use powf instead of pow 2017-02-22 11:25:18 -08:00
AP_Terrain AP_Terrain: prevent use of invalid Location 2016-12-22 15:50:30 +11:00
AP_Tuning AP_Tuning: adapt to new RC_Channel API 2017-01-12 17:39:37 +11:00
AP_Vehicle AP_Vehicle: Add the ArduSub vehicle type. 2017-02-21 11:26:14 +11:00
APM_Control APM_Control: Added derating of steering wheel 2016-12-27 13:33:52 +11:00
DataFlash DataFlash: rename GPS3/GPA3 to GPSB/GPAB 2017-03-13 11:31:51 +11:00
doc doc: Fix typos 2016-05-13 19:20:06 -03:00
Filter Filter: added new constructor for 1p filter 2016-11-25 17:49:57 +11:00
GCS_Console GCS_Console: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
GCS_MAVLink GCS_MAVLink: make send_statustext virtual 2017-02-23 23:03:54 -08:00
PID PID: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
RC_Channel RC_Channel: improved doc string 2017-02-07 16:32:57 +11:00
SITL SIM_Gazebo: add a timeout to reset timestamp check 2017-03-18 19:58:11 +11:00
SRV_Channel SRV_Channel: fixed reversing on servo gimbals 2017-03-23 11:02:07 +09:00
StorageManager StorageManager: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00