I suspect the cause of the crash Motor1. The FC had to ramp up Motor1 output to maximum as pitch and roll started to diverge from desired. Motor2 output was reduced to minimum to compensate for loss of thrust from Motor1.
Probably the X/Y vibrations and slightly poor compass calibration played a role too - the cause of the IMU lane changes and compass/GPS glitch warning.
Looking at the harmonic notch filter data collected it looks like there are serious X and Y axis prop or motor balance problems. Actually Y axis mostly. Try to find what’s causing this and get it fixed before flying again. This is a physical issue of some sort. Check that some wires are not pulled too tight where they connect to the carrier board, or connectors and things are not flapping around in the breeze.
I know this is not obviously reflected in the vibration data, but the noise that is there is serious enough to get past the Gyro filter and would probably have an adverse effect.
Apply all the parameters below and use MissionPlanner motor test extensively to find where all the vibrations are coming from, and run the motors for a long time to see if any heat up. Obviously use very low RPM and stay safe. The trick is to move all the props around 1 position and flip them over - they push the copter down.
Try these PIDs as a starting point, I derived them from what QuickTune was doing, plus what is typical for these sorts of copters.
ATC_INPUT_TC,0.20
ATC_ANG_PIT_P,6.0
ATC_ANG_RLL_P,6.0
ATC_RAT_PIT_D,0.0025
ATC_RAT_PIT_I,0.11
ATC_RAT_PIT_P,0.11
ATC_RAT_RLL_D,0.0025
ATC_RAT_RLL_I,0.11
ATC_RAT_RLL_P,0.11
BATT_FS_CRT_ACT,1
BATT_FS_LOW_ACT,2
MOT_SPIN_ARM,0.08
MOT_SPIN_MIN,0.12
PSC_ACCZ_I,0.50
PSC_ACCZ_P,0.25
TKOFF_RPM_MIN,300
I think the I/O MCU (main outs) DSHOT feature only supports DHSOT300, so make this setting and I think that will work now. Look for the result in Messages. I must have missed this before, but it’s not a big deal, the differences between DSHOT or PWM didn’t cause the crash.
MOT_PWM_TYPE,5
SERVO_BLH_OTYPE,0 <- not needed, dont set it
This should get DHSOT going to the ESC, now you want the data coming back. Connect the ESC Telem wire to the GPS2 RX pin. This is really Serial4. Set these params:
SERIAL4_BAUD,115
SERIAL4_OPTIONS,16
SERIAL4_PROTOCOL,16
and you should get all the ESC RPM, voltage and temperature data appearing in the MissionPlanner Data/Status tab, and in logs when armed. Just use the MissionPlanner motor test to check this.
I’m using DSHOT in exactly the same configuration on a Cube Orange with eight motors.
Keep your AUX pins spare for relays, camera triggers and similar. It’s been a great step forward to use the Main outputs with DSHOT.
Set these for the harmonic notch filter, it should be good enough to leave in place with maybe only minor adjustments.
INS_HNTCH_ENABLE,1 <- write then refresh params to see the rest
INS_HNTCH_BW,7
INS_HNTCH_FM_RAT,1
INS_HNTCH_FREQ,30
INS_HNTCH_HMNCS,1
INS_HNTCH_MODE,3
INS_HNTCH_OPTS,2
INS_HNTCH_REF,1
Set these compass values for a slightly better calibration, but there’s more to be done here once the copter flies better.
COMPASS_OFS_X,87.05296
COMPASS_OFS_Y,-952.6507
COMPASS_OFS_Z,-16.953522
COMPASS_DIA_X,1
COMPASS_DIA_Y,1
COMPASS_DIA_Z,1
COMPASS_ODI_X,0
COMPASS_ODI_Y,0
COMPASS_ODI_Z,0
COMPASS_MOT_X,0
COMPASS_MOT_Y,0
COMPASS_MOT_Z,0
COMPASS_SCALE,1
COMPASS_ORIENT,0
COMPASS_OFS2_X,26.589178
COMPASS_OFS2_Y,23.837593
COMPASS_OFS2_Z,20.15472
COMPASS_DIA2_X,1
COMPASS_DIA2_Y,1
COMPASS_DIA2_Z,1
COMPASS_ODI2_X,0
COMPASS_ODI2_Y,0
COMPASS_ODI2_Z,0
COMPASS_MOT2_X,0
COMPASS_MOT2_Y,0
COMPASS_MOT2_Z,0
COMPASS_SCALE2,1
COMPASS_ORIENT2,0
COMPASS_MOTCT,0
There’s a lot there to test and go through. Take your time and get all that vibration stuff sorted completely.
If you want to log any of the motor tests set LOG_DISARMED,1
and set it back to 0
later.
When you do get to a test flight stage, just do a short flight first, a minute or so, land and check motor temperatures. If all OK do a flight with some gentle pitch, roll, yaw and include ascent/descent if everything seems OK.
This will be enough for us to progress.