Something like: Value <increasing> | Value = 1 ? Value : OtherValue
The correct code probably involves some function i don't understand.
Something like: Value <increasing> | Value = 1 ? Value : OtherValue
The correct code probably involves some function i don't understand.
rate(input) > 0 | input = 1
Just in case anyone stumbles across this on the future.
@V lol
@Korzalerke I'm blind
@V What problem? I literally just showed you the code i used to fix it.
@Korzalerke I'm not knowledgeable enough to solve your problem. The FT lab discord server would be able to help more. The invite is in the pinned forum post
@V Here's the code i used, it's a bit more complicated than just "Brake+VTOL".
@Korzalerke just do
Brake+VTOL
as the input@V The reason i wanted that code is so i could try using the flaps on my plane as the airbrakes but it didn't work out so i did it a different (and very complicated) way involving adding a extra variable and modifying two existing ones.
@Korzalerke try something like this
I have it equal to 0 as (im pretty sure anyway) sum(X) will be treated as a 0 if there is no change in the value
The value will not have to equal 1 if your just trying to see if it is changing or not
@V I know that part, the problem is that i also need to check if the value is increasing or not.
X = 1 ? Y : Z
If X equal 1, the output will be Y. If it is not 1, the output will be Z
Though if you just want to see the value, you could open up the dev console and type in:
DebugExpression (Value)