According to the DJI Mini 2 manual, the platform has a vision system as well as Infra red sensing system (p16).
These systems already do height measurements for stability.
Is it possible to add the following functions utilizing these functions:
Display the height above ground when below 10m.
Have a pre settable height warming indicator below 10m.
Irregular terrein and slopes will have an influence, but these function can improve safety when low flying, for instance when following a track on the ground and flying up a slope.