Trying to set brake using AXIS_LEFT_BRAKE_SET practically impossible

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

No idea ? It’s really weird the linear event is not available

Did you find a solution to this?

Unfortunately not

I was able to modify the pedal position by sending axis_left_brake_set a negative value higher than -16383. However, I am trying to do this using a knob in my Stream Deck +. In order to do this I need to know the current value. For some reason all the variables related to brake position return zero. Setting them to a non zero value does nothing. If I could find a variable that returns the current pedal position I would be able to solve this.

I’m using these Simvars to check those values