inav icon indicating copy to clipboard operation
inav copied to clipboard

Limited servo throw for fixed wing in Horizon/Acro mode without throttle.

Open oleost opened this issue 10 years ago • 57 comments

Issue: When in stabilization modes like acro and horizon there is less servo throw when not throttle is engage. Even with airmode enabled.

Why its an issue: Many airplanes are suitables as semi gliders, so we throttle up and throttle all the way down and fly without throttle, when doing this we need all the servo movements we got.

Also when landing an airplane its normal to cut throttle and glide in for landing, and also here we need full servo movement to hold the plane steady. With abit of wind I had to put plane in passtrough mode to be able to correct enough.

With limited servo throws blackbox log I do the following:

Arm Full aileron in passtrough (Getting full aileron throw) Full aileron in horizon (Getting limited aileron throw) Full aileron in horzion + throttle. (Getting full aileron throw again)

CLI dump.txt limited servo throws black box log.TXT

oleost avatar Mar 05 '16 02:03 oleost

@oleost, Although I haven't been able to do a flight-test yet, I just tested my servo throws on the workbench in passthru & stabilized modes (gyro/acro & horizon). The throws seemed equal in both.

I've noticed that, during flight, the stabilized modes always tend to feel a bit dampened, 'dead', and less responsive than when in passthru. However, this is normal, as the stabilizing action of the FC is somewhat 'fighting' with the pilot for control of the servos/control surfaces, and often there's a bit of a conflict. Perhaps this is what you're experiencing? just a thought...

csurf avatar Mar 05 '16 15:03 csurf

This might be a result of I-term zeroing at zero throttle. Enabling AIR_MODE when in the air might improve the situation. But please avoid enabling AIR_MODE on the ground - it will result in I-term windup and cause trouble with takeoff.

digitalentity avatar Mar 05 '16 15:03 digitalentity

Hi, I already tried using Air_mode to help on this.

Here is a video showing it: https://goo.gl/photos/8njL5FfDCemqC9K76

And black box log Limited servo throws with video.TXT

oleost avatar Mar 05 '16 16:03 oleost

@oleost this is strange. As soon as I get back to my boards, servos and other rc-stuff I'll investigate this further. BTW what PID controller is this?

digitalentity avatar Mar 05 '16 16:03 digitalentity

@digitalentity Everything is default iNav values with "Airplane" Mix, so its MultiWii Rewrite.

oleost avatar Mar 05 '16 16:03 oleost

Hi @oleost , in your video I see the aileron moving weirdly just when you start the motor. I have the same behaviour with iNav 1.0.1 in all the servos of my plane. Only in stabilized modes, not passthrough. No flyable.

I dont touch the ailerons, rudder or elevator sticks when pushing throttle up, but they move full to one side.

I have reported this in rcgroups too.

sppnk avatar Mar 19 '16 18:03 sppnk

@sppnk I got no wierd servo movement. Just limited throw. Im holding full aileron when applying throttle, thats why the aileron moves at the same time, going from limited to full servo throw.

Also, if you plane is laying sideway this would be expected as it is trying to correct it self in stabilized mode, try moving the plane opposit direction or keep it perfectly level and se if the same happens.

@digitalentity I figured out something else today, if I set "ROLL rate", "PITCH rate", "YAW rate" in the PID tuning to 1.0 instead of default 0.0 I almost get no limited throw at all without throttle.

oleost avatar Mar 19 '16 19:03 oleost

@oleost, my plane is horizontal an?d calibrated. this is annoying. Do you have the same version of iNav?

sppnk avatar Mar 20 '16 08:03 sppnk

@oleost, @sppnk Ok, now we are getting somewhere. When R/P rate is set to 0, angular rotation target is limited to 200 degrees/second at full stick deflection. PID is working to satisfy this rate, if servo throw is not sufficient to satisfy this rate, R/P P-term needs to be higher. So this "limited" servo throw is meerly a matter of proper R/P PID tuning.

digitalentity avatar Mar 20 '16 08:03 digitalentity

@oleost could you try not to touch the aileron sticks and push only the throttle when armed? In my case if I do this, all the servos move to one side, not only ailerons. Please report. Thx.

sppnk avatar Mar 20 '16 09:03 sppnk

@digitalentity But why the difference with throttle or no throttle.

Important to remember with airplanes is that even with no throttle the airplane can be at high speed ( example in a dive )

oleost avatar Mar 20 '16 10:03 oleost

@sppnk no movements if applying only throttle

@sppnk Could you also check that when you apply throttle no other channels than the throttle channel moves in the receiver tab?

oleost avatar Mar 20 '16 10:03 oleost

@oleost Just the throttle channel moves in the receiver tab. Do you use iNav 1.0.1?

sppnk avatar Mar 20 '16 19:03 sppnk

Yes and no, I started with iNav1.0.1 and moved on to a self compiled version of Master branch. But I'm on f3 target and not cc3d 20. mar. 2016 8.44 p.m. skrev "sppnk" [email protected]:

@oleost https://github.com/oleost Just the throttle channel moves in the receiver tab. Do you use iNav 1.0.1?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/iNavFlight/inav/issues/89#issuecomment-199003142

oleost avatar Mar 20 '16 21:03 oleost

well, it seems my problem has to do with 6 steps acc calibration. I will try to do this and report.

What I see also is that these high "compensations" in the servos dissapear if Throttle goes below MinThrottle parameter, (i.e. cutting engine). I think is the same thing you are talking about, @oleost .

I think that with motor off we should have the same PIDs working as with motor on. For example to glide.

sppnk avatar Mar 20 '16 21:03 sppnk

I was unable to confirm the issue. Servos work as expected in all modes.

  1. Passthrough = direct stick input applied to servos
  2. Acro + low throttle = PID active, only P-term is applied to servo
  3. Acro + high throttle = PID active, I-term adds more servo throw over time
  4. Angle mode + low throttle = PID active, R/P P-term and LEVEL P are applied to servos
  5. Angle mode + high throttle = PID active, R/P P&I-terms and LEVEL P are applied to servos

Limited servo deflection in ACRO mode - matter of proper ROLL/PITCH PID tuning, servo deflection must be able to sustain the requested angular rotation rate.

Servo drift in ANGLE mode and throttle above min-check - I-term in action. Put the board perfectly level and you won't see it.

digitalentity avatar Mar 20 '16 23:03 digitalentity

AIR mode does it job in allowing I-term only when ARMED, checked and works as expected.

digitalentity avatar Mar 20 '16 23:03 digitalentity

@digitalentity in my tests, if I cut throttle, the servos inmediatly reduce their throw (in angle and horizon modes), exactly like @oleost says in his first post.

sppnk avatar Mar 21 '16 09:03 sppnk

You have different throw at low throttle and at high throttle due to I-term limiting at zero throttle. And I-term is winding up increasing your servo throw only because the airplane is unable to satiafy the command (https://github.com/iNavFlight/inav/issues/26#issuecomment-199069450)

digitalentity avatar Mar 21 '16 09:03 digitalentity

Thx. I will test this in the air probably this week.

sppnk avatar Mar 21 '16 10:03 sppnk