Profile image

Funky trees question

26.8k MadeUpHimself  4.7 years ago

I need to make an engine which will activate only on 90% throttle. Which command should i use?

  • Log in to leave a comment
  • Profile image

    @edensk now it is official funky trees for dummies thread

    Pinned 4.6 years ago
  • Profile image

    Command for input is ;
    Throttle=0.9 ? 1:0

    1.7 years ago
  • Profile image
    2,388 ACEVIPER9710

    can someone help i need help with ####PitchRate/150 bc if you go too fast it becomes uncontrollabe

    1.9 years ago
  • Profile image
    11.2k Quackie

    Throttle => .9

    4.2 years ago
  • Profile image
    9,103 ZWLenning

    @Type2volkswagen ah
    ok i dont know then

    4.4 years ago
  • Profile image

    @ZWLenning
    so
    1 ? 1 : floor(smooth(clamp01(Throttle = 1) , 1/00)) - floor(smooth(clamp01(Throttle = 1) , 1/30))

    It constantly spins with 0 throttle input like that.

    4.4 years ago
  • Profile image

    @edensk 1 more, is it possible to have a compass like gauge that points towards a spot on the map? For example, Mayar, or Krackabloa as you fly around it would point to a fixed place.... (|), (/), (-)
    (my attempt at gauges)

    4.4 years ago
  • Profile image
    9,103 ZWLenning

    @Type2volkswagen could do 1 ? 1 : [your input]? i think that will basically say that if the input is one, it will stay at one, if not the input is the input you gave it? that might work, ive been having similar problems and this is the latest in a long list that im gonna try

    4.4 years ago
  • Profile image

    Great Forum!
    @edensk I'm using this:

    floor(smooth(clamp01(Throttle = 1) , 1/00)) - floor(smooth(clamp01(Throttle = 1) , 1/30))

    to get a rotator (and attached handle) to turn for the 1st 30 seconds and this:

    floor(smooth(clamp01(Throttle = 1) , 1/30))

    on the Engine. I'm simulating the wind up crank starters on several WW1 planes.

    Only problem I have is that the crank, (rotator) "unwinds" after 30 sec. any way to stop that?

    4.4 years ago
  • Profile image
    9,103 ZWLenning

    @JolyLoly aha thanks

    4.5 years ago
  • Profile image

    @Zoowarp (Roll) + (Pitch)

    4.5 years ago
  • Profile image
    9,103 ZWLenning

    any way to have 2 inputs for a hinge or rotator - I.E: roll and pitch for elevons? @edensk

    4.5 years ago
  • Profile image

    @edensk hm, okay. Thanks

    4.6 years ago
  • Profile image
    16.5k edensk

    @JolyLoly I don't think there's an easy way of doing that, you could take a look at EternalDarkness' latest boat's turret to figure out a better system

    4.6 years ago
  • Profile image

    @edensk how to limit the angle of rotation of rotator with sum(x) command?

    4.6 years ago
  • Profile image
    16.5k edensk

    @JolyLoly You're welcome :)

    4.6 years ago
  • Profile image

    @edensk thank you:)

    +1 4.6 years ago
  • Profile image
    16.5k edensk

    Roll
    -range: 180
    RollAngle/180
    Yaw
    -range: 180
    -shortestAngle: true
    Heading/180 + (whatever input you use to turn the turret)


    For the roll one change the 180s by whatever max angle you want, and use -Heading and -RollAngle if you have to invert them.

    4.6 years ago
  • Profile image

    @edensk Roll+ Yaw

    4.6 years ago
  • Profile image
    16.5k edensk

    Do you want it stabilized on the roll axis too? Or just pitch?

    4.6 years ago
  • Profile image

    @edensk for turret on plane

    4.6 years ago
  • Profile image
    16.5k edensk

    @JolyLoly Kinda depends on what it is for.

    4.6 years ago
  • Profile image

    @edensk hi! Do you know how to make stabilization without gyro(using funky trees and rotators)? Is it possible?

    4.6 years ago
  • Profile image
    11.5k shipster

    Jeez ok thank you very much @edensk

    4.6 years ago
  • Profile image
    16.5k edensk

    @shipster You should make it using PitchRate, not AoA
    You could use and tune a PID


    clamp(PID(0, PitchRate, 0, 0, 0))


    The last three zeros are the values you will have to tune. Start increasing the first one (P) until the pitch rate is more or less maintained at 0 (it will overshoot a lot, it's normal), then tune the next one (I) so that it's dampened and doesn't overshoot at all, then tune the last one (D) until it's more or less perfect.
    .
    I assume you want to combine it with Pitch so:
    clamp(PID(0, PitchRate, 0, 0, 0))*clamp01(Pitch = 0) + Pitch

    +1 4.6 years ago
  • Log in to see more comments