Copter doesn't stop going up after take off

Hi Everyone,

I’m trying to run the example for takeoff of the arducopter, but at take off it continues to go up.
After I do takeoff 5, for example, and checking the altitude by the I get the following:

GUIDED> arm throttle
GUIDED> APM: Arming motors
Got MAVLink msg: COMMAND_ACK {command : 400, result : 0}
ARMED

GUIDED> 
GUIDED> takeoff 5
GUIDED> Take Off started
Got MAVLink msg: COMMAND_ACK {command : 22, result : 0}

GUIDED> alt
GUIDED> Altitude:  0.9
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  2.1
QNH Estimate: 1017.2 millibars

GUIDED> altAPM: EKF2 IMU0 in-flight yaw alignment complete
APM: EKF2 IMU1 in-flight yaw alignment complete

GUIDED> Altitude:  4.1
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  4.1
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  4.3
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  4.3
QNH Estimate: 1017.2 millibars
 alt
GUIDED> Altitude:  4.3
QNH Estimate: 1017.2 millibars
 alt
GUIDED> Altitude:  4.3
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  4.4
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  4.4
QNH Estimate: 1017.2 millibars

GUIDED> alt
GUIDED> Altitude:  4.4
QNH Estimate: 1017.2 millibars
 alt
GUIDED> Altitude:  4.4
QNH Estimate: 1017.2 millibars
alt
GUIDED> Altitude:  4.4
QNH Estimate: 1017.2 millibars

At this point the copter is way above the 5 meters and altittude doesn’t change even though the copter keeps going up. Also, I’m running the simulation in gazebo. I should add that if I try to take off to a lower altitude the same happens. For instance, if I try to take off to 2 I get a fixed altitude at 1.7 and the copter keeps going up.
Cheers,

1 Like

Hello Hugo .
Did you solve this problem ? Please help to me :pensive:

You should program the takeoff module separately and with some limits or clock.

or else try to initiate land command.

I had the same thing happen using Gazebo 7 and the ardupilot repo SITL with the ErleCopter. (I hadn’t noticed this with the base iris model) I changed the ardupilot code base to the erlecopter fork, gazebo branch and it worked fine:

https://github.com/erlerobot/ardupilot.git -b gazebo

Hi @Onur_Demircan

I’m sorry for such a long wait. I haven’t been working with ardupilot for a long time until recently.
And of course as karma goes, I just had the same problem again when trying to set up a system in a new machine.

I believe the that there might be some incompatibility with different versions of software, so I just rebuilt the ardupilot version I had in my old machine and it worked.
As I still haven’t uploaded it to github I share here a link to the .tar.gz file.
https://drive.google.com/file/d/1ImnC5ANEZGcPpkVlrkD3c7Tw0Exu_KDS/view?usp=sharing

Unzip that and try it. I should mention that I’m using mavproxy 1.6.1 on ubuntu 16.04LTS

Hope it helps (however late)

Cheers,
Hugo