-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
mission: add delay before camera action #131
Conversation
plugins/mission/mission_impl.cpp
Outdated
if (!last_position_valid) { | ||
// In the case where we get a delay without a previous position, we will have to | ||
// ignore it. | ||
LogErr() << "Can't set camera actoin delay without previous position set."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo "actoin"
LGTM. |
You're right. The problem is that we just send a command to the gimbal what it's setpoint is but we really don't know how long it will take it. Even if the gimbal would only acknowledge the command when it has reached the setpoint, the firmware might not even wait for a command to be completed before continuing its mission. What I'm saying is that this would require a bunch of changes to avoid a delay like this. |
Fair enough. I guess also that even if one camera gimbal provided position feedback, that wouldn't be true of all of them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@julianoes please rebase and merge! |
This adds the possibility to add a delay before taking a picture or starting a video. This is used to wait for a gimbal to reach its orientation, or a vehicle to slow down. The current implementation is not optimal because it is based on the `LOITER_TIME` waypoint instead of the `NAV_DELAY` command which would be more appropriate but is not supported (yet).
After rebasing, support to download mission items was required and therefore added here.
52c0103
to
ae8dede
Compare
This adds the possibility to add a delay before taking a picture or
starting a video. This is used to wait for a gimbal to reach its
orientation, or a vehicle to slow down.
The current implementation is not optimal because it is based on the
LOITER_TIME
waypoint instead of theNAV_DELAY
command which would bemore appropriate but is not supported (yet).