Loiter Braking Instability

We’ve been working on tuning a quadcopter and are running into instability when the vehicle is braking in loiter mode.

When braking from high speeds the vehicle will rock back and forth several times before settling down, particularly when flying diagonally into the wind. Looking in the logs, the roll overshoots the desired roll (and pitch overshoots desired pitch) significantly (some flights upwards of 15 degrees).

PosHold doesn’t exhibit this rocking behavior, but skids/slides a lot more than desired.

We’ve done an initial tune, added a harmonic notch filter and a couple autotunes and have been playing with these loiter/loiter brake parameters (I included what they were set to in the atttached bin file):
LOIT_ACC_MAX 450 cm/s/s
LOIT_ANG_MAX 25 deg
LOIT_BRK_ACCEL 250 cm/s/s
LOIT_BRK_DELAY 0.3 s
LOIT_BRK_JERK 50 cm/s/s/s

Unfortunately we haven’t found a combination that gives us good braking behavior. Any advice on which parameters you would tweak to fix this behavior? Does this look like a loiter parameter issue, a general tuning error or something else?

Here’s a link to the bin file and short video showing a few examples:
https://drive.google.com/file/d/10pUE46va7G8v7XazLJyyqrGFf-pcr8ZQ/view?usp=sharing

Your INS_HNTCH_REF,0.2974782 (the starting point for filtering) is higher than you hover thrust MOT_THST_HOVER,0.2554461 so harmonic notch filtering will not happen until thrust increases to 0.297 or more.

Set INS_HNTCH_REF to 0.2 and rerun Autotune

Try these Loiter params too
LOIT_ACC_MAX,600
LOIT_BRK_ACCEL,300
LOIT_BRK_DELAY,0.3
LOIT_BRK_JERK,300

Did you manage to solve this problem? I am facing the same situation with my drone :frowning:

Generally instability in Loiter is poor tuning elsewhere (attitude control).
So there’s no 1 simple fix, especially without a log file to check.
Also see if you can better describe what you see, and share a link to a .bin log file where this is happening.

Hi i have a simmular problem with a 30inch coter a try to tune.
copter is responding good and auto tune looks okay.
but when flying in loiter, when copter gows in to braking its get verry unstable.
can somboddy give me some advise.

Here is the link with log:

Use MethodicConfigurator/QUICKSTART.md at master · ArduPilot/MethodicConfigurator · GitHub

Hi Lucas
Aim using thé Methodic configurator and that works great but that docent give we a insight on whats is going on here.

Have you reached step 47 ? post a .zip file with the files created by the configurator.

yes a redused the speed to 5m/s
and max_angle to 15deg for al flight modes but whith a simmeler copter a can go way higher then this.
when a fly in althold same problem ocurse but not so vailend

Here is the file 47 with parrameter.
this is how its set at the moment were the copter behaves

Not what I asked. I asked for a zip file with all the files that the configurator created in the vehicle configuration directory.

Hi Lucas here the zip file.

20240903T155526Z-001.zip (165.5 KB)

Ben none of the “change reason” was touched. I can not understand most of the decisions you made while configuring the vehicle. For instance the GNSS configuration is very strange. But it might be correct under special circumstances. But I do not know your circumstances because no “reason changed”.

And add a vehicle.jpg file.

Oke i wil set thé reason changs and send you thé new zip file

Hi Lucas here the new zip file

my opinion is that the body chell off the drone is creating a hi presure bubbel onder the top body when braking and causes the drone to reduse the motors so match that it becoms unstable.

20240904T121125Z-001.zip (163.1 KB)

Lots of parameters were wrong or invalid. And a vehicle.jpg file is still missing.
yetie.new.zip (150.8 KB)

Manual PID adjustments are meant to be done in file 16 and not in file 11

Use a program like “beyond compare” or “WinMerge” to compare the contents of the directory I created with the one you provided.

Oke i wil start over and do thé configuration compleet with thé Methodical configurator and send you thé vehicle.jpg

Use the .zip file I sent you. Unzip it and open that directory in the configurator. And add/update all “reason changed” or “notes” field.