Are you tired of planes with canards that don't move as they are supposed to? Are you tired of your plane with canards not being able to PSM without 90 degrees of thrust vectoring? Are you tired of your fighter plane always handling like an Ace Combat plane?
Just use the canard code from the Pigpen! (The stock Gripen replica) You will need to copy the variables from the variable editor, and the values for the canard inputs. There is also an input for "Acro" that needs to be changed to an Activaton group.
Other than that the code is versitile enough to work on every plane I have tried it on. Just make sure the Center of Mass and Center of Lift are very close together, and just in front of the rear landing gear.
Here's the code.
AoA: AngleOfAttack * clamp01(IAS0.2 - 5)
Canard: Activate3 ? Pitch12 - AoA : Pitch7 - PitchRate0.07 - AoA1.3
Canard: abs(AoA) > 110 ? deltaangle(AoA,180) : Canard
Canard: (IAS < 70) & (AltitudeAgl < 2.5) & (Brake>0) ? Brake40 : Canard
Keep in mind that you have to add "Canard" as 3 seperate variables. I will add a picture later.
And in the XML editor you will need to change the Rotator input to this on one side
clamp(Canard/40 - Roll0.3, -1.5, 1.5)
And this on another side.
clamp(Canard/40 + Roll0.3, -1.5, 1.5)
I hope you like this.
All code was from a stock plane. All credit goes to thr dev who made the "Pigpen". This code happens to work with all the planes I have tested it on, making relaxed stability planes easy.
Now no one has an excuse to set their canards to only Pitch.
Thank you for sharing, that is so fantastic! It's amazing how well the Pigpen code works; I've been having trouble getting accurate canard behavior. I'll give this a shot on my upcoming build.
@BuildModifier I more mean how Pigpen's system is ALWAYS active.
@Graingy It depends on the aircraft, though quite a few aircraft ended up flying quite well with this code. It seems to work best with non-tailless planes.
@BuildModifier Hm. Pigpen also doesn't fly very nicely.
I assume that goes the same here.
@Graingy I agree, I can't code FT either. This code just happened to work for all the planes I have put it on with no changes.
@BuildModifier Probably because nobody can make sense of it unless they're already making their own codes.
How it actually works is unclear. Why each number needs to be what it is/what would change by changing them is not explained at all. It's virtually impossible to work with - there's no starting point to FT like that.
@Graingy Yeah, I just found it strange how they developed basically a universal canard FBW code and no one uses it
Issue is that no effort is made by the Developers to explain any of that, more specifically the significance of all those factors (e.g. 110, 2.5).