Autotune-roll - changes MOT_SPIN_ARM to value - and higher than MOT_SPIN_MIN

Today I discovered that my autotune flight for ROLL, somehow changed the value of MOT_SPIN_ARM. It changed it to 0.23 - which is higher than MOT_SPIN_MIN - which is 0.15. (both values were set to their defaults)

I discovered this when I tried to take off again, and I got an arming error that MOT_SPIN_ARM was higher than MOT_SPIN_MIN. It won’t arm with that condition.

I can’t recall ever reading anything about autotune changing MOT_SPIN_ARM. But maybe I missed it.

If you look at the parameters in the BIN file you’ll find the following.

As these parameters are from a BIN file - clearly this anomaly was created during this flight - the arming check wouldn’t have allowed a take off when these values.

Auto Tune doesn’t adjust MOT parameters. Not in the Docs and never seen that.

1 Like

Never seen that, most likely a typo

Typo?

All I know is it happened today.

I don’t think anyone is making any strong accusations, but the most plausible cause is accidental user input.

Here is the GCS message timeline showing autotune completion and saved gains after landing, indicating that autotune parameter saving completed at time 11:40:07:

2023-08-16 11:39:31.291 AutoTune: Success
2023-08-16 11:39:31.291 Event: DATA_AUTOTUNE_SUCCESS
2023-08-16 11:40:04.926 Event: DATA_LAND_COMPLETE_MAYBE
2023-08-16 11:40:05.728 Event: DATA_LAND_COMPLETE
2023-08-16 11:40:07.661 Event: DATA_DISARMED
2023-08-16 11:40:07.661 AutoTune: Saved gains for Roll
2023-08-16 11:40:07.661 Event: DATA_AUTOTUNE_SAVEDGAINS
2023-08-16 11:40:07.662 Event: DATA_MOTORS_INTERLOCK_DISABLED
2023-08-16 11:41:09.161 PreArm: Motors: SPIN_ARM higher than SPIN_MIN
2023-08-16 11:41:40.161 PreArm: Motors: SPIN_ARM higher than SPIN_MIN

Here is the timeline for changes to MOT_SPIN_ARM at time 11:41:04, a full minute after autotune completed its parameter changes:

2023-08-16 11:41:04.678 MOT_SPIN_ARM 0.100000 -> 0.230000
2023-08-16 11:41:04.759 MOT_SPIN_ARM 0.230000 -> 0.220000
2023-08-16 11:41:05.069 MOT_SPIN_ARM 0.220000 -> 0.230000

A brief search through the Copter-4.3 branch shows no automatic routine that appears to change MOT_SPIN_ARM, and no mention of that parameter in the autotune libraries. Admittedly, my search was only cursory.

Is it possible you accidentally changed MOT_SPIN_ARM (maybe intending to change MOT_THST_HOVER, whose value is close to 0.22-0.23) or clicked on something like the motor test page and mistakenly made an input?

Yuri - You are spot on!

I mentally retraced my steps. After landing from the roll autotune leg, I used QGC on my HereLink to uncheck “roll” and to check “pitch” in the autotune section of the “tuning” tab.

Turns out that right above that is a slider for MOT_SPIN_ARM.

No doubt I accidently bumped that slider when changing the autotune options.

I’m sorry to put you to all the trouble of looking into this - I feel pretty stupid.

Hi @Yuri_Rage,

In flight log, I can see CAN related messages as shown below are flooded. What is the significance of these messages and how to suppress them to appear from log, if they are not important.

2024-01-30 14:46:20.380 CAN[125] 0
2024-01-30 14:46:20.382 CAN[125] idle 82.47% (4123868/5000383)
2024-01-30 14:46:20.418 CAN[124] 0
2024-01-30 14:46:20.421 CAN[124] idle 82.43% (4121733/5000026)
2024-01-30 14:46:25.380 CAN[125] 0
2024-01-30 14:46:25.383 CAN[125] idle 82.42% (4121530/5000415)
2024-01-30 14:46:25.419 CAN[124] 0
2024-01-30 14:46:25.421 CAN[124] idle 82.43% (4121999/5000303)
2024-01-30 14:46:25.458 CAN[125] lpwork_thread : 224 free
2024-01-30 14:46:25.459 CAN[125] idle : 80 free
2024-01-30 14:46:25.460 CAN[125] can_thread : 136 free
2024-01-30 14:46:25.460 CAN[125] hpwork_thread : 24 free
2024-01-30 14:46:25.460 CAN[125] noname : 208 free
2024-01-30 14:46:25.461 CAN[125] exceptions : 88 free
2024-01-30 14:46:25.499 CAN[124] lpwork_thread : 224 free
2024-01-30 14:46:25.499 CAN[124] idle : 80 free
2024-01-30 14:46:25.500 CAN[124] can_thread : 136 free
2024-01-30 14:46:25.500 CAN[124] hpwork_thread : 24 free
2024-01-30 14:46:25.501 CAN[124] noname : 208 free
2024-01-30 14:46:25.501 CAN[124] exceptions : 88 free