@Whatamievendoing Basiclaly, clamp01 "clamps" a value between 0 and 1, the clamp functions are basically setting up boundaries for the output.
For example, the clamp makes sure that you don't get 2 of pitch output, which will overrotate the rotators.
the numbers in the function being the boundaries, the min and max.
Let's take clamp(Pitch -1,1).
-1 is the lowest possible value, and 1 the max. clamp01 does the same thing but you don't put the min and max values at the end of the function, they are already at the front, 0 being the min and 1 the max.
You gotta implement AoA-limiting codes and your freshly-fitted canards, and your elevators, you just can't make a supermaneuvrable plane, without canards, at least in our skillset.
This isnt the smoothest code, but it may do the job.
The plane i written this code for not only uses 3 kinds of "surface" to roll and pitch, but, these three surfaces are also used to limit the AoA.
The surfaces are main elevators, canards, and tvc.
@Whatamievendoing i recommend you experiment with different CoM positions relative to the CoL.
Have you installed canards ? If not, do so.
Your code seems to be made for stabilizing purposes, limiting the pitch angle and not the AngleOfAttack. I am at this moment learning more and tinkering with PIDs so i can't help you with that, but try this code. I am going to give you, a code, but most of the time, FBW codes can't just be slapped on a plane, they gotta be purpose-made.
Your main problem is that you need an angle of attack limiter, not a pitch one.
As your aircraft is aerodynamically unstable, it will pitch up most of the time for no reason, reaching inappropriate AoAs. You need to limit that, not the capacity of your plane to pitch or not. The AoA limiter will, per extension, limit the pitch. clamp(Pitch, -1, 1) - clamp(AngleOfAttack/32, -1, 1) * clamp01(GS > 3) + clamp(Roll, -1, 1)
@LinearAerospike hey bro, remember me ? i'm back to SP!
I saw on your profile that you made a 2 stage missile, how cool ?
I was trying to make a rocket booster for a working guided bomb i made, to increase its range. However it doesnt work. Can you help me with that ? Its basicaaly a 2 stage missile but there is a bomb instead, or a (0speed missile).
Note:
I make ads for my server because we need more members,
I don't really care of your opinions about that, don't come crying for spam in the comments.
@Whatamievendoing no i dont think so
@LinearAerospike ok
you gotta rotate and fine tune
braaaaaap
+1@Whatamievendoing you can do a fictionnal one
+1I can see potential.
You will become a great SP builder if you keep up.
on a school laptop
+1replying to you at school lmao
+1@Whatamievendoing Basiclaly,
+1clamp01
"clamps" a value between 0 and 1, the clamp functions are basically setting up boundaries for the output.For example, the clamp makes sure that you don't get 2 of pitch output, which will overrotate the rotators.
the numbers in the function being the boundaries, the min and max.
Let's take
clamp(Pitch -1,1)
.-1 is the lowest possible value, and 1 the max.
clamp01
does the same thing but you don't put the min and max values at the end of the function, they are already at the front,0
being the min and1
the max.You gotta implement AoA-limiting codes and your freshly-fitted canards, and your elevators, you just can't make a supermaneuvrable plane, without canards, at least in our skillset.
This isnt the smoothest code, but it may do the job.
+1The plane i written this code for not only uses 3 kinds of "surface" to roll and pitch, but, these three surfaces are also used to limit the AoA.
The surfaces are main elevators, canards, and tvc.
@Whatamievendoing i recommend you experiment with different CoM positions relative to the CoL.
+3Have you installed canards ? If not, do so.
Your code seems to be made for stabilizing purposes, limiting the pitch angle and not the AngleOfAttack. I am at this moment learning more and tinkering with PIDs so i can't help you with that, but try this code. I am going to give you, a code, but most of the time, FBW codes can't just be slapped on a plane, they gotta be purpose-made.
Your main problem is that you need an angle of attack limiter, not a pitch one.
As your aircraft is aerodynamically unstable, it will pitch up most of the time for no reason, reaching inappropriate AoAs. You need to limit that, not the capacity of your plane to pitch or not. The AoA limiter will, per extension, limit the pitch.
clamp(Pitch, -1, 1) - clamp(AngleOfAttack/32, -1, 1) * clamp01(GS > 3) + clamp(Roll, -1, 1)
what are your best codes ?
+1@Whills bro you joined 4 months ago how can you be so good ?
this is dope
@Zuznik8 ok broski
@Zuznik8 you said we gotta do a fighter together
@LinearAerospike hey bro, remember me ? i'm back to SP!
I saw on your profile that you made a 2 stage missile, how cool ?
I was trying to make a rocket booster for a working guided bomb i made, to increase its range. However it doesnt work. Can you help me with that ? Its basicaaly a 2 stage missile but there is a bomb instead, or a (0speed missile).
@Zuznik8 u still on dat ?
+1created on Android ?!
goofy ahh plane
@DwiAngkasaAeronautics do the wings are real wings with kift or fuselage blocks ?
@atgxtg yeah thats a great idea but it would look kinda bad i guess, maybe i'll try that on an other project
@Zuznik8 i added you im guess
+1is it based on the ukrainian stugna ?
@Zuznik8 whats your discord, we should link up for some collab
TANKISTRUS MY OLD FRIEND
+1@GuyFolk , do you have a discord, i need to talk to you
@SussyBreadBoi no thanks
Nice and simple. i love it
+2thats very nice !
@Vincent why is discord server advertising forribiden ?
fortnite balls
+5Note:
I make ads for my server because we need more members,
I don't really care of your opinions about that, don't come crying for spam in the comments.
@TriStar thansk
@TatsuTheOtaku hi
@NonameMini hey
hey thanks for spotlight @LieutenantSOT !
+1@XrosFlameGaming spcc is good tho
good luck on your schooling bro..
+1Bye.
: )
@THEYE im alive bro
nice
LETS GOO
cute
@ZippyyThecat bruh
@ZippyyThecat honestly why do you say that ?
tbh nobody cares.
@Augusta cough
and yes ik there is a discord server forum post. it just does nothing.
fuck.
+1You were a great person, you made amazing mods.
@WiiMini
@FrostyYeti