ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: Autonomous takeoff algorithm problems in AC 2.9.1

Open markusdnd opened this issue 13 years ago • 5 comments

Autonomous takeoff without RC remote

At the moment the way that arducopter runs do_takeoff()is that it's mode is set to loiter without pre-running motors. If motors are stopped then PID gets wound up before copter could physically lift-off. Also it introduces a chance of flipping copter in takeoff if for some reason one motor starts a bit later than others. With PID windup copter has huge jump. One way to get jump out and to lessen the danger of flipping is to pre-start the motors before starting LOITER_MODE. This is especially a problem if one is doing fully autonomous takeoff (no RC remote switched on)

Fix: Arducopter starts motors with THR_MIN speed and waits for 5 secods. This makes sure that all motors are rotating at THR_MIN specified speed.

I have used automatic takeoff multiple times without RC online. Most of the time it works nice, but when ground is un-even or when one motor happens to start later the worst case has been flip and some times I start with 40 degrees of angle which is pretty bad

markusdnd avatar Mar 14 '13 09:03 markusdnd

Note make sure the throttle_cruise value is not updated during the THR_MIN period, otherwise it will be calculated in the averaging routine to update throttle cruise.

Also problem I found is if your ESCs have auto range cal (e.g. Mystery's auto throttle calibration), this will not work as a non-straight take off will likely occur. I had this problem by default until I reflashed my ESCs with something like simonk's or MWC firmware to ensure all ESCs have the same throttle range.

cwcentral avatar May 08 '13 05:05 cwcentral

throttle cruise is updated only when the throttle is above zero (I've just checked).

I'm a bit unsure as to why the auto throttle calibration escs wouldn't work. Are they getting confused because the initial throttle values out of the APM are too low for too long a period of time?

rmackay9 avatar May 08 '13 06:05 rmackay9

Yes, just checked, it's a '>' (not '>='). Still may want to add an '&& <some_launch_state_flag>' in the event min throttle is changed.

Possible, I'm seeing it on the Mysterys 20 & 30s, using their built in auto cal, the copter may take off with a bias (not straight). It was resolved with flashing against simonk firmware.

cwcentral avatar May 08 '13 06:05 cwcentral

Just had a flip on auto take-off, ground was not level so I'm guessing there was some lag on one motor causing it. Luckily minimal damage, I will try to arm and start the motors slightly, then switch to auto. But as said before, this is critical for no-rc missions.

zmoothrc avatar May 21 '13 12:05 zmoothrc

In AC3.0-rc2 (and higher) we have changed it so that the navigation controllers don't run until you raise the throttle to indicate a take-off. In 2.9.1b (and earlier) the navigation controllers would run as soon as you switched into AUTO mode. So this means there should be no run-up in the navigation controller I terms. The only remaining issue (I think) is that the target position is still loaded when you enter auto mode. The possible issue here is that the GPS location could move a little between the time that you switch to auto and the time that you raise the throttle...still, i think this is far less likely to cause problems.

I'd like to close this issue now and if there are still other problems we can raise them as new issues.

rmackay9 avatar May 22 '13 01:05 rmackay9