Marnonel6 / ROS2_offboard_drone_control

ROS2 Off-board drone control with a companion computer and PX4 over DDS (serial). Autonomous drone with path planning.
GNU General Public License v3.0
24 stars 1 forks source link

Communicatin between Pi and Pixhawk #42

Closed Marnonel6 closed 1 year ago

Marnonel6 commented 1 year ago

SETUP PX4 (Pixhawk 6X) → RPI 4B Ubuntu ROS connection: https://docs.px4.io/main/en/companion_computer/pixhawk_rpi.html (MAIN ONE) https://docs.px4.io/main/en/companion_computer/pixhawk_companion.html#serial-port-setup

Image

UART MAVLINK

https://discuss.px4.io/t/controlling-pixhawk-6c-with-raspberry-pi-4b/30712/8?u=marnonel6 I had connection problems with the Pixhawk 6c too. In my case, I was able to solve them by setting • MAV_1_RADIO_CTL to disabled and • MAV_1_FLOW_CTRL to force off See here 13 for the complete description. THIS PARAMETER DOES NOT SHOW UP!!!sudo UXRCE_DDS_CFG = 0 (Disabled) (https://github.com/PX4/PX4-Autopilot/releases/tag/v1.14.0-rc1) In a pre-release

sudo mavproxy.py --master=/dev/serial0 --baudrate 57600

Outcomes

I can see the connection over UART is working

Marnonel6 commented 1 year ago

Here is the solution I posted on the PX4 forum:

https://discuss.px4.io/t/raspberry-pi-4b-pixhawk-6x-autonomous-control/34394/4