-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Support offboard velocity setpoints for rover #13225
Merged
Merged
Conversation
This file contains 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
6ac9ffa
to
3289b36
Compare
Awesome! Did you test that using MAVROS or MAVSDK? |
@julianoes I tested it using mavros. I had a discussion with @ItsTimmy and realized that the velocity control and frames were not being handled correctly. I will try to follow up on this. |
julianoes
reviewed
Oct 18, 2019
Good to go? |
@dagar On my side yes. Not sure why the hardware test is failing though. |
julianoes
approved these changes
Oct 24, 2019
Looks like unrelated CI issues. |
This was referenced Oct 25, 2019
This was referenced Nov 2, 2019
Closed
2 tasks
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.
Describe problem solved by this pull request
Previously only position setpoints were available for offboard control of a rover. This has been problematic as the L1 position controller which rover uses require global position fixes, as raised in the rover call(17/10/19).
This PR adds support for offboard velocity setpoints for rover and potentially enables controlling the vehicle without GPS position fixes.
Describe your solution
The rover tracks the velocity supported by
SET_TARGET_POSITION_LOCAL_NED
. The speed of the setpoint is constrained to the cruise throttle.Describe possible alternatives
The velocity tracking is a very simple one, where it tries to track the direction of the setpoint and the speed of the setpoint. Therefore the vehicle never goes reverse to take a shorter route to track the setpoint, in case the direction of the setpoint is more off than 90 degrees.
A more elegant solution can be discussed.
Test data / coverage
Logs from examples velocity inputs tested in SITL