ardupilot/libraries/AP_RPM
Peter Barker 20027bad17 AP_RPM: attach_interrupt now takes a functor
AP_RPM: move PX4 IRQ handling into AP_HAL_PX4

AP_RPM: correct RPM sensor initialisation

The initialisation code used the type from the wrong configuration
parameters (if the first rpm sensor wasn't configured then the sensing
for the second sensor would use the type from the first).

The packing of drivers[...] was done in a non-sparse manner - i.e. if a
sensor wasn't detected then it would not take up space in the array.
The PX4 PWM backend relies on the instance number (offset in the drivers
array) corresponding to the parameters, so making this sparse is
required.

The main detection block fills in drivers based on the number of
instances detected so far, but the nullptr check checks based on the
number of detected backends.  If the second instance wasn't configured we
wouldn't attempt to configure a third.

AP_RPM: add error reporting for attaching of interrupts

AP_RPM: use detach_interrupt method

AP_RPM: use (uint8_t)-1 in place of 255
2018-08-21 20:34:01 +09:00
..
examples/RPM_generic AP_RPM: removed create() method for objects 2017-12-14 08:12:28 +11:00
AP_RPM.cpp AP_RPM: attach_interrupt now takes a functor 2018-08-21 20:34:01 +09:00
AP_RPM.h AP_RPM: removed create() method for objects 2017-12-14 08:12:28 +11:00
RPM_Backend.cpp AP_RPM: attach_interrupt now takes a functor 2018-08-21 20:34:01 +09:00
RPM_Backend.h AP_RPM: support RPM input on any AUX pin 2017-04-04 16:33:45 +10:00
RPM_PX4_PWM.cpp VRBRAIN / AP_RPM: removed RPM_PX4_PWM for VR Brain 5.1 and VR Micro Brain 5.2 (they haven't this input pin) 2018-02-05 08:26:49 +11:00
RPM_PX4_PWM.h AP_RPM: remove unneeded initialisations 2018-07-23 13:53:09 +09:00
RPM_Pin.cpp AP_RPM: attach_interrupt now takes a functor 2018-08-21 20:34:01 +09:00
RPM_Pin.h AP_RPM: attach_interrupt now takes a functor 2018-08-21 20:34:01 +09:00
RPM_SITL.cpp AP_RPM: Use SITL singleton 2018-06-26 00:02:01 +01:00
RPM_SITL.h Global: remove mode line from headers 2016-10-24 09:42:01 -02:00