What do you mean by that. What exactly you want this code to do compared to what it actually does.
Pretty sure you already know this but incase you didn't, clamp01(input) locks locks whatever input you gave between 0 and 1. clamp(input,min value,max value) locks it between whatever minimum and maximum value you gave. For example, clamp01(Throttle * 2) where Throttle * 2 output is locked between 0 and 1 even though it can give a maximum output of 2. clamp(VTOL * 2, -0.5,1) where output is locked between -1 and 2 even though it can give a minimum of -2 and maximum of 2.
What are codes😂
What do you mean by that. What exactly you want this code to do compared to what it actually does.
Pretty sure you already know this but incase you didn't,
clamp01(input)
locks locks whatever input you gave between0
and1
.clamp(input,min value,max value)
locks it between whatever minimum and maximum value you gave. For example,clamp01(Throttle * 2)
whereThrottle * 2
output is locked between0
and1
even though it can give a maximum output of2
.clamp(VTOL * 2, -0.5,1)
where output is locked between-1
and2
even though it can give a minimum of-2
and maximum of2
.