225 complexplanes14526 Comments

  • terrain following 6 months ago

    https://www.simpleplanes.com/a/wrS4L1/X29-with-Autopilot-Formation-Refueling-Terrain-Following
    I'm late to this question but I've been trying to use terrain following and it worked good on this plane, hope it helps! If you want to use it for your own planes everything is in the variable setter from h1 to h3_poly.

    +1
  • X29 with Autopilot Formation, Refueling, Terrain Following one month ago

    @dabestsock The flight controls run a loop that looks at the height of what it flew over half a second ago and what it’s over now, and it uses that trend to predict where the ground is that it’s about to fly over so it can climb or descend to hold its set altitude, and the autopilot just constantly updates that prediction. You want to adapt the system for another plane?

  • X29 with Autopilot Formation, Refueling, Terrain Following 5 months ago

    @Kendog84 thanks for checking it out! If you make it smoother, faster, or lower altitude it works but you'll hit the ground more, because you're right all this does is predict future terrain based on points behind and directly under the aircraft. Its designed to perform ok over the different types of terrain in the map, so that's why it ended up with the fast control rates, aircraft speed limiter, and default height of 300 m. But for example if you takeoff from Maywar takeoff and fly south, it performs very well at 75m, 900km/h, and with smoother controls. Let me know if you've got specific questions but here's a few things you can change:
    1) The engine input uses a variable called apautothrottle that has a speed limit of 150 right now, you can set your own or just use Throttle instead
    2) The easiest way to adjust control rate is to add a smooth function to the pitch variable. I replaced pitchcmd with smooth(pitchcmd,1) and it worked good
    F-111 would be cool, I'd love to fly it when it's done!