2.0.19 quad X
The quad flies ok in stable mode when I trim the sticks, it hovers perfectly for a while. But after short time, the center of the sticks is not neutral anymore. After a while, max stick input is almost not enough to keep the quad straight. If I land and try again it sometimes fixes itself, but after a few turns the sticks neutral point is far off again.
How can I fix this?
HI guys, here's a general question related to drift:
How critical is it that the quad is perfectly balanced in both axes? If you balance it on the centre of its arms, should you add some small counterweights as necessary, (once you've done the best you can by fixing the battery position.) How much error is acceptable (in terms if grams counterweight near the motors)?
Secondly, how critical is it that the motors are exactly vertical. After a minor crash i noticed that one motor was a bit off, so I corrected it by twisting the frame manually. It's quite easy to sight a vertical with the quad on a table and using a try-square to look at the motor-shaft.
I don't think it's that critical. I sometimes fly with a camera(300grams+) hanging from the front arms. Barely notices it.
I also have a quad with another kind of controller(multiwii), that have had it's share of crashes. I tried to fly this once with one arm bent 10cm upwards and one arm twisted, no problems, but it needed a litt stick trim. :-)
Had Another go today.
Disabled compass,reloaded the code and still the same.
Starts off hovering in one spot,than after a bit of maneuvering ,
hands off the controls and the quad still moves around.
here are the accell and gyro offsets,How do they look?
Gyro offsets -35.00, -45.01, -68.91
Accel Offset 14.37, -19.07, 18.61
Tried changing the imax from 50 to 100 on both pitch and roll ,which seemed
Will try more testing tomorrow???
Some people don't seem to have this problem, but if you land and wait 30+ seconds and have full control again it's the DCM's drift compensation. Doug is working on a new concept so that we can compensate drift dynamically. We'll be able to slow the adjustments during flight maneuvers and speed it up when the sticks are in neutral. Hopefully this will solve the issue!
This drift problem seems to happen during aggressive maneuvering. Could it be that some airframes/PID settings can cause the rates to exceed the gyros limits. Gyro saturation is data lost and the soloution gets tilted.The DCM then re-levels its self when it is sitting still on the ground. There's not much you can do about that except to control the maximum rates somehow.
Yeah, two things can happen, you exceed your gyro rates, or you accelerate over a long period. Anything that will make the accelerometers not point to the ground on average will cause an error. The more you do that the worse the error. When the accels are truly stabilized, you can correct that error. Hard to tell in many situations, but quads I believe are easier than Airplanes which can fly in perfect circles.
That sounds like the right solution. Just like with an echo canceller, you don't adapt the filter coefficients when both ends are talking, here we shouldn't adapt the drift offsets rapidly when more than a little user input is being applied or the vehicle is accelerating or rotating significantly. There will be plenty of time to adapt when sticks are near neutral AND current calcuations indicate low accelerometer and gyro outputs in all axes. I agree that slow/fast is better than on/off so that you can't get stuck in a situation of persistently calcuating an erroneous high offset.