Profile image

Auto Trim?

23.7k BagelPlane  3.8 years ago

So I've been messing around with PID controllers to auto-trim a plane. Works well, but acts like a gyro too. When you pitch the plane, it auto-levels much like a gyro. I'm looking to only auto-trim the plane, not self-right it after pitching up or down. Any suggestions?

  • Log in to leave a comment
  • Profile image

    Try (PitchRate/x) the smaller the number the more it affects the aircraft @BagelPlane

    3.5 years ago
  • Profile image
    23.7k BagelPlane

    @Chancey21 it’s not working....

    3.8 years ago
  • Profile image
    69.2k Chancey21

    Clamp01((AngleOfAttack/x) + Pitch)
    Adjust the x for the severity of the correction

    3.8 years ago
  • Profile image
    23.7k BagelPlane

    @spefyjerbf I'll try. Thanks!

    +1 3.8 years ago
  • Profile image
    161k spefyjerbf

    You might be able to clamp the input to make the trim less powerful.

    3.8 years ago