feat: add VTOL control and landing on moving target - #47
Draft
beniaminopozzan wants to merge 11 commits into
Draft
feat: add VTOL control and landing on moving target#47beniaminopozzan wants to merge 11 commits into
beniaminopozzan wants to merge 11 commits into
Conversation
Custom mode + executor example demonstrating a full VTOL mission using the PX4-ROS2 Interface Library: inbuilt Takeoff, a custom mode that owns both VTOL transitions (streaming the required TrajectorySetpointType + FwLateralLongitudinalSetpointType combination during each transition, per px4_ros2::VTOL's documented usage) and the fixed-wing cruise leg via FwLateralLongitudinalSetpointType, then inbuilt RTL to return home and land rather than landing wherever the back-transition finishes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Approach previously used positionReached(), which requires the drone's own velocity to converge near zero before advancing to Descend. That never happens while continuously chasing a moving target's position setpoint, so the mode would get stuck in Approach forever. Add horizontalPositionReached(), checking only horizontal distance to the tag, and use it for the Approach -> Descend transition instead. Descend itself needed no change: it already recomputes its velocity setpoint from the latest tag position every cycle. Also add an optional "px4_namespace" parameter so the mode can target a specific PX4 instance (e.g. "/px4_1/") instead of always defaulting to instance 0, needed when the camera/tracking vehicle isn't the first one spawned. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.