ardupilot/libraries/AP_HAL_PX4
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
..
examples/simple AP_HAL_PX4: Unify from print or println to printf. 2017-01-27 18:20:22 +11:00
AnalogIn.cpp Add aerofc support 2017-03-24 12:06:19 +11:00
AnalogIn.h HAL_PX4: delay peripheral starup 2016-11-09 17:07:59 +11:00
AP_HAL_PX4_Namespace.h HAL_PX4: reformat 2016-11-09 17:07:58 +11:00
AP_HAL_PX4.h AP_HAL_PX4: replace header guard with pragma once 2016-03-16 18:40:41 +11:00
Device.cpp AP_HAL_PX4: implement method to ajust periodic callback 2017-03-24 12:06:19 +11:00
Device.h AP_HAL_PX4: implement method to ajust periodic callback 2017-03-24 12:06:19 +11:00
GPIO.cpp Add support for baro on aerofc 2017-03-24 12:06:19 +11:00
GPIO.h HAL_PX4: delay peripheral starup 2016-11-09 17:07:59 +11:00
HAL_PX4_Class.cpp AP_HAL_Px4: use RCOutput_Tap for aerofc 2017-03-24 12:06:19 +11:00
HAL_PX4_Class.h AP_HAL_PX4: Remove unused extern declaration for HALs 2015-11-20 16:32:32 +09:00
I2CDevice.cpp AP_HAL_PX4: implement method to ajust periodic callback 2017-03-24 12:06:19 +11:00
I2CDevice.h HAL_PX4: fixed bug in instantiation of I2C bus threads 2016-11-28 09:53:19 +11:00
I2CWrapper.h HAL_PX4: implement device IDs for I2C and SPI 2016-11-09 17:08:04 +11:00
NSHShellStream.cpp Global: To nullptr from NULL. 2016-11-02 16:04:47 -02:00
px4_param.cpp HAL_PX4: reduced noise in PX4 console 2016-11-26 19:06:15 +11:00
RCInput.cpp HAL_PX4: fixed RC failsafe for SBUS on FMUv4 2017-03-18 17:36:13 +11:00
RCInput.h HAL_PX4: delay peripheral starup 2016-11-09 17:07:59 +11:00
RCOutput_Tap.cpp AP_HAL_PX4: RCOoutput_Tap: map to [ RPMSTOPPED, RPMMAX ] range 2017-03-24 12:06:19 +11:00
RCOutput_Tap.h AP_HAL_PX4: implement motor output for aerofc 2017-03-24 12:06:19 +11:00
RCOutput.cpp AP_HAL_PX4: rename method to follow AP_HAL 2017-02-26 13:38:24 +11:00
RCOutput.h AP_HAL_PX4: rename method to follow AP_HAL 2017-02-26 13:38:24 +11:00
Scheduler.cpp AP_HAL_PX4: rename method to follow AP_HAL 2017-02-26 13:38:24 +11:00
Scheduler.h HAL_PX4: run SPI priority above boost prioriity 2016-11-09 17:07:56 +11:00
Semaphores.cpp AP_HAL_PX4 / Semaphores: removed AP_HAL_VRBRAIN (for now it's better to have different AP_HAL for PX4 and VRBRAIN) 2016-08-07 20:31:50 +10:00
Semaphores.h Global: To nullptr from NULL. 2016-11-02 16:04:47 -02:00
SPIDevice.cpp AP_HAL_PX4: implement method to ajust periodic callback 2017-03-24 12:06:19 +11:00
SPIDevice.h HAL_PX4: avoid bounce buffers for SPI when possible 2016-11-27 11:10:18 +11:00
Storage.cpp AP_BoardConfig: start mtd driver 2017-03-24 12:06:19 +11:00
Storage.h HAL_PX4: only include parts needed for build 2016-12-02 09:58:36 +11:00
system.cpp AP_HAL_PX4: implement new AP_HAL functions 2015-11-20 12:25:40 +09:00
UARTDriver.cpp AP_HAL_PX4: UARTDriver: Delete the condition that does not hold. 2016-12-05 16:53:36 -08:00
UARTDriver.h AP_HAL_PX4: UARTDriver: Make use of ByteBuffer class 2016-10-27 14:23:43 +11:00
Util.cpp AP_HAL_PX4: disable safety switch for aerofc 2017-03-24 12:06:19 +11:00
Util.h HAL_PX4: implement DMA allocation routines 2016-11-25 17:49:58 +11:00