How to set the altitude of the flight

I’m trying to make the drone fly at a certain altitude. I can set the altitude of each waypoint in QGC mission mode but between two waypoints drone would go higher than target point altitude.

  • I can set the max_altitude_ parameter in rqt with avoidance/global_planner but can not change it with QGC or avoidance/local_planner