Jump to content
The simFlight Network Forums

Aileron, elevator and rudder trim set only works once.


Recommended Posts

Hi All.

I don't know if anyone can shed any light on this.

I've set up the following conditional button events to set and re set elevator, aileron and rudder trim. lines 23 to 29 work perfectly well, but lines 20, 21 and 23 are giving trouble. These resets events work once and once only. After that they do nothing until I restart FSX.

17=;*****************************************
18=; Throttle quadrant
19=;*****************************************
20=CP(+3,2)2,1,C65706,0     -{ELEVATOR_TRIM_SET}-
21=CP(+3,2)2,3,C66731,0     -{AILERON_TRIM_SET}-
22=CP(+3,2)2,4,C66721,0     -{GPWS_SWITCH_TOGGLE}-
23=CP(+3,2)2,5,C66732,0     -{RUDDER_TRIM_SET}-
24=CR(-3,2)2,0,C65607,0     -{ELEV_TRIM_DN}-
25=CR(-3,2)2,1,C65615,0     -{ELEV_TRIM_UP}-
26=CR(-3,2)2,2,C66277,0     -{AILERON_TRIM_RIGHT}-
27=CR(-3,2)2,3,C66276,0     -{AILERON_TRIM_LEFT}-
28=CR(-3,2)2,4,C66279,0     -{RUDDER_TRIM_RIGHT}-
29=CR(-3,2)2,5,C66278,0     -{RUDDER_TRIM_LEFT}-

I've tried replacing CP with CR, but that seems to make no difference.

I've also considered trying to use an offset to do the same thing, but there are several offsets that refer to trim and I'm not certain which one to use.

So I would be pleased to hear from anyone who could help.

My apologies if this duplicates any previous posts. I've looked but I can't find any.

Regards.

Pontius.

 

Link to comment
Share on other sites

1 hour ago, Pontiusthepilot said:

I've set up the following conditional button events to set and re set elevator, aileron and rudder trim. lines 23 to 29 work perfectly well, but lines 20, 21 and 23 are giving trouble. These resets events work once and once only. After that they do nothing until I restart FSX.

Try enabling Button & Key logging, and also Event logging -- Axis events, because those are axis assignments. These options are on the left in the FSUIPC options logging tab.

If you (temporarily) run the Sim in Windowed mode, you could also enable the "Console Log" option on that tab so you can see what happens in real time. Otherwise you'll have to refer to the log file in an editor.

Pete

 

 

Link to comment
Share on other sites

This is either a bug or designed as is..(internal sim, not FSUIPC) When using a pure "set", not "axis set", if the value is unchanged from the last time "set" was used it does nothing..
Dealt with this on throttle set gauge. Try these instead.

AXIS ELEV TRIM SET 65766

For aileron & rudder keep using your compounds but on press set them to a value of 1 then on release set to zero.
An alternative... A lua may be a little better for these 2.

Should work for you.

Link to comment
Share on other sites

10 minutes ago, spokes2112 said:

This is either a bug or designed as is..(internal sim, not FSUIPC) When using a pure "set", not "axis set", if the value is unchanged from the last time "set" was used it does nothing.

Ah, yes. I remember that one now. Doesn't it also apply to the AXIS... SET controls?

There's another way around it though. Just do it like this:

20=CP(+3,2)2,1,C65706,10   -{ELEVATOR_TRIM_SET}-
21=CP(+3,2)2,1,C65706,0       -{ELEVATOR_TRIM_SET}-
22=CP(+3,2)2,3,C66731,10   -{AILERON_TRIM_SET}-
23=CP(+3,2)2,3,C66731,0       -{AILERON_TRIM_SET}-
25=CP(+3,2)2,5,C66732,10   -{RUDDER_TRIM_SET}-
26=CP(+3,2)2,5,C66732,0       -{RUDDER_TRIM_SET}-
(or, of course, with other unique line numbers)

  • Upvote 1
Link to comment
Share on other sites

14 minutes ago, Pete Dowson said:

Doesn't it also apply to the AXIS... SET controls?

If my memory serves correct - no.. The commands left/right/up/down overwrite the axis values.. (?)
I'd take that with a grain of salt without testing.. (lol) It was so long ago and have no reference (or sim) in front of me.. 

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.