Profile image

How do i make a master warning?

1,334 Stick  18 hours ago

Hi, I'm trying to make a winch make a sound when my main rotor goes over x RPM. I also wanna make it so i can stop it from gowinch either doesn't turn oing off after pressing a button. But my ff or it stops before using the button/lowering RPM. How do i code this?

  • Log in to leave a comment
  • Profile image
    1,334 Stick

    @overlord5453 Yeah this worked, thanks. Is there a way to have it stay on till i turn it off with another variable? I want to be able to reset it

    4 minutes ago
  • Profile image
    12.9k overlord5453

    @Stick it should keep extending and retracting as long as the variable is active.

    8 hours ago
  • Profile image
    1,334 Stick

    @overlord5453 I tried making it really short but then it beeps for a second and stops cuz it completed the movement. Unless you can use cycle (like on a piston) on a winch

    10 hours ago
  • Profile image
    12.9k overlord5453

    Make the range of the winch short so that it will retract quickly. Or use a piston.

    15 hours ago
  • Profile image
    12.9k overlord5453

    @Stick okay, try this
    Variable ? clamp01(sin(sum(360*1))) : 0
    The 1 here determines the speed of the winch. Change it to higher number for higher speed.

    15 hours ago
  • Profile image
    1,334 Stick

    @overlord5453 I want a winch to move only when a variable turns on, not off. It's hard to explain I guess. I tried to make the winch work when the variable turns on, but then it also was making a sound when turning off. Sorry, English isn't my 1st language.

    17 hours ago
  • Profile image
    12.9k overlord5453

    Can you explain what exactly what you want?

    17 hours ago
  • Profile image
    1,334 Stick

    @LowQualityRepublic I can't make a winch just stop mid movement
    And If no, can I have it only run when the warning goes on, not off?

    17 hours ago
  • Profile image

    the acknowledge warning part is kinda impossible, but if you want the master warning to trigger when the engine is overspeeding you can set the propeller RPM variable to something random and then put YourVariable>(RPMthreshold)

    Example:
    Propeller RPM variable: Rotations
    FT input on light: Rotations>3500

    18 hours ago