Quadcopter rises to the sky in AltHold mode when at high speed - iNav 2.6 #6670
Replies: 5 comments
-
I have the same problem so I made this plot based on a blackbox log to see what is going on. As you can see, baro and GPS altitude track each other fairly closely, so I assume they are both reasonably accurate. At some moments, though, the estimated altitude goes in the complete opposite direction, because the estimated vertical speed goes negative (as your second plot also shows). This happens at the exact same times when the accelerometer measures a downward, not upward, acceleration (the green line on the lower panel). Since the accelerometer is used for the initial estimation of the altitude and vertical speed, I assume this is where the problem starts. So what I think is happening is, the accelerometer thinks it is falling, so the vertical speed must be negative. But the fc is trying to climb so it adds more throttle and the quad climbs. This continues in a feedback loop until you take over control. The question then is why the accelerometer thinks it is falling, or even accelerating towards the ground at more than 1g. I think it is either horizon drift causing the accelerometer to be confused about the direction of the acceleration (but it would have to be VERY confused to see the upward acceleration as a downward acceleration) or the accelerometer is getting swamped with vibrations. I don't think I actually have a vibration problem so maybe it is something else, idk. As for a solution, assuming your baro gives accurate readings, you can try increasing @digitalentity, what do you think? Could we maybe scale down 'accWeight' using the gaussian distribution to make the estimation more robust? |
Beta Was this translation helpful? Give feedback.
-
@avsaase Hello, I did not put the acceleration graph, but I have the same problem as you, before starting to rise the acceleration on the Z axis is negative, close to -1g, so the quad thinks it is falling and climb very fast... After some research I am convinced that the problem is some vibration / resonance in the FC that affect the sensors. I also believe that the problem could be minimized by some configuration in firmware. What values do you recommend for Thanks |
Beta Was this translation helpful? Give feedback.
-
With |
Beta Was this translation helpful? Give feedback.
-
@avsaase Thanks for your reply, I understand perfectly. But I still believe that just changing these weights is not going to solve the problem entirely, perhaps it will mitigate. As we both have a similar assumption (vibration, interference ...) I will first try to make the FC support (mechanical) more flexible and install some filter capacitors (electric) If I don't get better results, I will have to change these weights in the iNav settings |
Beta Was this translation helpful? Give feedback.
-
Hello, I solved 90% of the problem just by reducing the vibration in the FC. I put softer supports and the problems have reduced a lot! Now there is a small increase in altitude (10 meters and then stabilizes) when 80km/h is exceeded. |
Beta Was this translation helpful? Give feedback.
-
Current Behavior
I have a 4" quadcopter, with FC F4 Noxe V1 and Matek M8Q-5883 (GPS and compass) and iNav 2.6 installed.
If I'm flying in Angle/Acro mode, everything looks fine. When I am in AltHold mode (regardless of whether GPS/PosHold is on or not) the quadcopter maintains altitude if I fly less than 40km/h, everything works normally, but when I am at a higher speed, it rises very fast to the sky alone (without stopping, even reducing the throttle), I have to quickly return to Angle/Acro mode and regain control.
PS: The same behavior occurs with or without foam-protection on the barometer.
LOG Taranis QX7:
Altitude (meters):
Vertical Speed (meters/s):
*Note that the moment the quad climbs crazy into the sky, the vertical speed recorded -18m/s, but it never really happened
Steps to Reproduce
Expected behavior
The quadcopter must reach high speed forward and not change its altitude (it must not go up or down more than a few meters because of some turbulence)
Suggested solution(s)
Regardless of the quadcopter X/Y speeds, it shouldn't change the height Z, because it's in AltHold mode and the accelerator is in dead band (it's not going up or down)
Additional context
My dump:
https://pastebin.com/VEVSQ8G4
Beta Was this translation helpful? Give feedback.
All reactions