Profile image

dose anyone know how to fix this code?

15.6k Noob101  2 months ago

clamp01(Yaw * (1/(GS/9)))

I was wondering if it could be made to go both ways I am using it for a car

  • Log in to leave a comment
  • Profile image
    35.5k Christiant2

    What are codes😂

    2 months ago
  • Profile image
    7,586 overlord5453

    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.

    +3 2 months ago