Hello Everyone,
How can I use mavsdk to sent a list of supported flight modes to QGC (or any other GCS) and allow the GCS to select a flight mode?
I am trying to connect my autopilot via MAVSDK to QGC. For this I took some inspiration from the autopilot_server example. But QGC never shows the allowed flight modes in it’s GUI, as you can see in the picture.
In my assumption the code below (set_allowable_flight_modes) would communicate to QGC that the flight modes auto, guided, and stabilized are available but QGC does not show that.
// Allow the vehicle to change modes, takeoff and arm
actionServer.set_allowable_flight_modes({true, true, true});
actionServer.set_armable(true, true);
I also tried to subscribe to flight mode change but it get’s never called.
auto flight_mode_change_handle = actionServer_->subscribe_flight_mode_change(…)