Pixhawk&AC3.1.2 Sonar

I connected the MB1240 and Pixhwak with ADC3.3V plug.

I used the Virtual Pin 13.

I enabled MB1240 through setting


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!

That’s right. ArduCopter on Pixhawk doesn’t support sonar yet. Coming soon-ish!

Thanks for your reply!