Profile image

funky command for ram jet

233k RamboJutter  3.3 years ago

So as you know i cant work these funky trees out and no matter what i try i cant get it to work for what i want.

Would some kind person please create me a command for an engine so it responds to throttle but only activates above 1000kts(ish). Thanks in advance.

  • Log in to leave a comment
  • Profile image

    @edensk oh, okay! Thank you so much!
    Sorry, I didn't realize it lol

    3.3 years ago
  • Profile image
    16.5k edensk

    @LieutenantSOT I already added a 0.5s delay, it's the 2

    +1 3.3 years ago
  • Profile image

    @edensk do you know how to delay it from starting?
    Sorry. I keep asking too much
    .
    But either way, thank you so much. This code works perfectly

    3.3 years ago
  • Profile image

    @edensk oh, thanks!!

    3.3 years ago
  • Profile image
    16.5k edensk

    @LieutenantSOT floor(smooth(clamp01(GS>A & GS<B),2))*Pitch

    +1 3.3 years ago
  • Profile image

    @edensk sorry, I did a horrible job of explaining that lol
    .
    So I'm trying to make an engine that has a working "transmission." Each gear is an engine. Because engines do not have rpm in the game, I'm basing it off of the speed of the vehicle. For this to work, I need multiple engines
    .
    Now, for this, I'm trying to make it where a weak engine runs until the vehicle reaches a high speed, then it shuts off. After a 0.5 second delay, the next, more powerful, engine turns on, and keeps accelerating until it reaches the speed for the next engine to turn on
    The code I'm trying to make right now would make the engine only work within a certain parameter (IE only from GS 10 to GS 30). But I am having very little success. However, your code below with the Pitch*clamp01(GS>10) functions on the engine

    3.3 years ago
  • Profile image
    16.5k edensk

    @LieutenantSOT can you explain it with words? I don't get what you mean

    3.3 years ago
  • Profile image

    @edensk
    okay, quick question, with that clamp01(x) code, how do you turn it into a variable based on a range?
    .
    For instance, if I wanted something like Pitch*clamp(>x,&lt;x) how would that have to be written?

    3.3 years ago
  • Profile image

    @edensk ah alright, thanks!

    3.3 years ago
  • Profile image
    16.5k edensk

    @DwiAngkasaAeronautics If you go to the desmos link I posted earlier you'll see. The altitude thing is part of the mach code

    3.3 years ago
  • Profile image

    Hey @edensk, what's the number behind pow stand for? and also why altitude has to be multiplied by 0.003937?

    3.3 years ago
  • Profile image
    13.9k ChrisPy

    ah i see thats smart most of the time acceleration isnt modeled well in this @edensk

    3.3 years ago
  • Profile image

    @edensk thank you so much! This helps a TON

    3.3 years ago
  • Profile image
    16.5k edensk

    @LieutenantSOT Throttle * ((-13.717*pow(clamp( (TAS/(340-clamp((Altitude*0.003937),0,43))) ,.65,1)-.92 ,2)+1) + (0.9122*pow(clamp( (TAS/(340-clamp((Altitude*0.003937),0,43))) ,1,2)-2,2)))
    You're welcome! @RamboJutter

    +2 3.3 years ago
  • Profile image

    @edensk thanks 😊 I will plug that in next time I get on, glad someone knows how these things work.

    +2 3.3 years ago
  • Profile image

    @edensk oh, and the maximum thrust mach will be at about 0.92 mach (the same mach that propfans start becoming unstable due to vibrations). The aircraft will not be able to surpass the speed of sound easily, so I'm not too sure about whether it will produce power after mach 1.0

    3.3 years ago
  • Profile image

    @edensk oh, really? Thank you so much
    .
    So, the aircraft I'm building is a massive aircraft, and it will normally fly at up to 50,000 or maybe higher.
    The mach number is 0.65 (the aircraft is not the fastest)

    3.3 years ago
  • Profile image
    16.5k edensk

    @LieutenantSOT tell me the starting mach and the maximum thrust mach and I'll give you the code directly

    3.3 years ago
  • Profile image

    @edensk woah, that code is great!!
    .
    I'm making a turboprop/ramjet engine right now, and the ramjet acts like afterburner. I might attempt to use this. Is there a way to make it work under Mach 1?

    3.3 years ago
  • Profile image
    16.5k edensk

    Here you have it: Throttle * ((-0.4444*pow(clamp( (TAS/(340-clamp((Altitude*0.003937),0,43))) ,1.5,3.5)-3 ,2)+1) + (0.043895*pow(clamp( (TAS/(340-clamp((Altitude*0.003937),0,43))) ,3.5,8)-8,2)))

    And here's the link to the desmos graph, so you can modify it at will

    3.3 years ago
  • Profile image
    16.5k edensk

    @ChrisPy Not really. I'll create a realistic thrust vs mach curve, where thrust increases gradually up to a certain mach (starting from anywhere between mach 1 and 2 in this case), and then starts to decay

    3.3 years ago
  • Profile image
    13.9k ChrisPy

    @edensk has pretty much got it there the method he will most likely take though is have it start creating thrust at a higher percentage than 0 it'll basically just be y=mx+b but with parameters for activation

    3.3 years ago
  • Profile image
    16.5k edensk

    I can give you a much more realistic code in a day or two, but this is what you asked for: Throttle*clamp01(TAS>514.44)

    3.3 years ago