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

Copter: NAV_LOITER_TURNS Broken on 4.1.0-DEV #17126

Closed
giacomo892 opened this issue Apr 8, 2021 · 6 comments
Closed

Copter: NAV_LOITER_TURNS Broken on 4.1.0-DEV #17126

giacomo892 opened this issue Apr 8, 2021 · 6 comments

Comments

@giacomo892
Copy link
Contributor

Bug report

NAV_LOITER_TURNS WP type doesn't work on master with default params.

The copter reaches the WP and waits there forever without starting to circle.

I've tracked down the issue in the fact that the navigation gets "stuck" inside the function:
bool ModeAuto::verify_circle(const AP_Mission::Mission_Command& cmd)

with copter.wp_nav->reached_wp_destination() being false.

working revision: 67f2c79 before the SCURVES PR

image

broken behaviour on master:

image

Waypoint file to test with

way.txt

Platform
[ ] All
[ ] AntennaTracker
[ x ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

I think @rmackay9 @lthall and @IamPete1 can have a say on this

@shellixyz
Copy link
Contributor

I can reproduce the issue

@rmackay9 rmackay9 changed the title NAV_LOITER_TURNS Broken on master Copter: NAV_LOITER_TURNS Broken on 4.1.0-DEV Apr 9, 2021
@rmackay9
Copy link
Contributor

rmackay9 commented Apr 9, 2021

Great, thanks for the report. I've added this to the 4.1 issues list (#16478) so it won't be forgotten.

@giacomo892
Copy link
Contributor Author

Oddly enough it worked in real life but it is broken on SITL at least for me and @shellixyz Screenshot_20210410-091803.jpg

@rmackay9
Copy link
Contributor

rmackay9 commented Apr 11, 2021

@giacomo892, @shellixyz

thanks again for this report and I've got a fix now I think. maybe you could give it a try when you get a second?
#17142

The problem only happened if lat,lon,alt were specified so perhaps that's why it only happened in SITL.

@giacomo892
Copy link
Contributor Author

My pleasure @rmackay9 ! It seems to work fine on SITL now. Will fly test it as soon weather allows. Thanks again for this prompt fix!

@rmackay9
Copy link
Contributor

fixed in master, thanks for the report and testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants