Profile image

Rotator "flip-flop" possible? (Solved)

5,895 FarrowTECH  2.0 years ago

Can I make a rotator do an open then close sequence by hitting one button, say, landing gear.

The door for my landing gear are in 2 parts and I want the forward facing door to open the make way for the wheel and close again once the landing gear is fully deployed. And when the gear retracts I want it to open again and stay open until the landing gear is folded. I'll try and make a video of manually operating the gear if my explanation is shite.

  • Log in to leave a comment
  • Profile image
    5,895 FarrowTECH

    @PlaneFlightX oh Lord it's called ping pong... Be still my heart lol.

    Thanks a ton mate!

    +1 2.0 years ago
  • Profile image
    49.5k PlaneFlightX

    Main Gear Doors Code

    A code which is simple to modify the timing of, and is 1 whenever landing gear is retracted or extended, otherwise it is 0.

    clamp01(pingpong(smooth(clamp01(GearDown) * 2, 0.5), 1) > 0)

    Change "0.5" to a smaller number for a longer timing, or a larger number for a shorter timing.

    The above is copied directly from a Discord server I'm in (I wrote the code)

    +1 2.0 years ago