Troubleshooting

List of known problems and their solutions. If you find new problems and find a solution for it, please consider contributing to this section.

MAVROS and ArduSub integration problems:

A common problem that occurs over time is that some packages are upgraded in Ubuntu 22.04 and the connection between MAVROS and ArduSub stops working. I don’t know how to fix this issue long term, but a workaround is to update MAVROS and/or ArduSub and check if it works again.

Before updating MAVROS and ArduSub upgrade your Ubuntu:

sudo apt update && sudo apt upgrade

Update ArduSub:

Due to ArduSub usage of submodules, it is simpler to remove the whole ArduPilot repository and build it from scratch again.

rm -rf ~/ardupilot

SUAVE is tested with ArduSub commit 571e8c7. To test a different version, select a branch or commit from the ArduPilot repository, follow the ArduSub installation instructions, and rebuild the workspace. ArduPilot, MAVROS, and the Gazebo plugin must remain mutually compatible.

Update MAVROS: To update MAVROS, change its version in the suave.repos file with the newest version of mavros, or simply change the version to ros2. Then pull the repo:

cd ~/suave_ws/
vcs pull src

Alternatively, instead of updating the suave.repos file, you can just update mavros manually:

cd ~/suave_ws/src/mavros
git checkout ros2
git pull

Don’t forget to rebuild the suave workspace:

cd ~/suave_ws/
colcon build --symlink-install