Obstacle avoidance

can u people explain how maxbotix mb1200 ultrasonic sensor is interface with pixhawk

…is there any need to change algorithm of pixhawk for interfacing…and how we get that sensor data…if we need to write some code for that were we need to write and how to write…

1 Like

The following is the mb12xx driver in PX4: https://github.com/PX4/Firmware/blob/master/src/drivers/distance_sensor/mb12xx/mb12xx.cpp
The sensor is interfaced via i2c to the Pixhawk and the driver can be started by setting the following parameter from qgc: SENS_EN_MB12XX. The sensor data will then be available by subscribing to the distance_sensor uorb topic.

Thank u sir for responding…
But i am not using i2c connect port sensor…i am using ULTRASONIC SENSOR which is connected to ADC 3.3… http://ardupilot.org/copter/docs/common-rangefinder-maxbotix-analog.html

and also i am a new learner …can u please help me which command are used in nsh shell to see the sensor data…and provide some link which are used to learn…and i am using qground controller as a ground controller…
once again i am thanking u sir for providing valuable information…thank u

No problem being a new learner: there’s nobody here who didn’t start out that way!
One of the things you’ll need to decide is if you want to use ArduPilot or PX4 on your Pixhawk.
They are very different, but will both run on your autopilot.
For help with ArduPilot you need to go to discuss.ardupilot.org and ask your question there.
Good luck!