I have a Maxbotix mb 1200 and I want to use the sensor to print the distance to the console .
I know that I can’t use Serial.begin() command because it is not compatible with the AP_HAL Library that the APM use to control the done.
Also, I can’t use analogRead() to receive the voltage to convert it to distance. Also, this command is not acceptable.
How I can get the analog input of the A0 pin on the APM2.6 and print that value to the Monitor to see how much is the distance ??