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

[Bug] takeoff altitude is 1m short #24496

Closed
dakejahl opened this issue Mar 12, 2025 · 6 comments · Fixed by #24508
Closed

[Bug] takeoff altitude is 1m short #24496

dakejahl opened this issue Mar 12, 2025 · 6 comments · Fixed by #24508

Comments

@dakejahl
Copy link
Contributor

dakejahl commented Mar 12, 2025

The CI failures are real
https://github.com/PX4/PX4-Autopilot/actions/runs/13820943813/job/38665877341?pr=24495

[  41.836|mavsdk_tests] Figure eight execution clockwise
[  41.836|mavsdk_tests] -------------------------------------------------------------------------------
[  41.836|mavsdk_tests] ../../../test/mavsdk_tests/test_vtol_figure_eight.cpp:39
[  41.836|mavsdk_tests] ...............................................................................
[  41.836|mavsdk_tests] ../../../test/mavsdk_tests/autopilot_tester.cpp:225: FAILED:

which corresponds to AutopilotTester::wait_until_altitude, and in the test it is set to const float takeoff_altitude = 20.f;

It looks like the takeoff altitude is set to 20m but the vehicle only climbs to 19m
https://logs.px4.io/plot_app?log=d3a7ff11-2703-4a7a-9942-dee227747676

edit: Is it the acceptance radius causing takeoff to "finish" early? The navigator-->FlightTaskAuto code is very hard to follow

@dakejahl
Copy link
Contributor Author

@bresch can you take a look?

@dakejahl
Copy link
Contributor Author

@MaEtUgR can you take a look too?

@dakejahl
Copy link
Contributor Author

This broke recently... this PR used to pass checks but is now failing on the new test (takeoff and hold altitude test...)
#24396
https://logs.px4.io/plot_app?log=ce217a84-f73c-47c6-afba-e8b40430d237

Need to get this test in and disallow overriding CI so we stop breaking things..

@dakejahl
Copy link
Contributor Author

Ahh I think it was this PR that merged yesterday
#24454
@sfuhrer can you take a look?

@sfuhrer
Copy link
Contributor

sfuhrer commented Mar 13, 2025

Thanks for raising it @dakejahl ! For once the CI was helpful, just hard to see the real failures between all the false positive ones.

@dakejahl
Copy link
Contributor Author

Yup hopefully we can get the CI fixed up for good so we can start relying on it again

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