Jump to content
The simFlight Network Forums

HeloTrim,can't get it to work


Recommended Posts

Dear Pete,

I'am trying to get the "HeloTrim function" to work.

I did the following:

in fsuipc.ini added under: [JoystickCalibration.HELI] ; ApplyHeloTrim=YES.

Made a small lua to write to offset 0BBE (one for trim up one for trim down)

And made a small lua to display same offset value.

The good news is, the value goes up and down as expected.

But in the Heli (stnd bell) nothing changes.

I'am doing something wrong! but what . .

 

 

I suspected it has something to do with: "Note that, as a precaution, the trim value will 

never be added to the relevant axis if the normal trim value is non-zero."

And tried to force the normal trim offsets to zero ( ipc.writeSW(0x0BC0, 0) and ( ipc.writeSW(0x3338, 0)

But that didn't help.

 

Can you point me in the right direction?

Thanks, Erik

 

 

 

 

The functions:

function Helo_Trim_up()

current_trim = ipc.readSW(0x0BBE)

new = (current_trim + 5000)
ipc.writeSW(0x0BBE, new)
end --func

 

function Helo_Trim_dn()
current_trim = ipc.readSW(0x0BBE)

new = (current_trim - 5000)
ipc.writeSW(0x0BBE, new)
end --func

------------------------------

ipc.setdisplay(10,1000,140,1)

while 1 do
ipc.sleep(100)

current_trim = ipc.readSW(0x0BBE)

ipc.lineDisplay("Heli trim = "..current_trim)
end

 

 

 

 

Link to comment
Share on other sites

I'am trying to get the "HeloTrim function" to work.

 

This is a facility i remember very little about, and i've never been a helo user.. So let me first check things according to the documentation.

 

First, the usual essential information, missing in your question. Is this with FS2000, FS2002, FS2004, FSX, or P3D, and which actual version of FSUIPC?

 

in fsuipc.ini added under: [JoystickCalibration.HELI] ; ApplyHeloTrim=YES.
 
And "HELI" is the current Profile?
 
Is it only pitch trim you want, no bank trim too? If so, is the elevator axis calibrated through FSUIPC? The facility only adds the value to the current control axis -- elevator or aileron, as appropriate, and sends it on to FS accordingly.
Made a small lua to write to offset 0BBE (one for trim up one for trim down)
And made a small lua to display same offset value.

The good news is, the value goes up and down as expected.But in the Heli (stnd bell) nothing changes.

 

Well it could hardly not do so, as it is write enabled..

 

I suspected it has something to do with: "Note that, as a precaution, the trim value will 

never be added to the relevant axis if the normal trim value is non-zero."

And tried to force the normal trim offsets to zero ( ipc.writeSW(0x0BC0, 0) and ( ipc.writeSW(0x3338, 0)But that didn't help.

 

3338 is a read-out, not a value you write to.  Is offset 0BC2 zero ?  That's the elevator trim indicator, and the place used by FSUIPC.

 

The functions:

 

And how are those functions called?

 

Have you tried using logging to see what happens to the elevator axis? FSUIPC logging tab, axis event logging. The parameter for the axis named "KEY_AXIS_ELEVATOR_SET" should have whatever value you have in offset 0x0BBE subtracted from it. This will occur whenever the elevator axis changes, or 0xBBE is written to. The axis value used is the one from offset  0x0BB2. (If that offset is written to, the same adjustment is applied).

 

Pete

 

Link to comment
Share on other sites

To be complete, my answers: FSX, 4.931, HELI is current profile, only pitch trim is wat i want,

logged offset 0BC2 and there was the problem, it was at 54 (not zero).

adapted my functions, now every time i give a trim input, also ipc.writeSW(0x0BC2, 0) is writen and that solved my problems!

thanks for pointing me in the right direction! 

brds Erik

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.