Hi everyone, I am having a problem with my quadcopter rapidly gaining altitude when flying in auto mode. I am flying using the mission below.
My quad takes off and flies to the first waypoint as expected, however once it reaches there and turns around to face the second waypoint, it increases altitude rapidly, despite it not being programmed to change altitude. This has happened multiple times, and I have to switch back to manual mode when it gets up to around 50 m because it is clearly not following the mission at that point. I have reviewed the log from these flights, and the barometer readings are accurate, so the flight controller should realize that it’s altitude is too high.
I have tested my mission using the Mission Planner simulator, with all the same parameters as my quad. In the simulation it completes the mission exactly as I would want it to, taking off and flying at the correct altitude for the whole mission. I have had this same problem both with the APM 2.8 (ArduCopter v3.2.1) and Pixhawk 4 (ArduCopter v3.6.4).
I was wondering if anyone has had similar problems before, or has any suggestions for what could be causing this?