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

mavsdk_tests: add multicopter alt hold test #24396

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

dakejahl
Copy link
Contributor

@dakejahl dakejahl commented Feb 22, 2025

CI SITL test for multicopter takeoff and hold. This is for testing EKF height estimation issues.

@dakejahl dakejahl force-pushed the pr-multicopter_altitude_hold_mavsdk_test branch 2 times, most recently from 37eee44 to 2e18156 Compare February 22, 2025 05:20
@dakejahl
Copy link
Contributor Author

dakejahl commented Feb 22, 2025

Tolerance Result
0.5m FAIL
1.0m FAIL
2.0m PASS
5.0m PASS
10m PASS

If I increase the sleep time from 30 seconds to say 2 mins I bet we'd see failures at 2m. In gz sim with x500 after a few minutes of hovering I see up to 2.5m error.

@dakejahl dakejahl marked this pull request as ready for review February 22, 2025 07:32
@dakejahl
Copy link
Contributor Author

dakejahl commented Feb 22, 2025

This PR also fixes log upload on failed tests. However the logs can be pretty big, so maybe we want to reduce SDLOG_PROFILE for SITL tests.

135MB log file from the latest failure
https://github.com/PX4/PX4-Autopilot/actions/runs/13471697096
image

mrpollo
mrpollo previously approved these changes Feb 25, 2025
@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-feb-26-2025/43951/2

@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-feb-26-2025/43951/1

@mrpollo
Copy link
Contributor

mrpollo commented Feb 26, 2025

Can you please update the models on this branch so the tests pass?

PX4/PX4-gazebo-models#81

@dakejahl dakejahl force-pushed the pr-multicopter_altitude_hold_mavsdk_test branch from f02e02a to 4e4f35b Compare February 27, 2025 04:52
@dakejahl dakejahl force-pushed the pr-multicopter_altitude_hold_mavsdk_test branch from 4e4f35b to a46d254 Compare February 27, 2025 05:13
@dakejahl dakejahl force-pushed the pr-multicopter_altitude_hold_mavsdk_test branch from a46d254 to 49f58c7 Compare February 27, 2025 05:20
@dakejahl
Copy link
Contributor Author

dakejahl commented Feb 27, 2025

Looks removing the random walk from the gazebo-classic IMU fixes all of the mavsdk-sitl tests. So indeed the altitude issue was likely causing the failures.

Shall we remove the random walk from all of the airframes now? @bresch maybe an explanation would be helpful on how things have changed, @Jaeyoung-Lim had some concerns about why the sim worked well before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants