Case 0 'throttle as labeled on RD (throttle on bottom half) m =lever(1).slope(0) b =lever(1).intercept(0) m1=lever(1).islope(1) b1=lever(1).iintercept(1) invert=true 'change to true to invert If (invert=false) then If (AnalogValue(0)>=maxthrottle) Then 'full throttle TS_SetControllerValue(THROTTLE_ID, RailSimThrottleMax) Else If (AnalogValue(0)minthrottle) Then 'between full throttle and idle Dim sendval As Single=m*AnalogValue(0)+b TS_SetControllerValue(THROTTLE_ID, sendval) Else 'idle TS_SetControllerValue(THROTTLE_ID, RailSimThrottleMin) End If Else If (AnalogValue(0)<=maxbrake) Then 'full throttle now TS_SetControllerValue(THROTTLE_ID, RailSimThrottleMax) Else If (AnalogValue(0)>maxbrake And AnalogValue(0)