AltHold mode, drone climbs too fast

Hello

I have an issue with AltHold mode.

I arm quad in AltHold mode, then I raise throttle a bit (less then middle), it starts to fly stable but around 1m altitude. I want to increase altitude and as soon as I go slightly over middle, it goes up rapidly (around 10 m/s). I lower throttle fully, nothing happens and then I usually quickly disarm and and drone falls.

See screenshot (only last part, after 2:00)
Red - altitude * 100, Green - throttle, Blue - motor output

Parameters are default:
PILOT_ACCEL_Z=250
PILOT_SPEED_UP=250
PILOT_SPEED_DN=0
THR_DZ=100

I can decrease PILOT_SPEED_UP, PILOT_ACCEL_Z and try again but I want to understand the issue. As I had throttle around 650 and looking at this code
ardupilot/ArduCopter/Attitude.cpp at master · ArduPilot/ardupilot · GitHub, I should have desired_rate = 250 * (650 - 600) * (1000 - 600) = 30. 30 cm/s while I had multiple meters / s.

Attached:

You didnt set throttle parameters, they are at default. Set them per documentation. Check hover throttle in logs. Also all params are default, set notch filter and run auto tune after you set PSC_ACCZ_I to 2 x MOT_THST_HOVER
PSC_ACCZ_P to MOT_THST_HOVER.
Also set Initial params in Mission Planner and set properly Mot_spin_min and Mot_spin_arm
There is also a grear tool for setting up. Search forum for “ArduPilot methodic configurator” software.

1 Like

Thanks Goran,
I actually did it partially before How to methodically configure and tune any ArduCopter but skipped a lot of steps as I thought they are not reauired for first flight in AltHold. I will do it again from scratch

As I understood it’s mostly about Motor Thrust scaling

1 Like

See Quick overview of the entire methodic process all steps up to 18 are MANDATORY for the first flight.

And steps 19 - 23 are the minimalist (bare-minimum required) tune for safe flight.

After that the optional tuning steps start. Not before it.

Edit: steps 06 and 17 are optional in some situations too.

2 Likes

I followed instruction How to methodically configure and tune any ArduCopter and it’s the same issue on “3. First flight”.

After some careful test maneuvers switch to ALTHOLD and hover for 30 to 40 seconds one to two meters above the ground

I can’t hover, after drone starts to climb up, it goes up with the same speed even after I set throttle to minimum.

Let me remind you that it’s after 17_notch_filter_setup, so before 19_throttle_controller

Also I have not found in this instruction when I should set PSC_ACCZ_I to 2 x MOT_THST_HOVER and PSC_ACCZ_P to MOT_THST_HOVER.

However, I was able to do a Stabilize flight, which was pretty stable, so I believe my misconfiguration is in AltHold mode parameters, not in common flight parameters.

https://www.dropbox.com/scl/fi/9jtgg8axu77ri3vpoxt7i/althold.BIN?rlkey=38fwav08235z41qptn6e4ajem&st=466phbrl&dl=0
https://www.dropbox.com/scl/fi/51inofg2othh7g5zs3tjn/stabilize.BIN?rlkey=tof5hq1mnbhxz95c7v407e2ze&st=gbcxives&dl=0

19_throttle_controller calculates that and sets it for you. And please do use the latest version of the ArduPilot Methodic Configurator

2 Likes

You can also manually do:
https://ardupilot.org/copter/docs/ac_throttlemid.html
In mission planner.

And proceed with 18 and 19 in AMC

I am actually using latest, yeah, you are right, it’s 20_throttle_controller in Methodic Configurator app itself.

As I understand, what I should do next

  • configure notch_results and throttle_controller based on my successul Stabilize flight log
  • test Stabilize and Althold again

Yes, that is my suggestion

it turned out that my ESC doesn’t have telemetry, so I couldn’t configure notch_results.
After configuring throttle_controller, it became worse. In Stabilize mode it starts climb dangerously quickly even on little throttle. In Althold it remained the same, it climbs not so fast but after starting climbing never goes down even if throttle on zero.

I will buy other stack with more powerful FC MCU and ESC telemetry and try again with notch configuring. But I am sure that it’s not so important, it should be something very simple as in my case AltHold lacks even basic functionality of lowering drone.

The functionality is not missing at all, the real problem are the vibration levels, with very high vibration levels the ACC clips cause the drone to think it is falling from the sky, hence it climbs.

Correct the real source of your issue: reduce vibrations, get a stiffer frame, balance the props, etc

2 Likes