Profile image

Auto Trim?

24.1k BagelPlane  4.3 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

    4.0 years ago
  • Profile image
    24.1k BagelPlane

    @Chancey21 it’s not working....

    4.3 years ago
  • Profile image
    69.4k Chancey21

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

    4.3 years ago
  • Profile image
    24.1k BagelPlane

    @spefyjerbf I'll try. Thanks!

    +1 4.3 years ago
  • Profile image
    162k spefyjerbf

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

    4.3 years ago