Using ADC with Crazyflie 2.0 in Nuttx

Hello everyone,

It has come to my attention that the ADC is not used in the current crazyflie configuration. I’m working on a Big Quad based vehicle, and would like to use either ADC1 or ADC2 of the stm32f4 processor. So far, I can’t even tell if the adc driver is registered with nuttx (what is the device path for ioctl calls).

It looks like the drivers are registered with the functions

stm32_adcinitialize

from the nuttx stm32 library and

adc_register

from the nuttx adc driver interface.

Is it necessary to register the device driver in nuttx, or is it already done for me? If it is necessary, then where is the appropriate place to do this, so that the ADC can be read and published to the sensors_combined topic in the usual way?