Hi!
Since I am a beginner with minimal knowledge about the whole Ardupilot project. I’ll try to be as clear as I can asking the following question.
Background:
I am trying to build a semi(fully)-autonomous hexacopter that can perform some object avoidance. I have followed the instructions provided in the Wiki on how to wire and connect the RPLIDAR A2 to Pixhawk 2.1. I’ve also set the parameter values as explained in the Wiki page (http://ardupilot.org/copter/docs/common-rplidar-a2.html).
I am assuming that the RPLIDAR A1 wiring will be identical to that of the RPLIDAR A2.
After connected the RPLIDAR A1 to Pixhawk 2.1, I started Mission Planner and expected to receive distance measurements on the sonardistance state or one of the rangfinder states.
I was then told that the RPLIDAR A1 is not a rangefinder and that those state or attributes are used with the one-point (single-point) lidars .
Question:
I want to know if it is possible to get distance readings through MAVLink using Dronekit-python scripts. Is there a similar command like (print “Rangefinder: %s” % vehicle.rangefinder) - for example - that could work with the RPLIDAR A1?
I know I am missing a lot of info, however, I am sure many of you who are experienced with this know what I am trying to get at and have some answers for me.
Any help or advice would be greatly appreciated! Thank you all!
MA