22", 18Kg, X8 Auto Tune: Failing

Hi.

We have an 18-kilogram 22-inch X8 helicopter.
Cube Orange has 4.1.5 installed.

Motor: Tmotor P60 / 170 kv
ESC: Timotor Flame 60A
Propeller: P22x6.6
Battery: 2x6S 16Ah Serial

The recommended parameter values have been adjusted according to all tuning procedures.

For “MOT_THST_EXPO”, 0.4 looks better than 0.2.
I modified my PID in various ways
“Auto Tune: Failing to level, please tune manually”
Auto-tune does not proceed.

If there is no problem with the parameters, should we suspect a hardware problem?

Here’s my log and the latest parameter values.
Param

bin

Dynamic notch filter configured?

Thank you for your interest.
I studied and applied it.
Noise has been removed from the graph.

The parameters are as follows:

INS_HNTCH_ATT = 40
INS_HNTCH_ENABLE = 1
INS_HNTCH_MODE = 4
INS_HNTCH_REF = 1
INS_HNTCH_BW = 125
INS_HNTCH_FREQ = 80

FFT_ENABLE = 1
FFT_MINHZ = 60
FFT_MAXHZ = 150

Set these based on a MOT_THST_HOVER value of ~.33
PSC_ACCZ_I
PSC_ACCZ_P
I would set the Auto Tune Aggression back to default.

Thank you @dkemxr .
MOT_THST_HOVER changed to 0.28.
Is it okay to test it by changing it to that value?
PSC_ACCZ_I, 0.56
PSC_ACCZ_P, 0.28

Yes, that should be fine.

Thank you Dave, I will test it today, modify it to the appropriate PID, and upload the log again.

I think INS_HNTCH_BW should be about 40, not 125.
You could try AUTOTUNE_AGGR,0.075 too, it might work better with those T-Motor ESCs

These params worked OK as a starting point on a large hex with T-Motors and ESCs
Pick and choose what you want
ATC_ACCEL_P_MAX,23400
ATC_ACCEL_R_MAX,23400
ATC_ACCEL_Y_MAX,9900
ATC_ANG_PIT_P,3
ATC_ANG_RLL_P,3
ATC_ANG_YAW_P,3
ATC_INPUT_TC,0.22
ATC_RAT_PIT_D,0.036
ATC_RAT_PIT_I,0.25
ATC_RAT_PIT_P,0.35
ATC_RAT_RLL_D,0.036
ATC_RAT_RLL_I,0.25
ATC_RAT_RLL_P,0.35
ATC_RAT_YAW_D,0.007
ATC_RAT_YAW_I,0.02
ATC_RAT_YAW_P,0.41
ATC_RATE_P_MAX,720
ATC_RATE_R_MAX,720
ATC_RATE_Y_MAX,720

Thank you, Dr. Shawn
Change INS_HNTCH_BW by 40.

I have a few questions about the starting point.

  1. It looks lower than the recommended value for the 22" prop, is it an exception for the Coaxial-Rotor?

ATC_ACCEL_P_MAX,23400
ATC_ACCEL_R_MAX,23400
ATC_ACCEL_Y_MAX,9900

2)Currently ATC_RAT_X_P looks fine below 0.7. Is adjusting the value below related to increasing the P value?

ATC_ANG_PIT_P,3
ATC_ANG_RLL_P,3
ATC_ANG_YAW_P,3
ATC_INPUT_TC, 0.22

3)The current ATC_RATE_X_MAX is 0. I wonder why it goes up to 720 instead of 360.

  1. the accel_p_max values are not critical, it doesnt hurt to be a bit lower with bigger aircraft. Autotune will sort it out, and you can lower them anyway to suit payloads.
    The values I gave are just ones we started with on a big unstable hex.

  2. these ANG_P values are quite low, and the RAT_P and _I values are quite different to compensate.
    Leonard Hall would tell me I’m completely wrong no doubt, but simplistically I like to think of it like this:

  • the ANG (angle) values are about your frame size
  • the RAT (rate) values are about the ESC/Motor control
  1. we dont often use the ATC_RATE_ MAX values, but for a big aircraft it can be very appropriate to limit the rate of movement (not the acceleration). Experiment a bit or do some maths to find what suits your application

I think I need to study more deeply about such a difficult relationship. :sob:

Is there a risk that the plane will crash if we experiment at the starting point above?
If there is no big problem, I will bring the test results within an hour.

Rather than paste it as it is, test it by correcting it as follows:

INS_HNTCH_BW, 40
ATC_ACCEL_P_MAX,25000
ATC_ACCEL_R_MAX,25000
ATC_ACCEL_Y_MAX,9900
ATC_ANG_PIT_P,3
ATC_ANG_RLL_P,3
ATC_ANG_YAW_P,3
ATC_INPUT_TC,0.22
ATC_RAT_PIT_D,0.0036
ATC_RAT_PIT_I,0.135
ATC_RAT_PIT_P,0.135
ATC_RAT_RLL_D,0.0036
ATC_RAT_RLL_I,0.135
ATC_RAT_RLL_P,0.135
ATC_RAT_YAW_D,0.007
ATC_RAT_YAW_I,0.02
ATC_RAT_YAW_P,0.41
ATC_RATE_P_MAX,360
ATC_RATE_R_MAX,360
ATC_RATE_Y_MAX,360

If the results are good, I will try to make additional corrections.

After completing the flight test, the motor noise was reduced and softened.
However, there still seems to be some problems.
What kind of mege variable should be modified to make a softer sound?
It still feels a little loose, but if you raise the P and I values, it will vibrate just before takeoff from the ground.

Moving Flight

Hoverring

Modified parameters.

INS_HNTCH_BW, 40
ATC_ACCEL_P_MAX,24000
ATC_ACCEL_R_MAX,24000
ATC_ACCEL_Y_MAX,9900
ATC_ANG_PIT_P,3
ATC_ANG_RLL_P,3
ATC_ANG_YAW_P,3
ATC_INPUT_TC,0.22
ATC_RAT_PIT_D,0.0023
ATC_RAT_PIT_I,0.106
ATC_RAT_PIT_P,0.106
ATC_RAT_RLL_D,0.0023
ATC_RAT_RLL_I,0.087
ATC_RAT_RLL_P,0.087
ATC_RAT_YAW_D,0
ATC_RAT_YAW_I,0.018
ATC_RAT_YAW_P,0.18
ATC_RATE_P_MAX,500
ATC_RATE_R_MAX,500
ATC_RATE_Y_MAX,500