Collision prevention z axis

Hello everyone,

I’m dealing with collision prevention challenges in indoor environments, especially along the Z-axis (vertical). I’ve noticed that there’s no built-in module in PX4 that handles vertical collision prevention.
For example, imagine I install distance sensors or stereo cameras facing downward and upward to keep at least 1 meter distance from the ground or the ceiling. Right now, this is not directly possible in PX4. All DJI drones have this kind of feature, so I believe PX4 should support it too.

I was thinking about using Offboard mode to manage this logic, but that would mean switching the flight mode from Position mode to Offboard, which is not ideal for this use case.
Is anyone working on vertical collision prevention in PX4? Or is there any plan to develop it? I’d be very interested to contribute or test such a feature.

Thanks in advance!

@dirksavage88 might know

Any solution about this topic could be great

Hello,
You can reference to this page: