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

land_detector complains about timeout #12190

Closed
julianoes opened this issue Jun 5, 2019 · 5 comments · Fixed by #12196
Closed

land_detector complains about timeout #12190

julianoes opened this issue Jun 5, 2019 · 5 comments · Fixed by #12196
Assignees
Labels
bug Sim: SITL software in the loop simulation

Comments

@julianoes
Copy link
Contributor

Recently with SITL I see this error output on startup:


ERROR [land_detector] Timed out while waiting for thread to start
INFO  [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 14570 remote port 14550
INFO  [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO  [mavlink] MAVLink only on localhost (set param MAV_BROADCAST = 1 to enable network)
...

To reproduce:

make px4_sitl jmavsim

@dagar any idea?

@julianoes julianoes added bug Sim: SITL software in the loop simulation labels Jun 5, 2019
@dagar
Copy link
Member

dagar commented Jun 5, 2019

Recently as in today, or earlier?

@dagar
Copy link
Member

dagar commented Jun 6, 2019

Can you try #12196?

@mcsauder
Copy link
Contributor

mcsauder commented Jun 11, 2019

Hi @julianoes and @dagar , I think I have it fixed in PR #12209 at the schedule call here. Let me know if that works for you.

(NOTE: 8ecb925)
(NOTE 2: The error came from the wait_until_running() call and returned here.)

@mcsauder
Copy link
Contributor

mcsauder commented Jun 11, 2019

One last thought, changing from the present ScheduleOnInterval() call to ScheduleNow() preserves the previous behavior prior to the general work queue, so this should be a safe change when it is accomplished: https://github.com/PX4/Firmware/blob/53aa4130a8cc549887106b077aae2f77bcacf662/src/modules/land_detector/LandDetector.cpp#L69

EDIT Updates: ScheduleNow()required a (missing) ScheduleDelayed() I've flight tested that fix. in PR #12209 .

@mcsauder
Copy link
Contributor

@dagar , adding a ScheduleNow() call allows the ModuleBase::wait_until_running() call to succeed.

This means that _object.load() doesn't pass unless ScheduleNow() gets called. Do you see what's going on there?

dagar added a commit to dagar/PX4-Firmware that referenced this issue Jun 16, 2019
dagar added a commit that referenced this issue Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Sim: SITL software in the loop simulation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants