Could add a set mode to Manual API in action
MAVSDK version: v3.10.2
I don't find the API that change the FC mode to manual in the docs, and check the src files that is don't have a public API of set mode to Manual
This was somewhat intentional but the feature request has come up many times to just set any flight mode, so I hear you.
Also see #2128.
This is planned, however depends on first implementing the MAVLink Standard flight modes because that will make it easier to support both PX4 and ArduPilot properly.
This is planned, however depends on first implementing the MAVLink Standard flight modes because that will make it easier to support both PX4 and ArduPilot properly.
Just FYI, since it doesn't change anything for implementing this. ArduPilot implements only custom modes via the standard flight modes API, and AFAIK it is only used on ArduCopter.
Aha, thanks @hamishwillee. I'm still tempted to just expose just a string API and then have that translated to the modes internally in MAVSDK translating to either ArduPilot/PX4 modes or standard modes if possible.
Aha, thanks @hamishwillee. I'm still tempted to just expose just a string API and then have that translated to the modes internally in MAVSDK translating to either ArduPilot/PX4 modes or standard modes if possible.
You mean you'll just supply a particular string for each mode irrespective of what the flight stack supplies, or something else?
Up to you, but we want people to use standard modes, so I would expose the standard mode string if that is what comes out of the flight stack.
Right, I'd try to use standard mode and fall back to the currently existing and hard-coded modes.
In any case, I need to learn more about it before I can say more.