Hi John, coming back to this in order to get the parking brake to release when I press the pedal brakes, which are axes configured in fsuipc. Sorry if there is something daft, I am very green with Lua scripts.
If I can get a value to change in an offset when I press the pedal brake, I can then program in my opencockpits sioc script to run the motor which will release the parking brake, that is the easy bit. As mentioned above, the pedal brake offsets can't be used as they are all fixed on 32767 when parking brake is set. So I thought I could use the raw data instead for the axis as below:
I have set up the following lua script which is saved as Pbrake.lua in my fsuipc folder to try and register a value change if I press the Right Brake Pedal (Joystick "B" Axis "Y"):
----------------------------------------------
-- Parking brake release
----------------------------------------------
n = ipc.axis("B", "Y")
value = n
ipc.writeUW(0x66DA, value)
In FSUIPC.ini I have added this lua script as below:
[LuaFiles]
1=BCastMemClient
2=Dlight
3=ipcReady
4=BCastMemSvr
5=Pbrake
My Axes in fsuipc.ini are as follows:
[Axes]
PollInterval=10
RangeRepeatRate=10
0=BX,256,D,7,0,0,0 -{ DIRECT: LeftBrake }-
1=BY,256,D,8,0,0,0 -{ DIRECT: RightBrake }-
2=CX,256,D,41,0,0,0 -{ DIRECT: Reverser1 }-
3=CY,256,D,42,0,0,0 -{ DIRECT: Reverser2 }-
However, the 0x66DA offset doesn't register any value change when I press the pedal brake
Regards
Charles