Profile image

How do i make a master warning?

1,803 Stick  one month 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

    @Stick
    variable1 = 1 & variable2 = 0 ? (sin(sum(360*1))) : 0

    one month ago
  • Profile image
    1,803 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

    one month ago
  • Profile image

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

    one month ago
  • Profile image
    1,803 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

    one month ago
  • Profile image

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

    one month ago
  • Profile image

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

    one month ago
  • Profile image
    1,803 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.

    one month ago
  • Profile image

    Can you explain what exactly what you want?

    one month ago
  • Profile image
    1,803 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?

    one month 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

    one month ago