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] quad takeoff with flow only (no gps) does not work #24145

Open
dakejahl opened this issue Dec 20, 2024 · 3 comments
Open

[Bug] quad takeoff with flow only (no gps) does not work #24145

dakejahl opened this issue Dec 20, 2024 · 3 comments

Comments

@dakejahl
Copy link
Contributor

dakejahl commented Dec 20, 2024

Describe the bug

Quads with optical flow can't seem to reliably takeoff (get stuck on the ground) and if they do manage to takeoff end up at the wrong altitude. It seems that the Local Position Z estimate is being miscalculated. The drone will be sitting on the ground with props spinning, and the local position Z continues to increase. Altitude hold is also very unstable in general, the vehicle wanders up and down.

I've opened a PR here in hopes that someone can help test this
#24144

We observe this on physical hardware as well (dexi quads with ARK Pi6X Flow)

To Reproduce

make px4_sitl_default gz_x500_flow_aruco

Issue a takeoff command

pxh> commander takeoff
pxh> INFO  [commander] Armed by internal command	
INFO  [tone_alarm] arming warning
INFO  [navigator] Using default takeoff altitude: 2.5 m	
INFO  [commander] Takeoff detected

Watch the vehicle stay on the ground

Expected behavior

The vehicle should takeoff to 2.5m

Screenshot / Media

image

Flight Log

https://review.px4.io/plot_app?log=40b7d570-33af-4225-ac11-927feea2aa94

Software Version

#24144

Flight controller

No response

Vehicle type

Multicopter

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

No response

Additional context

No response

@patrikpordi
Copy link
Contributor

I experienced the same on hardware (dexi quads with ARK Pi6X Flow), if the setpoint is below ~2m the drone is not able to takeoff, when it does it overshoots and then slowly wanders down almost to the ground with some random jumps.
Drone is not able to takeoff:
https://review.px4.io/plot_app?log=8c200263-a86e-40f5-882c-67180bf274ff
https://review.px4.io/plot_app?log=24083308-d27c-455c-a004-ffce9d693c28

Drone is not able to hold altitude:
https://review.px4.io/plot_app?log=515fd8e7-8d49-4860-961a-7d6925bca648
https://review.px4.io/plot_app?log=e9a25a26-9fdb-4d4f-b47b-6ead5d60c23f
https://review.px4.io/plot_app?log=3fbafe76-7a5e-49fd-b80d-6e06f1a7ec43

@dakejahl
Copy link
Contributor Author

Turns out this issue is due to the X500 model in sim spawning 0.25m above the ground and dropping into place. The physical issue @patrikpordi is reporting looks the same, but must be different.

Here is the fix for sim, this solves the issue I reported above
PX4/PX4-gazebo-models#72

@DronecodeBot
Copy link

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

https://discuss.px4.io/t/quad-takeoff-altitude-hold-in-offboard-with-flow-only-no-gps-does-not-work/43017/1

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

3 participants