Profile image

A Simple Flight Control Attempt

48.6k hfusiwjf29  4.0 years ago

Demonstration aircraft link here:
www.simpleplanes.com/a/musnu7/PigpenX

First of all, this is a static instability aircraft (CoM behind CoL ) , based on Pigpen. Thanks for funky tree, we can easily manipulate it now.

This aircraft without thrust vector control, but it can accomplish some post stall maneuver

Falling leaf


Cobra maneuver


Maintain 60° AOA


Reverse flight


Maintain AOA while pull rod

In the previous version, I tried PID control:
PID(Pitch,AngleOfAttack,X,X,X)
But the results were not so good.

Now I'm going to use a simpler one:
AngleOfAttack+PitchRate+Pitch

And then add the corresponding parameters and we're done.
The current canard code:

clamp(Trim1.5/180+(GS/(GS+1))(-AngleOfAttack/180+Pitch(clamp((TAS20/(-178)+20),0,20)+(Pitch>0?-10:0)+(AngleOfAttack>0?-AngleOfAttack:0)+20-(Pitch<0)VerticalG(1.27+(TAS>290)clamp(TAS0.0044-1.19,0.1,0.5)))/180-PitchRate/(clamp(TAS,70,700)2))+(GS/(GS+1))clamp01(abs(RollRate)-10)clamp(RollRate/(TAS3),-10/180,10/180)+Roll(20+(TAS>312?-(8/135TAS-18.49):0))/180,-15/180,65/180)

During the flight, flight control will limit the maximum G force to about 10G.

For the traditional layout of the aircraft like F16, I haven't succeeded yet.

  • Log in to leave a comment
  • Profile image

    Omg, you got a pfp!

    2.4 years ago
  • Profile image
    1,322 AVAPECO

    WOW!

    3.1 years ago
  • Profile image

    Are you back?

    +9 3.1 years ago
  • Profile image
    55.3k Beefy

    @WNP78 im gonna be beating a dead horse here, but I think the cause of the violent vibration is when the AngleOfAttack approaches 0, in my case it starts at -0.5. How do I solve this?

    3.2 years ago
  • Profile image

    I had no idea you had been on this recently. Will you ever make another legend such as the P-51?

    +4 3.3 years ago
  • Profile image

    wow!

    +1 4.0 years ago
  • Profile image
    Dev WNP78

    @hfusiwjf29 you could try multiplying the output of a PID by a function of the airspeed to reduce sensitivity at higher speeds.

    +2 4.0 years ago
  • Profile image

    @TheKraken3 Atleast they works right?

    +1 4.0 years ago
  • Profile image
    2,376 TheKraken3

    sigh I wanna make a cool flight control system for a future supermaneuverable plane but then they have to be complex like THIS

    +1 4.0 years ago
  • Profile image
    48.6k hfusiwjf29

    @Bob9998 This is the rocket trails.

    4.0 years ago
  • Profile image
    48.6k hfusiwjf29

    @WNP78 I noticed that PID are more stable, but at high speeds they can be accompanied by violent vibrations.

    4.0 years ago
  • Profile image

    Is it possible to change the aerofoils for propellers if you can change the wings to the prop aerofoils? @WNP78

    4.0 years ago
  • Profile image
    101k Wallaby

    @WNP78 I've been trying to make a PID that does exactly that for a while now to no avail

    4.0 years ago
  • Profile image
    Dev WNP78

    I made this too, when I was bored, feel free to check it out and take inspiration. It acts on the principle of keeping canards pointing into airflow, and then adding the pitch movement to that. I have a few PID integrated variants without the makebelieve aerofoil too. Edit: here

    +1 4.0 years ago
  • Profile image

    Holy cow! It works so well! This is SUPER awesome!

    4.0 years ago
  • Profile image

    quite impressive!!

    4.0 years ago
  • Profile image

    That’s pretty cool

    4.0 years ago