We believe we’ve encountered a bug that occurs when trying to operate both a GPS and a rangefinder on the CAN ports of the flight controller.
Using the Pixhawk Cube Orange, we connected the here3 GPS into CAN port 1 and the US-D1 altimeter into CAN port 2. We configured the parameters as follows:
For the here3 GPS:
CAN_D1_PROTOCOL: 1 set virtual driver of CAN1 to DRONECAN
CAN_P1_DRIVER: 1 set this parameter to enable CAN 1 bus
GPS_TYPE: 9 set the communication protal type of GPS 1 to DRONECAN
NTF_LED_TYPES: 231 Set to DRONECAN for LED type
For the US-D1:
- CAN_P2_DRIVER = 1 (second can port driver set to driver 1)
- CAN_D2_PROTOCOL = 7 (USD1 protocol for driver 1)
- RNGFND2_TYPE = 33 (USD1_CAN)
- RNGFND2_MIN_CM = 50
- RNGFND2_MAX_CM = 4500
- RNGFND2_GNDCLEAR = 10
With these parameters selected, the here3 GPS works correctly, but the US-D1 does not provide any output.
If the devices are swapped, and the US-D1 is connected to CAN port 1 and the here3 GPS to CAN port 2, and the parameters are changed accordingly, the US-D1 will work correctly and the GPS will not work. Only the device connected to CAN port 1 seems to work correctly.
Is there a problem with our Copter parameter values, or is there another bug occurring?