Jump to content
The simFlight Network Forums

Offsets BC4 BC6


Recommended Posts

Hi, 

I have written a simple LUA to have a sort of autobrake using the offset BC4 and BC6.

Problem is that even if I write the same value in both offsets the result (looking at the FSUIPC log on the screen) is different:

In detail I wrote (ipc.writeUW) in both offsets 2000, but the result is that BC4 is set to 1865 e BC6 to 629. The result is that the aircraft goes to the left and does not maintain a straight direction (that is the reason for what I have written the lua).

I have tried also recalibrating the pedals, but without any result.

Is there a way to solve the issue and to have both values set at the same value? I'm using P3D v5.3.

Thanks ank kind regards

Joe

Link to comment
Share on other sites

You will not see the same values as written, as the offset status document says:

Quote
Note that the values READ here run from 0 to 16384, but will not match exactly the values written. They seem to follow an exponential curve, being much lower at the low end (e.g. only 33% of what is written), gradually catching up to meet at the top.

However, you should see the same values in those offsets if writing the same value.
Can you please add monitoring to those offsets (in FSUIPC), activate lua debug logging and generate an FSUIPC6.log file showing your issue. Attach that with your lua script and your FSUIPC6.ini file and I will take a look.

John

Link to comment
Share on other sites

Hi,

the lua is very simple:

ipc.writeUW(0xBC4,2000)

ipc.writeUW(0xBC6,2000)

I have found a solution using the offsets through a VB program (using the Paul Hentys SDK) in this way:

I write the offsets (and in the log  I see the different values in the offset, always BC4 set to 1865 and BC6 to 629)

Then, through a timer, I wait 500 ms and I write again the values in the offsets.

At that point the values are fine in both the offsets ( in the log BC4 set to 2000 and BC6 set to 2000 and the aircraft is braking going straight forward)

Very strange.

Thanks

Joe

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.