looks a bit like toilet bowling caused by compass not beeing calibrated. AltHold as recovery should work, but I would recalibratre compass.
Thank you for your suggestion.
I will recalibrate the compass and check it carefully.
However, the same aircraft flew normally with Copter 4.6.3. The fly-away/circular movement occurred shortly after takeoff and hover after upgrading to Copter 4.7.1.
I would therefore also like to check the flight log to determine whether the compass/EKF yaw was actually abnormal at the time of the incident.
If needed, I can provide the BIN log for further analysis.
Thank you for your help.
Provide a link to it.
Thank you for the suggestion.
This is the complete, untrimmed BIN log covering the full flight, including:
- Loiter mode entry (~84.5s)
- EKF yaw reset / in-flight yaw alignment (EV 62, ~97.1s)
- RTL switch (~113.95s)
- Crash detection (~173.6s)
- Disarm (~194.3s)
Please let me know if you need anything else from the log, or any additional context about the flight (firmware version, parameters, etc.).
Well… putting that log into magfit indicates that compass calibration probably was not the issue.
Thanks for checking this with MagFit, Adam - that’s really helpful.
For what it’s worth, I did recalibrate the compass (twice) as you suggested, and I’ve since flown 3 more flights on 4.6.3 (2x on 09-08, 1x on 09-09). Each flight still shows the same “EKF3 IMU0/IMU1 in-flight yaw alignment complete” event shortly after takeoff (it seems to happen basically every flight), but this time the yaw correction was small each time (well under 1 degree) and Roll/Pitch/Yaw tracked the commanded values tightly throughout - no toilet-bowling.
Given your MagFit result, though, it sounds like the compass calibration probably wasn’t actually bad at the time of the crash either. So I’m still leaning toward the original theory: something in 4.7.1 reacted differently to that same yaw-alignment event than 4.6.3 does - specifically, generating large Desired Roll/Pitch right after the reset instead of a small, clean correction.
Do you have any thoughts on what else could cause the FC to issue those large attitude commands right at that moment? I’m happy to share the raw BIN log (or specific fields/graphs) if that would help narrow it down - position controller / EKF source switching behavior around yaw resets in 4.7.x, maybe?
I would say this is expected and normal message.
Agreed, and that matches what I’ve seen too - I’ve now confirmed that message shows up on basically every flight (including the 3 flights since recalibrating), so I don’t think the event itself is the anomaly.
What I’m still trying to pin down is why, specifically on 4.7.1, that one instance was followed by large Desired Roll/Pitch commands and the circular flight-away, when every other time (on 4.6.3, before and after) it’s just a small, clean correction with no attitude disturbance at all. So the open question for me is less “is this message normal” and more “why did the FC’s response to it differ so much that one time on 4.7.1.”
If you don’t have a specific lead on that, would it help if I pulled up the RATE/PSC data right around the yaw-alignment event in the crash log and posted graphs? Might make it easier to spot what changed.
What esc’s do you have and where are the caps soldered?
I also see some need for compass calibration.
ESC: Hglrc 30A OPTO BLHeli_S, 3-5S, DSHOT capable (currently flashed with BlueJay). The 5 chip capacitors are soldered on the top side of the board, right next to the power input pads (S/−/+), between the wire leads and the BLHeli-S label.
Regarding compass calibration: I had NOT recalibrated the compass while running 4.7.1 — that’s the firmware version the fly-away incident happened on. After reverting to 4.6.3, I did recalibrate the compass, and have flown 4 flights since with no toilet-bowling behavior. I haven’t yet re-tested with 4.7.1 + a freshly calibrated compass, so it’s still unclear whether the compass or the 4.7.1 upgrade itself was the real trigger.
Update: Similar Loiter fly-away incident with ArduCopter 4.7.2
I would like to report another incident on the same CUAV X7+ flight controller.
Following my previous report about the 4.7.1 incident, I upgraded the firmware from 4.6.2_bd to 4.7.2_bd.
With 4.6.2_bd, the aircraft had been flying normally and consistently.
However, on the first test flight immediately after upgrading to 4.7.2_bd, I experienced another serious Loiter control issue.
-
Takeoff in Loiter mode.
-
Initial hover was normal.
-
Approximately 5–10 seconds after hovering, the aircraft unexpectedly started moving around.
-
I could not maintain control in Loiter mode.
-
I switched to AltHold and managed to land safely.
Additional DataFlash log observations
In the 2026-11-03 flight log:
-
IMU1 MAG0: in-flight yaw alignment complete at 40.138 seconds.
-
IMU0 MAG0: in-flight yaw alignment complete at 40.150 seconds.
-
GPS ground speed subsequently increased, reaching approximately 4.16 m/s.
-
AltHold was selected at approximately 54.72 seconds.
This appears to have some similarities to my previous 4.7.1 incident, where an in-flight yaw alignment event also occurred shortly before the aircraft experienced uncontrolled movement in Loiter.
I would appreciate it if the developers could compare both incidents and investigate whether there is a relationship between EKF yaw realignment and Loiter position control in the 4.7.x versions.
I have attached the new DataFlash BIN log.
This is a serious flight safety concern, and I will avoid further Loiter testing with 4.7.x until the cause is understood.
Thank you for your help.
The log is missing
Hi @Michiaki_S,
Thanks for the report. I wouldn’t classify this as a “fly away” but it looks like toilet bowling which is normally caused by a bad compass heading.
Could you provide a picture showing where the GPS/compass unit is mounted? I think it just needs to be moved up a few cm.
The internal compass is getting a lot of interference from the motors so it might be good to set COMPASS_USE2 = 0 although this will also remove the check that the two compasses are consistent before takeoff so there’s a small amount of risk. Compass2 is not the cause of the problem in any case.
BTW, if we want to prove that it’s not caused by a software error, if you enabled replay then we could test it using the EKF from 4.6 vs 4.7.
In short this would require:
- set LOG_DISARMED = 1
- set LOG_REPLAY = 1
- fly the vehicle and reproduce the toilet bowling
- post the log here
Thank you for your reply.
I have attached a picture showing the current GPS/compass mounting position on my CUAV X7+.
I would like to provide some additional information that may be useful for troubleshooting.
I have also tested a Cube Orange+ on the same aircraft, with the same GPS/compass mounting position and ArduCopter 4.7.2_bd.
The results are as follows:
-
CUAV X7+ with ArduCopter 4.6.3: Normal flight using both the external RM3100 compass (in the Neo3 Pro GPS unit) and the internal compass.
-
CUAV X7+ with ArduCopter 4.7.2_bd: Toilet bowling occurred.
-
Cube Orange+ with ArduCopter 4.7.2_bd: Normal flight using only the external RM3100 compass. The internal compass is disabled.
Since the Cube Orange+ flies normally with the same GPS/compass mounting position and the same firmware version, I wonder whether the problem could be related to differences in compass handling or EKF behavior on the CUAV X7+ in ArduCopter 4.7.2_bd.
The X7+ has worked normally with both compasses enabled on ArduCopter 4.6.3, so I would prefer not to assume that the mounting position is the cause.
Do you think it would be useful to investigate the differences in compass configuration or EKF behavior between these setups before moving the GPS/compass unit?
I am also willing to perform an EKF replay comparison between versions 4.6 and 4.7 if that would help identify the cause.
Thank you for your support.
Update to this thread: I followed the advice (calibrated the compasses before flying) and tried 4.7.2_bd on the same CUAV X7+. In Loiter the aircraft again started moving around by itself within seconds of takeoff and I could not control it, so I switched to AltHold and landed manually. I have since gone back to 4.6.3_bd.
The same 4.7.2_bd works fine on my other quad (Cube Orange+, BlueJay ESCs, DShot600), including in ~5 m/s wind, so I compared the logs. Both quads use the same motors and props (T-MOTOR MN3110 700KV, 12x4).
X7+ on 4.7.2, 2026-11-03 (wind about 5 m/s by my estimate):
- Takeoff in Loiter, climbed to ~8-9 m. After I released the sticks (RC centered), the aircraft kept swinging: roll command +/-15-20 deg, speed +/-2 m/s, position error up to ~2 m, period about 4 s. At 150 s I switched to AltHold.
- GPS was good (28-30 sats, HDOP ~0.55). The two compasses differ by a constant ~5.6 deg, the same on the ground and in flight. EKF innovations and test ratios stay small. The direction of the actual acceleration (from GPS velocity) matches the direction of the commanded lean computed with the EKF yaw, so I do not think this is a yaw error.
- PSC_NE_VEL_P/I/D = 2/1/0.5 and PSC_NE_POS_P = 1, the same as with my 4.6.x settings.
Comparison (same analysis applied to all three logs):
| X7+ 4.6.3_bd (10/17, wind <=4 m/s) | X7+ 4.7.2_bd (11/03, ~5 m/s) | Cube Orange+ 4.7.2_bd (11/03, ~5 m/s) | |
|---|---|---|---|
| Loiter position error | mean 0.12 m, max 0.82 m | mean 1.06 m, max 2.0 m (only ~15 s of Loiter) | mean 0.15 m, p95 0.34 m, max 0.51 m (455 s) |
| Error after stick release (median of max) | 0.31 m | 1-2 m, sustained oscillation | 0.32 m |
| MOT_THST_HOVER vs measured hover ThO | 0.402 vs 0.39 | 0.676 vs 0.33 | 0.331 vs 0.326 |
| Vibe IMU0 mean (X/Y/Z) | Z 12.0 | 17.2 / 14.6 / 17.6 | 16.8 / 12.8 / 13.0 |
The only anomaly I found is on the X7+ 4.7.2 log: MOT_THST_HOVER was 0.676 (CTUN.ThH ~0.69), while the throttle actually needed was ~0.33. In the 10/17 log it was 0.402 and matched ThO. I do not know how it became 0.676. I suspect hover learning (MOT_HOVER_LEARN=2) during bench tests, but I cannot confirm that.
Other parameter differences between the 10/17 and 11/03 logs (same-name parameters): EK3_SRC_OPTIONS 1 → 0, MNT1_TYPE 0 → 8 (gimbal enabled).
I have not proven that the hover thrust value caused the oscillation, and I do not know why it would affect horizontal position control. Questions:
- Could a MOT_THST_HOVER that is ~2x too high affect Loiter / position control behaviour in 4.7.x?
- Are there changes in 4.7 (PSC / Loiter) that are sensitive to this?
I can attach the logs:
- X7+ 4.7.2: 2026-11-03_13-36-18.bin
- X7+ 4.6.3: 2026-10-17_13-58-10.bin
- Cube Orange+ 4.7.2: 2026-11-03_13-09-36.bin
Thanks!
Have you got logs of the X7 flights?
I’m interested to take a look.
Hi Shawn, thanks for looking into it. The log is attached: 2026-11-03_13-36-18.bin (X7+, 4.7.2_bd). Takeoff at ~133 s. The Loiter oscillation is mainly between ~145 s and 150 s (sticks centered), and I switched to AltHold at ~150 s. I can also provide the 4.6.3_bd log (normal flight) and the Cube Orange+ 4.7.2_bd log (normal, same day) if useful.
Change these:
ATC_ACC_Y_MAX,200
ATC_INPUT_TC,0.15
ATC_RAT_YAW_I,0.08
ATC_RAT_YAW_P,0.80
ATC_THR_MIX_MAN,0.5
BATT_FS_CRT_ACT,1
INS_HNTCH_BW,15
INS_HNTCH_FREQ,60
INS_HNTCH_HMNCS,3
INS_HNTCH_OPTS,6
INS_LOG_BAT_MASK,1
INS_LOG_BAT_OPT,4
and these should suit your GNSS stand, I have the same one:
GPS1_POS_X,-0.04
GPS1_POS_Y,0
GPS1_POS_Z,-0.06
Just check the X value is suitable - infront or behind the centre of the flight controller.
Apply these compass parameters, they may not be perfect but they will be better.
MAGFit.param (594 Bytes)
Are those 14 inch props? Even if they are 13 or 15 inch these will be close enough:
ATC_RAT_PIT_FLTD,15
ATC_RAT_PIT_FLTT,15
ATC_RAT_RLL_FLTD,15
ATC_RAT_RLL_FLTT,15
ATC_RAT_YAW_FLTD,0
ATC_RAT_YAW_FLTT,15
INS_GYRO_FILTER,30
You should apply all of these at once, don’t assume changing just one will make a big difference.
Now do another test flight with plenty of yaw and altitude changes, plus some pitch and roll like you already did. Come back with that new log file.
Hi xfacta, thank you for your suggestions.
I would like to clarify the actual behavior during the flight, as I may not have explained it clearly enough.
The takeoff was smooth, and the aircraft initially hovered normally for about 5–10 seconds. After that, it suddenly started moving horizontally on its own.
First, it rolled to the left, and then it moved forward with a pitch movement. It was not yaw rotation or toilet-bowling. The main problem was that the aircraft could not maintain its position in Loiter.
When this happened, I tried to correct its position using the sticks. However, the aircraft did not respond as I expected, and I felt that I was unable to regain control properly while in Loiter.
I then switched to AltHold, following a suggestion from an earlier discussion. After changing to AltHold, the aircraft responded normally again and I was able to control it.
I want to emphasize that the roll and pitch movements I observed were not simply caused by my own stick inputs. However, I was making corrective inputs while trying to recover the aircraft, so the RCIN data during this period needs to be interpreted in that context.
I have not yet determined whether this behavior was caused by GPS, EKF position/velocity estimation, or the Loiter position controller.
Before applying all the proposed parameter changes, I would prefer to understand the cause a little better.
Would it be possible to examine the relationship between RCIN, desired roll/pitch, actual attitude, and EKF/GPS data during this period?
I can also provide the normal flight logs from the X7+ running 4.6.3_bd and the Cube Orange+ running 4.7.2_bd, both recorded on the same day, for comparison.
We currently have continuous rain here, so I will wait for suitable weather before conducting another test flight.
Thank you again for your time and assistance.
