Profile image

Code for a hover engine?

65.9k TheMouse  6 months ago

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?

  • Log in to leave a comment
  • Profile image
    65.9k TheMouse

    Hahahahaahahshs
    Lets test.
    If you got both a blue and red notification, you followed the post.

    one month ago
  • Profile image
    65.9k TheMouse

    @Hahahahaahahshs
    Maybe you followed the post?

    one month ago
  • Profile image

    @Hahahahaahahshs … unlikely

    one month ago
  • Profile image

    @sleevefifties50 im delusional

    one month ago
  • Profile image

    @Hahahahaahahshs no i did not

    one month ago
  • Profile image

    @Hahahahaahahshs ????

    one month ago
  • Profile image

    @TheMouse sleeve just called me here idk

    one month ago
  • Profile image
    65.9k TheMouse

    @Hahahahaahahshs
    Ok, but that does not explain why are you here?

    one month ago
  • Profile image

    @TheMouse its @sleevefifties50 he’s briNGING BACK THE CURSE

    +1 one month ago
  • Profile image

    @TheMouse ok sorry

    +1 one month ago
  • Profile image
    65.9k TheMouse

    @Hahahahaahahshs
    Why are you here lol?

    one month ago
  • Profile image
    65.9k TheMouse

    @sleevefifties50
    Dont do that please.

    one month ago
  • Profile image

    @sleevefifties50 NOT AGAIN

    one month ago
  • Profile image

    @sleevefifties50 wall of text

    one month ago
  • Profile image

    @Hahahahaahahshs The mouse is good

    one month ago
  • Profile image
    7,104 M109simp

    @TheMouse thank you!

    5 months ago
  • Profile image
    65.9k TheMouse

    @IDK0
    I keep forgetting to fix it lol.
    But I will be posting either today, or tomorrow :)
    Watch out for it :)

    5 months ago
  • Profile image
    7,104 M109simp

    @TheMouse bro you good? Haven’t posted for a bit, and what happened to the pfp?

    5 months ago
  • Profile image

    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

    +1 6 months ago
  • Profile image
    109k Kerbango

    @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.

    +1 6 months ago
  • Profile image
    65.9k TheMouse

    @Kerbango
    Thanks!

    6 months ago
  • Profile image
    109k Kerbango

    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.

    +1 6 months ago
  • Profile image

    Use PID control. It is a bit hard to get right. But it's the best choice.

    +1 6 months ago
  • Profile image
    55.6k PlaneFlightX

    @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.

    +1 6 months ago
  • Profile image
    23.7k Axartar

    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

    +1 6 months ago
  • Log in to see more comments