The ARK DIST is connected to the CAN bus using a Pixhawk standard 4 pin JST GH cable. For more information, refer to the CAN Wiring instructions.
Multiple sensors can be connected by plugging additional sensors into the ARK DIST’s second CAN connector.
The ARK DIST can also be connected with UART and communicates over MAVLINK sending the DISTANCE_SENSOR message.
- Set RNGFND1_TYPE = 24 (DroneCAN)
- Set RNGFND1_MAX = to set range finder’s maximum range
- Set RNGFND1_TYPE = 10 (MAVLink)
- Set RNGFND1_MAX = to set range finder’s maximum range
- Set SERIALX parameter for the port it is connected to
- Set SERIALX_BAUD = 115 (115200)
- Set SERIALX_PROTOCOL = 2 (MAVLink2)
https://ardupilot.org/copter/docs/common-rangefinder-setup.html