-
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
MAVSDK testing #13075
MAVSDK testing #13075
Conversation
6eb3b47
to
4a223b4
Compare
32c996a
to
c432d0a
Compare
fb63266
to
421cb98
Compare
Why catch2 instead of gtest? |
|
f0b1d14
to
c0e36ca
Compare
32480db
to
78187dc
Compare
Nice, looking forward to understandable and reproducible integration tests! |
Yes that would be reasonable. |
@julianoes Could you rebase this PR? I'd like to contribute to it. |
We now error if px4 or gzserver are already running on startup, and we also make sure to terminate what we started if interrupted.
This is a workaround to get the landed state published properly in mavlink_messages.cpp.
This reverts commit 51e1703cbd1bf008bf761ad663147f20d60656f0.
Unfortunately this commit contains two things: 1. Some cleanup and renaiming. 2. An additional wait until lockstep has been initialized. By waiting until HIL_SENSOR messages arrive including timestamps we stop the startup script and prevent other modules from running until time is set up. This should resolve some busy waiting by various modules and prevent races on initialization (e.g. the landing state being subscribed by mavlink before being published by the land detector).
In general, if anything goes wrong in the startup script, we should fail entirely because things might not work as expected. In particular, this prevents that we have to press Ctrl+C twice if the simulator start call is hung waiting for the simulator to appear and start communicating. We now press Ctrl+C once and exit straightaway whereas before we would press it once to get the warning: "Startup script returned with return value: 2", and then finally exit on the second press.
ba9f76f
to
c043415
Compare
c043415
to
54a5415
Compare
MOVED TO HERE: #13772