-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set flight mode function #2128
Comments
For PX4, to go into Hold, you can do For proper support of flight modes, I'd like to use the the common flight modes which is a new MAVLink spec allowing standard and custom modes which would be (eventually) compatible with both PX4 and ArduPilot: https://github.com/mavlink/mavlink/blob/fe14d798662f687407b03e383d2a9841a8590392/message_definitions/v1.0/development.xml#L473-L502. |
what if I am not already in a mission mode? maybe in offboard switching to hold (maybe stopping offboard would do that) but generally eg. on the ground I want to change flight mode to position hold. or stabilized
I got this mode codes from forums . when I try to implement this I notice there is already a set_flight_mode in the codes. just wanted to make sure if I am on correct path or doing sth wrong?
|
It doesn't matter. Check what it does: MAVSDK/src/mavsdk/plugins/mission/mission_impl.cpp Lines 906 to 912 in d42e9f2
Yes, you should be able to build on top of the |
Is there any existing code for setting other modes? I am starting work with ardupilot drones and need them to be set to "guided" before they can get a takeoff command, and must return from "land" to "guided" to fly again. I am considering contributing once I have looked over the methodology for doing so but wanted to be sure this is not already in place |
You should not have to do that, MAVSDK should set the mode correctly when you For Ardupilot you should use the latest |
I was using the latest 1.4 built server exe for windows. I will attempt to buld main and run the same command to see how this goes. |
I am attempting to build a mavDSK-server.exe from main and I have 2 problems:
Am I just missing something in the docs or is windows missing specifically? Should I make a new ticket to discuss this? Lastly are there nightly builds of the binaries that I could use to get the latest snapshot of main and avoid this build process? |
Hi
I was just tryin to build a new function to set the flight mode command in mavsdk. I created the proto s and were just implementing the cpp when I found that there is already a function there called set_flight_mode_async that does it. is that correct? how can I change flight mode from python to sth like hold?
The text was updated successfully, but these errors were encountered: