AeroRust / mav

Rust crates for the MAVLink lightweight messaging protocol for communicating with drones (and between onboard drone components).
http://aerorust.org/mav/
19 stars 8 forks source link

Explore how to use MAVSDK server for ArduPilot #4

Open elpiel opened 3 years ago

elpiel commented 3 years ago

I've recently asked in the ArduPilot community on Discord if it's possible to use MAVSDK for ArduPilot. Apparently, the MAVSDK server is hardcoded for PX4 specifically and there might be more than a few differences.

This should be explored so that we can see what it would take to use the MAVSDK server for ArduPilot.

Basically mavsdk will runtime detect which autopilot it connects to, but some functionality is hardcoded to px4 - for instance Ardupilot uses waypoint 0 to store the home location, so missions are effectively indexed from 1. Px4 doesn’t, so missions are indexed from 0. Takeoff, land, etc should work.

ArduPilot related issues for its support in the MAVSDK server:

ykhedar commented 1 year ago

Basic support for Ardupilot exist now (mission upload, start, basic actions, param set-get etc.) so maybe you can give it a try and open another issue if you face some specific problem.

elpiel commented 1 year ago

Thanks for letting me know.