I connected the MB1240 and Pixhwak with ADC3.3V plug.
I used the Virtual Pin 13.
I enabled MB1240 through setting
SONAR_ENABLE = 1
SONAR_TYPE = 0
I can read the ADC values of Virtual Pin 13 through TERMAL->test->shell->adc test, and the variation trend of these values are OK.
But TERMAL->test->sonar returns 20cm no matter how far the sonar between ground.
It seems that the Pixhawk&AC3.1.2 does not support sonar function right now, am I right?
If I am wrong, how can I fix my problem?
Thanks in advance!