I am new to Drone and I am following the wiki. I completed the auto tune without doing the notch filter and it was sucess. The drone flies very well in the Alt hold and stabilize mode. I am having trouble in Loiter mode. I would like to know how can i solve this issue. The motor is sunnysky motor with 22 inch propeller.
I am adding the Log files here.
i tried the Roll/Pitch sensitive and i have vibration there too. Since my drone is not symmetrical i am having trouble with this as Roll/Pitch sensitivity is putting the same value for the roll and pitch. In this log you can see i have been trying different values using the slider in the mission planner.
I have this set.
I dont know why the MOT_THST_HOVER changed now. Earlier it was different and now it changed and now the value are different. Should i have keep changing that.
I was trying to set the INS_HNTCH_REF. I am not able to understand what exactly and what value should i consider to have here. In the Notch filter. Can you please guide me.
The correct formula for working out the REF value is: INS_HNTCH_REF = hover_thrust * SQRT(min_freq / hover_freq)
but this is usually near enough: INS_HNTCH_REF = hover_thrust * 0.6 or 0.7
I did a quick check of your log already provided and this should work fine:
INS_HNTCH_ENABLE,1 // write this then refresh params to see the rest
INS_HNTCH_MODE,1
INS_HNTCH_BW,10
INS_HNTCH_FREQ,35
INS_HNTCH_FM_RAT,0.7
INS_HNTCH_HMNCS,3
INS_HNTCH_REF,0.15
I must admit I didnt even check it’s value or do any calcs to come up with the REF value, I guessed and it works - this is the beauty of the Filter Review Tool, you have the ability to make changes and see the expected results
Out of curiosity, what prompted you to use MOT_THST_EXPO,0.2 ?
That is highly unusual, especially since you seem to have large props.
What i understand is for the hover_freq it is something that has the highest first peak. But i am not able to understand the min_freq. How did you choose the 25Hz.
Mot_thst_hover is 0.16, this is from the parameter as drone is learning itself.
I am also using the same tool to check. I will do the flight test tomorrow.
I think this is automatically as i have set the MOT_HOVER_LEARN = enable. I get this value in that log. Yesterday i did another flight and found it was 0.16 the value. I dont know why it keeps changing.
DO NOT pick all those options! I hope that is just for experimentation and not for flight.
You dont need a second notch filter, INS_GYRO_FILTER, does a lot of the heavy lifting and you can see I only specified the default harmonics (the first two) because those are the only peaks with noise that get past the main low pass filter.
The key with the notch filter is only do the minimum required or you are just introducing processing overheads and lag in the PIDs leading to oscillations.
Have a close look at the graph I supplied and you’ll see the “estimated” lines are all flat along the bottom except where the indicated filters had to do a bit of work. That was essentially the same effect you had originally with the post-filter lines. So the only required notches are for the 1st and 2nd harmonics.
Hover learning should be set to learn and save by default and in normal operation.
EDIT:
and by the way, I didnt guess at the bandwidth value I supplied - it could be wider but at those low frequencies it tends to introduce more lag and oscillations, so keep it as narrow as you can.
If this was a quad with <12inch props, you could go big with the BW value since the 1st harmonic frequency would be much higher and a long was from control frequencies.
I did another test yesterday with the Notch filter and i found it was stable in wind too.
I noticed in the PID of the pitch the value is shiffted below zero can this be due to the wind as i was having high winds in the direction of the drone.
I saw the drone is stable but oscillating with the wind which i think is normal in loiter mode. The only issue was the stick movement. I was not able to lock in the position. What i am doing is making a hard left roll and then sudden right roll to stop the drone. Then i see the drone drifting towards right not stopping at that position. Is it normal to have this behavior.
here is the log
I would like to study the position controller. I wanted to know is there any issue with the position controller that was causing this problem.