The Gui shows it as well.
Acc values for roll & pitch is 0 but the motors start to compensates as if it´s tilted.
In flight.
When Stable is enabled it tilts like The Gui shows.
If i land and go to min tthrottle It will fly level again.
For a while... Then it starts to drift.
It repets for ever..
I think this can cause it.
Code: Select all
errorAngleI[axis] += errorAngle;
I think that when the machine is level and no RC-input there is no reason to compensate..
Am i riht?
Or do i have bad luck when i´m thinking
And this is why it´s corrected after a touch and go.
Code: Select all
if (rcData[THROTTLE] < MINCHECK) {
errorGyroI[ROLL] = 0; errorGyroI[PITCH] = 0; errorGyroI[YAW] = 0;
errorAngleI[ROLL] = 0; errorAngleI[PITCH] = 0;
Would it be safe to try it like this?
Code: Select all
[code] errorAngleI[axis] = errorAngle;[/code]
I think no correction is needed if Acc say is's level.
Something is building up an errorAngleI in my system.
Untill it reaches the constrain for errorAngleI.
When i make the change the drift is gone in the gui.
It's no weather for testfliht to day but the gui looks god.
My spec:
Warthox V1.2
Ardu mini
WMP original
NB original
Pluch 25
dys A2822-17 / Kv:1100
/Patrik