-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
land_detector initiate cycle immediately #12196
Conversation
dagar
commented
Jun 6, 2019
- fixes land_detector complains about timeout #12190
03748dc
to
6e860e7
Compare
This did not work for me, same error message. |
4d56146
to
30c164d
Compare
How about now? With |
30c164d
to
12b2b85
Compare
Not sure what make of this 😄:
|
_landDetected.freefall = false; | ||
_landDetected.landed = true; | ||
_landDetected.ground_contact = false; | ||
_landDetected.maybe_landed = false; |
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.
Is it possible to default initialize these values at the struct definition instead?
(Edit: Except for the timestamp, of course.)
int ret = obj->start(); | ||
|
||
if (ret < 0) { | ||
_object.store(nullptr); | ||
_task_id = -1; | ||
delete obj; |
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.
I know it's not a change in this PR, but, do we need to add an obj = nullptr
here?
Hi @dagar, I flight tested this PR and it's not working quite right, it doesn't detect properly: |
12b2b85
to
a2e264d
Compare
The problem was the |
a2e264d
to
7cb520d
Compare