I am trying to implement a capture interface using Pixhawk (
px4fmu-v3), however, I believe that there is no code example for that.
A quick search for
INPUT_CAP_SET returns no result though. This is the PX4FMU
ioctrl command used to set capture config (edge, callback, etc), as show bellow:
Someone could please help us to initiate a sample capture callback function using
drv_input_capture.h? Our goal is to implement a sensor driver that depends on the signal frequency, in other words, calculate the time delay between to consequent raising or falling edges and convert it into a measurement.