Range Finder for Altitude hold flights

Hello Friends,
I want my plane to maintain altitude in steady flight based on readings it gets from low level sensor or a RADAR based altimeter. Is this something already in the code with “rangefinder.h” or the code needs to modified or compiled to enable me to use the sensor. I plan on using special sensors to maintain low level flights at below 30metres.
Thanks in advance. Looking forward to hear from all!!!

Hi,

I have a similar problem, I am trying to simulate an external range finder with sending a mavlink_distance_sensor_t message from ground station to arduplane but nothing happens. I would like to achieve ‘altitude hold’ mode flight.
Which modes I shoud use? It should run in AUTO MODE or other? Do I need to set some other parameters ?
What is missing?
Thanks in advance.

Best Regards,

Any update on this? I’m trying to do something similar. It seems like most of the rangefinder functions in normal flight are specific to a copter, and not much is available for a plane.