Added takeoff/land with given average velocity commands to high level commander #624
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.
As discussed with @krichardsson via email.
This PR adds support for two additional commands in the high level commander: takeoff with given average velocity and landing with given average velocity. It also adds support for specifying altitudes relative to the current altitude in these commands. Zero and negative velocities instruct the Crazyflie to pick a "safe" takeoff / landing velocity instead, which is currently set to 0.5 m/sec.
I haven't had the chance to test this in our lab yet (only at home on my desk), hence the PR is still in draft status. I plan to do the lab tests tomorrow -- until then, any feedback is appreciated.
(For what it's worth, it would be nice to have a
GO_TO_WITH_MAX_VELOCITY
command as well in the high level commander, with separate limits for the XY plane and the Z axis. Having safe defaults for these would allow higher level interfaces to provide a "go to" command that takes the target coordinate only and figures out the rest).