-
Notifications
You must be signed in to change notification settings - Fork 24
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
MissionItem is missing Actions (takeoff, transition, land) #198
Comments
Yes you're right, a Maybe a transition could be added as a @julianoes what do you think? |
Or it could be done as array of |
The API is defined in the proto file here, then the C++ headers are auto-generated from that. But we need to find a way to add those features that is compatible with the auto-generation and hence the other supported languages (python, swift, java, go).
The MAVLink logic is implemented manually here (inside the framework of those auto-generated headers, of course).
Yes maybe, what are the available VTOL actions? I'm only aware of the transition ones 🙂. For takeoff, why is it not fine to have MAVSDK arm before the mission? Then it will automatically takeoff, right? For landing, we currently have SetReturnToLaunchAfterMission, I wonder if we could not change that for some |
I was thinking about whole mission planning idea same way as it is implemented in QGroundControl. Each step could be waypoint or waypoint with additional action (Takeoff, transition, landing). As you said, landing could be done with |
Oh right, then instead of |
That was exactly what I was thinking about. But array or single variable of Action class for each waypoint? For simplicity it could be just one action. What about action behaviour? Will it refuse transition before landing? What if I will create Takeoff Action with different position of plane. Will it takeoff on current position and then go to defined position after setpoint altitude is reached? |
Agreed, one action per
This is a PX4/MAVLink question, right? I guess MAVLink does not specify that, and I don't know what PX4 does. But maybe that's not MAVSDK's problem, is it?
I think that actions for another type of vehicle should just be ignored, no need to refuse the mission. So if your third waypoint is a VTOL transition-to-fw, a VTOL will transition at that point, but a fw or an mc will both ignore that action. This said, it is a PX4 question again, because MAVSDK will just send them. Do you know what PX4 does in such a case? We will probably need to add a way in MAVSDK to know if the drone is a multicopter, fixedwing or vtol. So that the client code could do something like this (pseudo-code):
|
So as I understand current CameraAction: After point is reached, MAVSDK sends Action command and autopilot reacts on it? |
No, the whole mission is uploaded beforehand, just like what QGC does. Under the hood, the |
Ok maybe I understand it now. So additional actions in |
Yes. I mean, not automatically, you have to implement that part 🙂. But that's the idea 👍 |
Perfect, now where exactly new implementation needs to be done? In Swift version of MAVSDK or C++ version? |
@rligocki have a look here: https://mavsdk.mavlink.io/main/en/cpp/contributing/plugins.html Of course, for this you would only extend the existing plugin, and not create a new one. So the first step is here: https://github.com/mavlink/MAVSDK-Proto |
Currently I work on mission planning system and I found, that there is no option to add transition or any other action except creating waypoint. Am I missing something? I have idea to add array of actions with extension that will be executed when waypoint is reached.
The text was updated successfully, but these errors were encountered: