im working on integrating a fuel flow sensor to PX4 on a multirotor. since the vehile is flown by a PX4 anyway, i would simply like to use the PX4 to read the data coming from my external sensor board, and send it via Mavlink telemetry to the ground.
my sensor is a hall type (pulse counter) but im using an external interface board which can either send Analog (to ADC) or UART TTL and even i2c.
Lets assume the fuel values are 0 - 50.0 Literes in a resolution of 0.1 L so 500 different values.
i can easily convert 0-50.0L in my controller via D2A on my board to analog value (0-3.3V) and send that to PX4 ADC connector input.
what shall i activate in Arducopter to read an external ADC and report it via telemetry with a certain factor (3.3V = 50.0 Liters) ?
or is there a better way to send configureable parameters to PX4? UART? I2C?
thanks for your help.