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] PX4 cannot maintain altitude in position mode #24338

Open
serkanMzlm opened this issue Feb 14, 2025 · 1 comment
Open

[Bug] PX4 cannot maintain altitude in position mode #24338

serkanMzlm opened this issue Feb 14, 2025 · 1 comment

Comments

@serkanMzlm
Copy link
Contributor

serkanMzlm commented Feb 14, 2025

Describe the bug

I have a quadcopter drone built with PX4. I fly this drone in position mode using an optical flow and a distance sensor. When hovering, there is no problem, and it maintains its position. However, when I move the drone at a speed of 5 m/s, it continuously descends. Starting at an altitude of 5 meters, after moving 20 meters in the X direction, its Z position drops by about 3 meter, and it cannot maintain a stable altitude. When I stop the vehicle, it slowly climbs back to 5 meters. "In this setup, the altitude sensor is not directly connected to PX4. I read the distance sensor data via Raspberry Pi and publish it as distance_sensor, and I can see this data on QGC. When checking the log, even though the data from the distance sensor is correct, the vehicle appears to be continuously ascending in the Z-axis

To Reproduce

No response

Expected behavior

No response

Screenshot / Media

No response

Flight Log

https://review.px4.io/plot_app?log=2bf29ee9-9c62-460e-8b27-317d46bb12db

Software Version

1.15.4

Flight controller

Pixhawk 6C Mini

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

@dakejahl
Copy link
Contributor

Similar to #24058

We are investigating and working on fixing this

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

No branches or pull requests

2 participants