Jump to content
The simFlight Network Forums

Rotary switch and compound button controls


Recommended Posts

The Honeycomb Bravo has a rotary switch to select between ALT, VS, HDG, CRS and IAS. Once the selection is made there is another clockwise/anticlockwise rotary switch to increment or decrement the associated value. The associated joystick/buttons are (64,20), (64,19), (64,18), (64,17) and (64,16). Clockwise is (64,12) and anticlockwise is (64,13).

The aircraft is a Gates Learjet 35A and the sim is P3Dv5 HF1.

The compound commands set up are:

13=CP(+64,20)P64,12,CRX4000010c,1     -{Macro LearJet35A: AltInc2}-
14=CP(+64,20)P64,13,CRX4000010c,3     -{Macro LearJet35A: AltDecr2}-
15=CP(+64,16)P64,12,CM10:15,0     -{Macro LearJet35A: IASUp2}-
16=CP(+64,16)P64,13,CM10:16,0     -{Macro LearJet35A: IASDown2}-
20=CP(+64,17)P64,12,CM10:9,0     -{Macro LearJet35A: CRSInc}-
21=CP(+64,17)P64,13,CM10:10,0     -{Macro LearJet35A: CRSDecr}-
22=CP(+64,18)P64,12,CM10:11,0     -{Macro LearJet35A: HEADInc}-
23=CP(+64,18)P64,13,CM10:12,0     -{Macro LearJet35A: HEADDecr}-

The Macros are:

7=AltInc=RX4000010c,1

9=CRSInc=RX4000014e,1
10=CRSDecr=RX4000014e,3
11=HEADInc=RX4000014d,1
12=HEADDecr=RX4000014d,3
13=AltInc2=RX4000010c,1
14=AltDecr2=RX4000010c,3
15=IasIncr2=RX400000fb,1
16=IASDecr2=RX400000fb,33

When run, the only dials on the Learjet that move are Heading and CRS.

As an experiment, I set up a another switch to access the Altitude increment macro and used the NON compound instruction below - it worked!

25=P65,14,CM10:7,0     -{Macro LearJet35A: AltInc}-

So it seems to me the compound instruction is not picking up the rotary dial position for Altitude and IAS. Note that the numbering of all switches are valid as per FSUIPC when looked at in the SIM. Also I have programmed these dials on other aircraft using Spad.Next.

Any thoughts would be appreciated.

Allan

Link to comment
Share on other sites

4 hours ago, allan.kidd@optusnet.com.au said:

As an experiment, I set up a another switch to access the Altitude increment macro and used the NON compound instruction below - it worked!

25=P65,14,CM10:7,0     -{Macro LearJet35A: AltInc}-

But this is different from the macro when using the compound assignment (and the macro is using a different mouse rectangle):

13=CP(+64,20)P64,12,CRX4000010c,1     -{Macro LearJet35A: AltInc2}-

Can you try with using the same macro, just to be sure?

Sorry, forget that - the macros are the same....

If it doesn't work, then it would suggest that the rotary buttons for Altitude and IAS are momentary (i.e. press and release rather then press and hold until next rotary turn/button press), which would be rather strange.

You can also try with logging for Buttons & Switches activated. The log should show you what buttons are pressed/released when you turn your rotary, and if your macro is being called (and doing nothing) or not when you press the assigned buttons.

Edited by John Dowson
corrected
Link to comment
Share on other sites

4 hours ago, allan.kidd@optusnet.com.au said:

13=CP(+64,20)P64,12,CRX4000010c,1     -{Macro LearJet35A: AltInc2}-
14=CP(+64,20)P64,13,CRX4000010c,3     -{Macro LearJet35A: AltDecr2}-

This is not correct. It should be:
    13=CP(+64,20)P64,12,CM10:13,0     -{Macro LearJet35A: AltInc2}-
    14=CP(+64,20)P64,13,CM10:14,0     -{Macro LearJet35A: AltDecr2}-

and

4 hours ago, allan.kidd@optusnet.com.au said:

16=IASDecr2=RX400000fb,33

should be
    16=IASDecr2=RX400000fb,3

Edited by John Dowson
Further info added
Link to comment
Share on other sites

4 hours ago, allan.kidd@optusnet.com.au said:

13=CP(+64,20)P64,12,CRX4000010c,1     -{Macro LearJet35A: AltInc2}-
14=CP(+64,20)P64,13,CRX4000010c,3     -{Macro LearJet35A: AltDecr2}-
15=CP(+64,16)P64,12,CM10:15,0     -{Macro LearJet35A: IASUp2}-
16=CP(+64,16)P64,13,CM10:16,0     -{Macro LearJet35A: IASDown2}-
20=CP(+64,17)P64,12,CM10:9,0     -{Macro LearJet35A: CRSInc}-
21=CP(+64,17)P64,13,CM10:10,0     -{Macro LearJet35A: CRSDecr}-
22=CP(+64,18)P64,12,CM10:11,0     -{Macro LearJet35A: HEADInc}-
23=CP(+64,18)P64,13,CM10:12,0     -{Macro LearJet35A: HEADDecr}-

The syntax is also wrong, so I'm surprised anything is working! The format should be:
    n=CP(+j2,b2)j,b, ....
so those extra P's are redundant...

John

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.