Dear Pete,
I have looked everywhere and tried everything with no luck. I have programmed a joystick button (2,0) as a 6 position switch using offset 66C0 to increment the range of a 3rd party HSI between 10,20,40,80,160 and 320 miles. I have identified the range Lvar and its corresponding parameters with which i have created the Macros files (CM) for each position. The current setup to INCREASE the range is as follows and works,
40=P2,0,Cx310066C0,x00050001
41=B66C0=0 P2,0,CM5:1,10 (starting point)
42=B66C0=1 P2,0,CM6:1,20
43=B66C0=2 P2,0,CM7:1,40
44=B66C0=3 P2,0,CM8:1,80
45=B66C0=4 P2,0,CM9:1,160
46=B66C0=5 P2,0,CM10:1,320
I have tried programming joystick button (2,1) also using offset 66C0 to DECREASE the range depending on the current offset value from joystick button (2,0) with no success, can you please lead me in the right direction on how the decrement code should be or look like. I imagine joystick buttons (2,0) and (2,1) need to be dependent of each other an if so do i need to use different offsets for each one? I have used the preselection concept and came up with the following but is not working. Please note the switch is not cyclic, it only travels between 0 and 5. Another point to note is the behavior of the Lvar, its value (parameter) changes accordingly but goes to zero immediately after nonetheless the range in the HSI gauge stays where it should. I just point put the latter since the Lvar behavior caught my attention and it may or may not be relevant to my query. The comments on brackets are not part of .INI file, I just included them to illustrate the reasoning.
47=P2,1,Cx410066C0,x00050001
48=B66C0=0 P2,1,CM5:1,10 (cannot go further down)
49=B66C0=1 P2,1,CM5:1,10
50=B66C0=2 P2,1,CM6:1,20
51=B66C0=3 P2,1,CM7:1,40
52=B66C0=4 P2,1,CM8:1,80
53=B66C0=5 P2,1,CM9:1,160
Regards,
Alan