2024-07-26T22:00:00Z

Trying to set the position of a wheel brake using AXIS_LEFT_BRAKE_SET event is impossible as the scale is not linear and the linear event (too easy) is not supported

If I have a percent value how can I convert it to the 32K value expected by this event ???

Apart the 0/100 percentage position (mapped to -16384/16384) for any other value there is no format conversion available

The documentation gives you 5 (x,y) points (0,-16383), (.08,-8191), (0.27,0), (0.53, 8191) and (1.0, 16383) so it shouldn’t be too difficult to derive an equation that gives a good approximation for ‘y’ given any value of ‘x’.

Some sort of polynomial regression might fit well.

What language are you using?

It’s a RPN expression in the behaviour model xml therefore I don’t think it should be so easy

Can you write a RPN code to set it ?

I tried ((A:BRAKE LEFT POSITION, percent scaler 32k) 16383 - (>K:AXIS_LEFT_BRAKE_SET)) but as the scale is not linear it doesn’t work properly