When the drone goes to loiter mode it is taking RC input. If you don’t have an RC input setup the drone will see the throttle channel as minimum value and start a descent until it hits the ground.
Oh, I was also going to do something like this soon. I have a drone with optical flow (and no GPS) and am in the process of making my drone autonomous and would have liked to takeoff in loiter because flow hold caused wobbles. I also don’t have any RC configured. So what is the way to do this?
Loiter mode is for pilot control. If you’re doing everything from MavProxy or a GCS then just use guided mode or auto mode. Once the drone reaches it’s intended point in guided it will just hover there until you tell it to do something else.
Yeah I learned Guided mode uses the same control loops as loiter. So now I’m using Guided by setting an ekf origin and so I can also send position and velocity targets