MAVSDK icon indicating copy to clipboard operation
MAVSDK copied to clipboard

Could add a set mode to Manual API in action

Open Staok opened this issue 1 month ago • 6 comments

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

Staok avatar Dec 10 '25 11:12 Staok

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.

julianoes avatar Dec 10 '25 20:12 julianoes

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.

hamishwillee avatar Dec 10 '25 21:12 hamishwillee

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.

julianoes avatar Dec 10 '25 21:12 julianoes

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.

hamishwillee avatar Dec 11 '25 00:12 hamishwillee

Right, I'd try to use standard mode and fall back to the currently existing and hard-coded modes.

julianoes avatar Dec 11 '25 02:12 julianoes

In any case, I need to learn more about it before I can say more.

julianoes avatar Dec 11 '25 02:12 julianoes