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

Fix mission speed #11836

Merged
merged 2 commits into from
Apr 12, 2019
Merged

Fix mission speed #11836

merged 2 commits into from
Apr 12, 2019

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Apr 11, 2019

Test data / coverage
I tested using the DronecodeSDK with command make && build/default/integration_tests/integration_tests_runner --gtest_filter="SitlTest.MissionChangeSpeed" and the following configuration combinations:

  • MPC_AUTO_MODE 0 and 1 for default line tracking and jerk-limited trajectory
  • MPC_XY_VEL_MAX to 12m/s default (which is above the tested 8m/s) and on 6m/s

The speed gets correctly applied and correctly limited.

Describe problem solved by the proposed pull request
fixes #11764

Additional context
#11772, #11811

MaEtUgR and others added 2 commits April 11, 2019 11:46
It wasn't possible to fly faster than cruise speed even if planned
in the mission.

Limiting the planned cruise speed is necessary because
the smoothed trajectory mission plans to the _mc_cruise_speed and
if that's higher than the maximum it gets capped for safety by the
position controller and the result is a jerky flight.
This fixes the issue where the  DO_CHANGE_SPEED command was ignored and
the drone always travelled at the MPC_XY_CRUISE velocity.
@MaEtUgR MaEtUgR requested review from julianoes and bresch April 11, 2019 10:19
@MaEtUgR MaEtUgR self-assigned this Apr 11, 2019
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

This looks correct! Thx!

@dagar dagar added the bug label Apr 11, 2019
@dagar dagar added this to the Release v1.9.0 milestone Apr 11, 2019
@julianoes
Copy link
Contributor

julianoes commented Apr 12, 2019

Passing for me as well, thanks @bresch and @MaEtUgR!

@julianoes julianoes merged commit e88f1b3 into master Apr 12, 2019
@julianoes julianoes deleted the fix-mission-speed branch April 12, 2019 13:47
@bresch
Copy link
Member

bresch commented Apr 15, 2019

Hey guys, if I run a default SITL mission without the SDK, the drone still flies at max speed an not cruise speed...

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

Successfully merging this pull request may close these issues.

Mission speed change not working
4 participants