Skip to content
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

AR_WPNav: bug fix #12119

Closed
wants to merge 1 commit into from
Closed

AR_WPNav: bug fix #12119

wants to merge 1 commit into from

Conversation

IamPete1
Copy link
Member

This is small bug (I think) fix that in combination with #12117 allows sailboats to work with the avoidance path planner, this is a example with Dijkstra's.

https://youtu.be/UzJ66stWt98

a small improvement could be made to make the Dijkstra's code work better for sailboats, It should be possible to skip intermediate points in some cases, for example here it could have jumped onto the next point and saved some tacks.

but all in all it basically 'just works'

@IamPete1 IamPete1 added Rover GSoC Google Summer of Code labels Aug 22, 2019
@IamPete1 IamPete1 requested a review from rmackay9 August 22, 2019 20:31
@@ -62,7 +62,7 @@ class AR_WPNav {
const Location &get_oa_destination() { return _oa_destination; }

// return heading (in degrees) and cross track error (in meters) for reporting to ground station (NAV_CONTROLLER_OUTPUT message)
float wp_bearing_cd() const { return _wp_bearing_cd; }
Copy link
Contributor

@rmackay9 rmackay9 Aug 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 2nd one is not a bug actually. It's not really in the mavlink spec but there are two mavlink messages that we take advantage of to show the user both the intermediate and final destination. So the "POSITION_TARGET_GLOBAL_INT" message is used to send the intermediate position. The "NAV_CONTROLLER_OUTPUT" is used to send the final position.

If necessary we can discuss with @tridge on whether we are doing the correct thing or not by using these two mavlink messages.

Copy link
Contributor

@rmackay9 rmackay9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IamPete1, nice find on the first one. Can you remove the 2nd change and then I'll merge this, txs!

@rmackay9
Copy link
Contributor

I've merged in the first change and left out the 2nd one so closing, txs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC Google Summer of Code Rover
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants