Jump to content
The simFlight Network Forums

jonathanfe

new Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by jonathanfe

  1. Pete, I too have been experiencing this issue - stutters when triggering a lua file. The file I am using is triggered when pushing the joystick forward to press the brakes (so it's assigned to an axis). When I remove it from the axis assignment the stuttering goes away. Weird, and I never noticed it before updating to P3D 4.1. I tried the above [Auto] but it doesn't work in my case (unless I am doing something wrong or missing something). This is the only lua script I have running so I don't think it's colliding with another. Using 5.1.2.102 Jonathan
  2. Thanks Pete. Actually maybe I could ask for some more help (anyone?)? I wrote the following which does what I want (apply brakes when on ground). I can see the brakes values increasing by watching the offsets outputted to the screen display. I set up the axis assignment to call my lua script when a range is entered (8000 to 16383 i.e. when I push the stick forward), and repeat whilst in range. This works sort of OK for the default Trike, but on loading the FSL A320 the values stop updating which means the brakes don't get pressed. I tried it by setting controls, using the default keypress (.) and setting the toe brakes offsets directly to emulate the keypress. The only way I can get FSLA320 brakes to respond is to use the offset method. However this way is like bashing the . key, and setting the offset value to 200 slams the brakes on - is there a different way to code this to more smoothly apply the brakes perhaps? function press_brake (offset, value) -- function decides that if the value of offset is 1, then send brake controls if value == 1 then -- send left and right brake controls -- ipc.control(65720) -- ipc.control(65721) -- ipc.keypressplus(190,8,1) ipc.writeUB("0C01",150) ipc.writeUB("0C00",150) end end -- read the offset value 0366 which is aircraft on ground offset and pass to function event.offset("0366", "UB", "press_brake") Thanks
  3. Hello, I created an axis assignment for the FSLA320 that allows me to utilize the joystick to apply the brakes, using the LeftBrake and RightBrake actions on the same Y axis. Works quite well as I can slowly push the axis forward to apply gradual braking instead of tapping the . key repeatedly which doesn't work very well for me. However, since this axis is also assigned to the Elevator (and Slew Ahead), this means that when I tip the nose forward in the air, the brakes are also applied. Not the end of the world as the brakes don't do anything in the air, but my question is: is there a way in FSUIPC to conditionally apply the brakes function when on the ground only, using the above axis setup? Or is there some other way to achieve what I wanted, this was the only way I could find to achieve what I wanted? I don't have separate brake pedals, just a joystick and a keyboard. Thanks Jonathan
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.