-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Improve integration tests, add integration tests to CI #642
Conversation
c3ab360
to
8dc2b05
Compare
d4a46e9
to
0c3867f
Compare
3324fa3
to
0628cd7
Compare
Note to self: |
f31fb29
to
c020c80
Compare
c020c80
to
430b9fa
Compare
This improves some printfs, makes sure flags used by different threads are atomic, and waits longer for altitude checks in order to pass them.
We shouldn't be doing a sync call inside a async call, therefore, we now move that to the thread pool.
This adds a simple helper that polls until a condition is true.
Instead of calling the callback directly on the receiver thread we are now using the thread pool which means that we don't block the receiver thread if the user does something involved in the callback. Also, by making a copy before passing the callback to the thread pool, we enable the subscription to cancel or change itself. For instance using `nullptr` a subscription can cancel itself again if it no longer needs updates.
This adds a helper function to check for a condition at 1/10 of the timeout until the timeout.
We should abort a test if we don't find a system.
Otherwise, we don't manage to land in time.
Eventually this `has_gimbal` check needs to be smart enough to know if there is a gimbal connected to the autopilot.
This way we don't report takeoff before actually doing it and we set the altitude before arming.
This needs to be replaced with the Path Checker.
This follows what the docs actually claim.
This adds a docker image with pre-built PX4 SITL.
430b9fa
to
a54fde9
Compare
3d51cc8
to
aea5783
Compare
aea5783
to
2dd5c3f
Compare
We only support the _INT protocol for missions. Therefore, we need to nack the non-_INT variant.
b5ef6c8
to
f87b006
Compare
@JonasVautherin it's passing! Want to review? 😄 |
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.
Nice! Thanks a lot!
LogWarn() << "Speed should be: " << speed_correct << " m/s, " | ||
<< "actually: " << speed_actual << " m/s"; | ||
} | ||
// TODO: enable these again with a better check not susceptible to time. |
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 guess we keep that disabled as well?
Before we're able to enable all integration tests in CI we need to make sure they pass.
Addresses #639.