I want some kind of code I can add to a jet engine’s input to make it keep the plane at whatever altitude it is at when I activate 3. Is this possible?
I want some kind of code I can add to a jet engine’s input to make it keep the plane at whatever altitude it is at when I activate 3. Is this possible?
The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first The mouse is always first
@TheMouse also you could change the Activate3 to VTOL, Trim, or Throttle to have finer control of your elevation, with the slider going between the minimum (0.05) and the maximum, (6.66 or whatever) and have the AG be 3.
@Kerbango
Thanks!
oh oh I know this one!!!
copy/paste this into input.
PID(Activate3, rate(AltitudeAgl), 1, 0.05, 0.05)
You can change the 0.05 up, as this is close to minimum.
Use
PID
control. It is a bit hard to get right. But it's the best choice.@TheMouse I have no experience with hover engines/systems, but I would recommend either a PID or what I used for my autopilot which is a carefully tuned autotrim with a difference modifier.
For the autotrim, carefully record the required throttle to PERFECTLY maintain various altitudes (I'd recommend 500 or 100 feet increments, and again make sure the plane is perfectly maintaining that altitude), then use a regression equation from something like Excel to get the formula. Then put that formula into FT. For the difference modifier, simply subtract the current altitude from the target (with a clamp and multiplier), and add this number to the autotrim.
or you could sorta do a worse version of a PID where the for a downwards facing engine input = Amplitude*rate(altitude) where you could always using a logarithmic or diminishing aspect to stop it going haywire like atan or log
idk too well, but in theory with a PID(a,b,c,d,e) and some clever picking you could sorta have it hover wherever or an adjustable height using something like PID((clamp01(VTOL)*altitude,altitude,c,d,e)
Use PIDs, may be a bit tricky at first but you'll thank your stars once you get the hang of it
There is one on my A-Wing and a different one in my ufo but I forgot how they work
There’s one on this
I would also like to know.
@PlaneFlightX
Do you know how this would work, if possible?