Open hamishwillee opened 7 years ago
Agreed, the WP index is out-of-bounds is probably not related.
Make sure the autopilot is recognised as px4 by adding debug here: https://github.com/dronekit/dronekit-python/blob/master/dronekit/__init__.py#L1551
If it is crossing the PX4 codepath, then @squilter or @sanderux might be able to help by fixing interpret_px4_mode
in pymavlink
This error seems to be related to a flightmode that is not recognized. This should have been fixed in the lates pymavlink. What versions dronekit and pymavlink are you running?
The latest you get by following the example instructions and rebuilding dronekit: dronekit (2.9.1) pymavlink (2.0.6)
Pymavlink should be 2.2.2 i believe, can you try upgrading?
Thanks @sanderux - pymavlink v2.2.3 works. Created https://github.com/dronekit/dronekit-python/pull/728 to up the number. @peterbarker can you merge if there is no reason for us "not" to do so.
PX4 dronekit example here doesn't work.
Specifically
The script connects and the vehicle takes off. But Dronekit gets stuck on first step takeoff.
It reports
The vehicle actually does fly and follow the mission, so the bug here is the error messaging, which is scary and unhelpful.