Landing Not Detected

Thanks Alvin.

I have been reading some people have reported the Li - Ion Battery could generate some electrogmagnetic issues. Im ussing the Li-Ion Diamond foxtech baterry, and in fact is installed on the right of GPS. here is a picture
imagen

what do you think?

Usually the battery itself won’t cause interference but the power wires coming out from it. If wire is close to the gps module it can cause large interference.

You may try to elevate your GPS module at least 10cm from high power devices.

1 Like

can you please explain how to view the fft graph and how to take the peak value from the fft graph ?

There is still the original FFT graphing functions in MissionPlanner, but these days I use the web based tool:
ArduPilot Filter Review Tool

You need at least these parameters set to gather the data, and in fact they can stay set because they dont cause additional load or log file size to any noticeable extent.

INS_LOG_BAT_MASK,1
INS_LOG_BAT_OPT,4

There’s a bunch of doco on the harmonic notch filter:
https://ardupilot.org/copter/docs/common-imu-notch-filtering.html

And the web-based tool information:

There is also the web-based Magfit tool:

can you please help me to find the INS_HNTCH_FREQ in this log (peak value ),my guess in 126Hz , am i correct ?

The primary peak is at 31Hz then second harmonic at 62Hz

I wouldnt be rushing to set the notch filter values yet, I feel this is not representative because the copter is not hovering at any stage and seems like either it’s unstable or you cant control it properly for some reason.

Set this so there is useful data in the log:
LOG_BITMASK,180222
I suggest you start your own thread about getting this copter configured properly and flying, since this is quite an old thread about something completely different.
Include information about what battery, motors, props and ESCs you have.

yeah sir , i know this is not a proper hovering log , i just want to know to select the INS_HNTCH_REF value , so the value 1st peak value should be selected right ?so bymeans of this log the INS_HNTCH_REF =31 and the INS_HNTCH_BW =15.5???

These are the values you would use as a starting point

INS_HNTCH_ENABLE,1  // write this then refresh params to see the rest
INS_HNTCH_MODE,1
INS_HNTCH_BW,15
INS_HNTCH_FREQ,31
INS_HNTCH_FM_RAT,0.7
INS_HNTCH_HMNCS,3
INS_HNTCH_REF,0.21
INS_HNTCH_OPTS,0

It’s better to keep the bandwidth as narrow as possible and still do the job. A wider bandwidth introduces some lag in attitude control.

Thank you sir , and may i know how to select a proper value for INS_ACCEL_FILTER and INS_GYRO_FILTER without autotuning ?

Autotune doesnt change them.

INS_ACCEL_FILTER can be in the range 10 to 20 typically, and the default value is now 10.

We developed a formula for INS_GYRO_FILTER based on prop size (thanks to Leonard Hall) and the MissionPlanner Initial Parameters calculator will set it and a number of related parameters for you.

The “nuts and bolts” are in the spreadsheet, which was the basis of the MP Initial Parameters, and there’s some history over on the Ardupilot forum if you really want to go digging.
Download a copy, dont try to use it online.
https://www.dropbox.com/s/w2ru1gmk7h7ga7m/Initial%20parameters.xlsx?dl=0

Install a TF Mini Lidar, and use it as percise height sensor. This works for me every time.

Barometer might fluctuate depending on your flying environment.