Jump to content
The simFlight Network Forums

FSUIPC Control 65892 AP_ALT_VAR_INC


Recommended Posts

I moved from version 3.53 to version 3.70 and discovered that the above command is no longer working. I need it for setting the altitude by voice control.

Am I missing something? What can I do (except reverting to 3.53 which I have already done)?

Regards,

Konrad

Link to comment
Share on other sites

Well ok, it is a FS control. But the fact remains that I reach it and assign it to a key combination via FSUIPC.

Why does that work with version 3.53 but not with version 3.70? (No changes made to FS!)

Well, I've assigned it to a key here, as a test, and it works fine. Are you using a default aircraft? Test it on one first.

FSUIPC does not differentiate between any of the FS controls. It just passes them on. If that one doesn't work, none of them will. Have you got any other assignments in FSUIPC? Do any of them work?

Maybe you should show me the appropriate [Keys ...] section of your FSUIPC.INI fileare you using aircraft-specific assignments, or any other complications I should know about?

Regards,

Pete

Link to comment
Share on other sites

I am flying the default Lear 45 only.

I am attaching my FSUIPC.ini apologizing for the mess it is in. It needs a thorough cleaning out. But anyhow, it works with version 3.53.

I checked all the entries in the Keys section under "Keys for use by the voice control program Shoot", calling them directly from the keyboard to avoid possible problems with Shoot.

With version 3.53 all entries work.

In version 3.70, there are the following three exceptions:

32=66,11,66036,500 ;AP_VS_VAR_SET_ENGLISH +500 fpm

36=75,11,66036,2500 ;AP_VS_VAR_SET_ENGLISH +2500 fpm

70=67,26,65892,0 ;AP_ALT_VAR_INC

All other entries work.

The strange thing is that

39=77,11,66036,-600 ;AP_VS_VAR_SET_ENGLISH -600 fpm

works without problem.

I tried to replace 500 by +500 and 2500 by +2500 in lines 32 and 36 but that didn't help.

Mysterious!

Regards and thanks for your help,

Konrad

Link to comment
Share on other sites

I am attaching my FSUIPC.ini apologizing for the mess it is in. It needs a thorough cleaning out. But anyhow, it works with version 3.53.

No attachment. But why not just include the [Keys ...] sections only here? (ARE you using aircraft-specific assignments at all? If not there will only be the one [Keys] section.

Mysterious!

Indeed. And yu say there are NO other changes excepting the 3.53/3.70 swap? Because it really sounds like something else is pinching those particular key presses.

There are two ways of getting more information on this.

1) Try assigning those three non-working controls to ordinary keys, like A, B, C, temporarily. See if they work. If so it's the keys you are using originally being trapped someplace. If not, try assigning other controls to A, B, C, see if others work. If so then something somehow is getting in the way of those controls.

2) In the Logging section of the FSUIPC options you will find, on the left, places to sleect logging for "Button and Key operations", and 2Events". Select both of those, then try out your keys -- those that work, those that don't. Write down the order you do things so I can work out from the log what is going on.

Regards,

Pete

Link to comment
Share on other sites

Here the Keys section:

[Keys]

;[Keys.Learjet 45 Limited Edition]

;To work with Version 3.30 of FSUIPC, Key actions must be numbered

;sequentially (NO GAPS!) starting with 0.

;DO NOT USE ANY SLASHES IN THE COMMENTS

;Space: Reset eyepoint

0=32,8,66530,0

;Insert: Sim Rate 0.25x

1=45,8,66041,64 ;SIM_RATE_SET 0.25x

;Home: Sim Rate 1x

2=36,8,66041,256 ;SIM_RATE_SET 1x

;Page Up: Sim Rate 4x

3=33,8,66041,1024 ;SIM_RATE_SET 4x

;Delete: APR On

4=46,8,65806,0 ;AP_APR_HOLD_ON

;End: FD LVL On

5=35,8,65814,0 ;AP_APR_HOLD_OFF

6=35,8,65809,0 ;AP_WING_LEVEL_ON

;Page Down: FD ALT Off (For setting ALT by copilot)

7=34,8,66104,0 ;AP_PANEL_ALTITUDE_OFF

8=34,8,1004,25 ;Clear Flag ALT

;Ctrl + Down Arrow: On the ground

9=40,10,1004,20 ;Clear Flag "airborne"

10=40,10,1004,24 ;Clear Flag "Take off"

11=40,10,65791,0 ;AUTOPILOT_OFF

12=40,10,1004,21 ;Clear AP Flag

13=40,10,66113,0 ;AP_PANEL_SPEED_OFF

14=40,10,1004,23 ;Clear Airspeed Flag

15=40,10,66104,0 ;AP_PANEL_ALTITUDE_OFF

16=40,10,1004,25 ;Clear flag ALT

17=40,10,1004,18 ;Clear Flaring flag

18=40,10,1004,26 ;Clear flag "semi-manual"

19=40,10,66069,0 ;YAW_DAMPER_ON

20=40,10,66065,0 ;SPOILERS_OFF

21=40,10,1004,27 :Clear flag reduced thrust

;Ctrl + Up Arrow: Airborne

22=38,10,66065,0 ;SPOILERS_OFF

23=38,10,1003,20 ;Set Flag "airborne"

24=38,10,1004,26 ;Clear flag "semi-manual"

25=38,10,1004,18 ;Clear Flag "Flaring"

26=38,10,1004,24 ;Clear Flag "Take off"

27=38,10,66069,0 ;YAW_DAMPER_ON

;Keys for use by the voice control program "Shoot"

;F12: MCT

28=123,8,1004,31 ;Dummy

29=123,8,1004,31 ;Dummy

30=123,8,65697,11264 ;THROTTLE_SET "MCT"

;CTRL+SHIFT+A: HDG +1

31=65,11,65879,0 ;HEADING_BUG_INC

;CTRL+SHIFT+B: Set climb to +500 fpm

32=66,11,66036,500 ;AP_VS_VAR_SET_ENGLISH +500 fpm

;CTRL+SHIFT+E: HDG On

33=69,11,66106,0 ;AP_PANEL_HEADING_ON

;CTRL+SHIFT+I: BC on

34=73,11,65810,0 ;AP_BC_HOLD_ON

;CTRL+SHIFT+J: NAV on

35=74,11,65811,0 ;AP_NAV1_HOLD_ON

;CTRL+SHIFT+K: VS +2500

36=75,11,66036,2500 ;AP_VS_VAR_SET_ENGLISH +2500 fpm

;CTRL+SHIFT+M: Preset descent to -600 fpm

37=77,11,1004,31 :Dummy

38=77,11,1004,31 :Dummy

;38=77,11,66124,0 ;AP_ALT_VAR_SET_ENGLISH 0

39=77,11,66036,-600 ;AP_VS_VAR_SET_ENGLISH -600 fpm

;CTRL+SHIFT+N:

;Used as Hot Key for GPWS

;CTRL+SHIFT+F11: Manual Throttle

40=122,11,66110,0 ;AP_PANEL_MACH_OFF

41=122,11,66113,0 ;AP_PANEL_SPEED_OFF

42=122,11,1004,23 ;Clear Airspeed Flag

43=122,11,1004,31 :Dummy

;CTRL+SHIFT+F5: Speed Control On (IAS)

;44=116,11,66110,0 ;AP_PANEL_MACH_OFF

43=122,11,1004,31 :Dummy

45=116,11,66112,0 ;AP_PANEL_SPEED_ON

46=116,11,1003,23 ;Set Airspeed Flag

;CTRL+SHIFT+P: Speed +1 KIAS

47=80,11,65896,0 ;AP_SPD_VAR_INC

;CTRL+SHIFT+Q: Speed 120 KIAS

48=81,11,66037,120 ;AP_SPD_VAR_SET 120 KIAS

;CTRL+SHIFT+R: Speed 150 KIAS

49=82,11,66037,150 ;AP_SPD_VAR_SET 150 KIAS

;CTRL+SHIFT+U: Speed 200 KIAS

50=85,11,66037,200 ;AP_SPD_VAR_SET 200 KIAS

;CTRL+SHIFT+D: Speed 250 KIAS

51=68,11,66037,250 ;AP_SPD_VAR_SET 250 KIAS

;CTRL+SHIFT+Y: Speed 300 KIAS

52=89,11,66038,77 ;AP_MACH_VAR_SET .77 (useful?)

53=89,11,66037,300 ;AP_SPD_VAR_SET 300 KIAS

;CTRL+SHIFT+F7: Landing (Descend below MDA)

54=118,11,66124,0 ;AP_ALT_VAR_SET_ENGLISH 0

55=118,11,1004,31 ;Clear flag (dummy)

;CTRL+SHIFT+F8: HDG -1

56=119,11,65880,0 ;HEADING_BUG_DEC

;CTRL+SHIFT+F10: Gear Down

57=121,11,66080,0 ;GEAR_DOWN

58=121,11,1004,31 :Dummy

;CTRL+SHIFT+9: VS +100 fpm

59=57,11,65894,0 ;AP_VS_VAR_INC

;CTRL+SHIFT+F12: VS -100 fpm

60=123,11,65895,0 ;AP_VS_VAR_DEC

;CTRL+SHIFT+0: Speed -1 KIAS

61=48,11,65897,0 ;AP_SPD_VAR_DEC

;CTRL+SHIFT+2: Mach Control .77

62=50,11,66113,0 ;AP_PANEL_SPEED_OFF

63=50,11,1004,23 ;Clear Airspeed Flag

64=50,11,66109,0 ;AP_PANEL_MACH_ON

65=50,11,66038,77 ;AP_MACH_VAR_SET .77

;CTRL+SHIFT+3: GPS Zoom in

66=51,11,66615,0 ;GPS_ZOOMIN_BUTTON

;CTRL+SHIFT+4: GPS Zoom out

67=52,11,66616,0 ;GPS_ZOOMOUT_BUTTON

;CTRL+TAB Combinations

;CTRL+TAB+a

68=65,26,66124,0 ;AP_ALT_VAR_SET_ENGLISH 0

;CTRL+TAB+b

69=66,26,1004,31 ;Dummy

;CTRL+TAB+c

70=67,26,65892,0 ;AP_ALT_VAR_INC +100

;CTRL+TAB+d

71=68,26,66605,0 ;GPS_OBS_BUTTON

;CTRL+TAB+e

72=69,26,66611,0 ;GPS_TERRAIN_BUTTON

;CTRL+TAB+f: Start Timing

73=70,26,65661,0 ;CLOCK_SECONDS_ZERO

74=70,26,1004,31 ;Clear flag (dummy)

75=70,26,1004,31 ;Clear flag (dummy)

;CTRL+TAB+g

76=71,26,1004,31 ;Clear flag (dummy)

;CTRL+TAB+h

77=72,26,66530,0 ;EYEPOINT_RESET

;CTRL+TAB+i

78=73,26,1004,31 ;Clear flag (dummy)

79=73,26,66524,0 ;EYEPOINT_UP

80=73,26,66524,0 ;EYEPOINT_UP

;CTRL+TAB+j: MCR

81=74,26,66094,0 ;AP_AIRSPEED_OFF

82=74,26,1004,23 ;Clear AIRSPEED Flag

83=74,26,65697,8704 ;THROTTLE_SET "MCR"

;CTRL+TAB+k: Semi-manual

84=75,26,66070,0 ;YAW_DAMPER_OFF

85=75,26,65814,0 ;AP_APR_HOLD_OFF

86=75,26,1003,26 ;Set flag Semi-manual

87=75,26,65809,0 ;AP_WING_LEVEL_ON

88=75,26,66104,0 ;AP_PANEL_ALTITUDE_OFF

89=75,26,1004,25 ;Clear Flag ALT

;CTRL+TAB+l: Toggle DME

90=76,26,66286,0 ;TOGGLE_DME

;CTRL+TAB+m: Heading 360

91=77,26,1003,31 ;Dummy

92=77,26,66042,0 ;HEADING_BUG_SET 0

;CTRL+Tab+n: Idle

93=78,26,66110,0 ;AP_PANEL_MACH_OFF

94=78,26,66113,0 ;AP_PANEL_SPEED_OFF

95=78,26,1004,23 ;Clear Airspeed Flag

96=78,26,65697,3584 ;THROTTLE_SET "Idle"

;CTRL+Tab+o: Cut off

97=79,26,66110,0 ;AP_PANEL_MACH_OFF

98=79,26,66113,0 ;AP_PANEL_SPEED_OFF

99=79,26,1004,23 ;Clear Airspeed Flag

100=79,26,65604,0 ;THROTTLE_CUT

;CTRL+Tab+p: Increase thrust

101=80,26,65598,0 ;THROTTLE_INCR

;CTRL+Tab+q: Close-in Turn

102=81,26,1003,28 ;Set flag Close-in Turn

;CTRL+Tab+r: Hold speedbrake

103=82,26,66064,0 ;SPOILERS_ON

;CTRL+Tab+s: Flaps 8

104=83,26,65597,0 ;FLAPS_1

;CTRL+Tab+t: Flaps 20

105=84,26,65599,0 ;FLAPS_2

;CTRL+Tab+u: Flaps 40

106=85,26,65601,0 ;FLAPS_3

;CTRL+Tab+v: Thrust 40%

107=86,26,65697,3584 ;TROTTLE_SET 40%

108=86,26,66064,0 ;SPOILERS_ON

;CTRL+Tab+w: Take off thrust

109=87,26,66066,0 ;SPOILERS_ARM_ON

110=87,26,65697,13824 ;TROTTLE_SET Take off

111=87,26,1003,24 ;Set flag take-off

;CTRL+Tab+x: Heading 360 degrees (not used)

;112=88,26,66502,121 ;AIRSPEED_BUG_SELECT

I think I found a clue. I will work on it and report back.

Regards,

Konrad

Link to comment
Share on other sites

Did the following:

Made sure keys A, B and C were not assigned in FS9

Assigned A, B and C to lines 32, 36 and 70 ==> all three keys did not function

Assigned A, B and C to lines 30, 57 and 66 ==> all three keys worked

Reset assignments

Flew at ALT 4600 VS 0

Changed to ALT 3600 VS -1800 pressed CTRL+SHIFT+M ==> VS changed to -600 as designed.

Changed to ALT 5600 VS 1800 pressed CTRL+SHIFT+B ==> VS did not change to 500 as intended.

Log is attached.

As for the clue. I found that when I changed the parameter in line 39 from -600 to 500 VS was correctly set to 500. The difference being that line 39 is preceded by two dummy lines 37 and 38. I therefore suspected a timing problem. Unfortunately, inserting two dummy lines before line 32 did not resolve the problem.

Let me know whether I should do more logging.

Regards,

Konrad

FSUIPClog.zip

Link to comment
Share on other sites

Okay. There's definitely a bug and I'm trying to find it now. it is very odd.

The log was okay, nothing I could see wrong there.

The best test to see what was happening was to load your [Keys] settings into FS, add one more Key assignment IN THE DIALOG (to force a change so that it would re-write the section), then check what FSUIPC intrerpreted from your input [Keys] section.

Obviously you've never used the dialogue to edit any of these, so you wouldn't have seen the results, here:

[Keys]

;[Keys.Learjet 45 Limited Edition]

;To work with Version 3.30 of FSUIPC, Key actions must be numbered

;sequentially (NO GAPS!) starting with 0.

;DO NOT USE ANY SLASHES IN THE COMMENTS

;Space: Reset eyepoint

0=32,8,66530,0

;Insert: Sim Rate 0.25x

1=45,8,66041,64

;Home: Sim Rate 1x

2=36,8,66041,256

;Page Up: Sim Rate 4x

3=33,8,66041,1024

;Delete: APR On

4=46,8,65806,0

;End: FD LVL On

5=35,8,65814,0

6=35,8,65809,0

;Page Down: FD ALT Off (For setting ALT by copilot)

7=34,8,66104,0

8=34,8,1004,25

;Ctrl + Down Arrow: On the ground

9=40,10,1004,20

10=40,10,1004,24

11=40,10,65791,0

12=40,10,1004,21

13=40,10,66113,0

14=40,10,1004,23

15=40,10,66104,0

16=40,10,1004,25

17=40,10,1004,18

18=40,10,1004,26

19=40,10,66069,0

20=40,10,66065,0

21=40,10,1004,27

;Ctrl + Up Arrow: Airborne

22=38,10,66065,0

23=38,10,1003,20

24=38,10,1004,26

25=38,10,1004,18

26=38,10,1004,24

27=38,10,66069,0

;Keys for use by the voice control program "Shoot"

;F12: MCT

28=123,8,1004,31

29=123,8,1004,31

30=123,8,65697,11264

;CTRL+SHIFT+A: HDG +1

31=65,11,65879,0

;CTRL+SHIFT+B: Set climb to +500 fpm

32=66,11,128244,128244 ;########################## ??????????

;CTRL+SHIFT+E: HDG On

33=69,11,66106,0

;CTRL+SHIFT+I: BC on

34=73,11,65810,0

;CTRL+SHIFT+J: NAV on

35=74,11,65811,0

;CTRL+SHIFT+K: VS +2500

36=75,11,640244,640196 ;################# ????????

;CTRL+SHIFT+M: Preset descent to -600 fpm

37=77,11,1004,31

38=77,11,1004,31

;38=77,11,66124,0 ;AP_ALT_VAR_SET_ENGLISH 0

39=77,11,66036,-600

;CTRL+SHIFT+N:

;Used as Hot Key for GPWS

;CTRL+SHIFT+F11: Manual Throttle

40=122,11,66110,0

41=122,11,66113,0

42=122,11,1004,23

43=122,11,1004,31

;CTRL+SHIFT+F5: Speed Control On (IAS)

;44=116,11,66110,0 ;AP_PANEL_MACH_OFF

43=122,11,1004,31 :Dummy

45=116,11,66112,0

46=116,11,1003,23

;CTRL+SHIFT+P: Speed +1 KIAS

47=80,11,65896,0

;CTRL+SHIFT+Q: Speed 120 KIAS

48=81,11,66037,120

;CTRL+SHIFT+R: Speed 150 KIAS

49=82,11,66037,150

;CTRL+SHIFT+U: Speed 200 KIAS

50=85,11,66037,200

;CTRL+SHIFT+D: Speed 250 KIAS

51=68,11,66037,250

;CTRL+SHIFT+Y: Speed 300 KIAS

52=89,11,66038,77

53=89,11,66037,300

;CTRL+SHIFT+F7: Landing (Descend below MDA)

54=118,11,66124,0

55=118,11,1004,31

;CTRL+SHIFT+F8: HDG -1

56=119,11,65880,0

;CTRL+SHIFT+F10: Gear Down

57=121,11,66080,0

58=121,11,1004,31

;CTRL+SHIFT+9: VS +100 fpm

59=57,11,65894,0

;CTRL+SHIFT+F12: VS -100 fpm

60=123,11,65895,0

;CTRL+SHIFT+0: Speed -1 KIAS

61=48,11,65897,0

;CTRL+SHIFT+2: Mach Control .77

62=50,11,66113,0

63=50,11,1004,23

64=50,11,66109,0

65=50,11,66038,77

;CTRL+SHIFT+3: GPS Zoom in

66=51,11,66615,0

;CTRL+SHIFT+4: GPS Zoom out

67=52,11,66616,0

;CTRL+TAB Combinations

;CTRL+TAB+a

68=65,26,66124,0

;CTRL+TAB+b

69=66,26,1004,31

;CTRL+TAB+c

70=67,26,25700,25600 ;################## ????????

;CTRL+TAB+d

71=68,26,66605,0

;CTRL+TAB+e

72=69,26,66611,0

;CTRL+TAB+f: Start Timing

73=70,26,65661,0

74=70,26,1004,31

75=70,26,1004,31

;CTRL+TAB+g

76=71,26,1004,31

;CTRL+TAB+h

77=72,26,66530,0

;CTRL+TAB+i

78=73,26,1004,31

79=73,26,66524,0

80=73,26,66524,0

;CTRL+TAB+j: MCR

81=74,26,66094,0

82=74,26,1004,23

83=74,26,65697,8704

;CTRL+TAB+k: Semi-manual

84=75,26,66070,0

85=75,26,65814,0

86=75,26,1003,26

87=75,26,65809,0

88=75,26,66104,0

89=75,26,1004,25

;CTRL+TAB+l: Toggle DME

90=76,26,66286,0

;CTRL+TAB+m: Heading 360

91=77,26,1003,31

92=77,26,66042,0

;CTRL+Tab+n: Idle

93=78,26,66110,0

94=78,26,66113,0

95=78,26,1004,23

96=78,26,65697,3584

;CTRL+Tab+o: Cut off

97=79,26,66110,0

98=79,26,66113,0

99=79,26,1004,23

100=79,26,65604,0

;CTRL+Tab+p: Increase thrust

101=80,26,65598,0

;CTRL+Tab+q: Close-in Turn

102=81,26,1003,28

;CTRL+Tab+r: Hold speedbrake

103=82,26,66064,0

;CTRL+Tab+s: Flaps 8

104=83,26,65597,0

;CTRL+Tab+t: Flaps 20

105=84,26,65599,0

;CTRL+Tab+u: Flaps 40

106=85,26,65601,0

;CTRL+Tab+v: Thrust 40%

107=86,26,65697,3584

108=86,26,66064,0

;CTRL+Tab+w: Take off thrust

109=87,26,66066,0

110=87,26,65697,13824

111=87,26,1003,24

113=57,26,65733,0 ;############### Added to force re-write

;CTRL+Tab+x: Heading 360 degrees (not used)

;112=88,26,66502,121 ;AIRSPEED_BUG_SELECT

There's only four differences, and one was my change. I've marked the differences clearly with rows of ##### and ???? (the last change was simply my additon to force a write).

Note that all recent versions of FSUIPC retain the line numbers, and line comments. You lose the comments added to the ends of lines though.

Anyway, your three problems are cause by rubbish in my tables for those three keys, which get regurgitated as:

32=66,11,128244,128244

36=75,11,640244,640196

70=67,26,25700,25600

which is very weird.

I am investigating this, but I have other commitments too so I can't promise a quick result. But I'll do my best.

Regards,

Pete

Link to comment
Share on other sites

Okay. There's definitely a bug and I'm trying to find it now. it is very odd.

Okay, it was easy after all. I suddenly had the bright idea of correcting those three lines in my regurgitated [Keys] section, and running FS again.

It worked okay!

That was the big clue! The only difference was those comments at the end of the line, after the ";".

The problem is actually caused by the "+" sign in the comments, which occurs on those three lines only! Phew!

The FSUIPC change which was responsible is this one (quoting from the History document):

Additional FSUIPC-implemented controls are added to send Key Presses to FS, for use in some of the facilities above but also to make it easier than programming the Windows keydown and keyup sequences needed by the IPC facilities at offset 3200. These new controls are available in the Buttons and Axis control options drop downs, but, more importantly, they can be easily sent via offset 3110 from external programs, including across WideFS links. The controls are:

1070 Key Press and Release

1071 Key Press/Hold

1072 Key Release

The parameter for this gives both the keycode and the shift codes—both as listed in the Advanced User’s guide. The parameter must hold the shift code in bits 8–15 and the keycode in bits 0–7. In other words, the value is:

Keycode + (256 x Shift code)

A shift code of zero is the same as 8 (i.e. no shifts).

To make it easier in the dialogue drop-downs these values can be entered as ‘Keycode+Shiftcode’, that is literally with the ‘+’ as a separator. Examples of this occur in the Axis Calibration section of the User guide.

Evidently, when I added that facility (it was in version 3.60, back in April) I obviously took a rather lazy approach and didn't check things so well.

I'll fix this and the correction will be in the next version -- maybe only an interim release in the Announcements above, for now.

Meanwhile, please just remove the + signs in the in-line comments and you'll find it all works fine.

Regards,

Pete

Link to comment
Share on other sites

You are right, I never used the dialog, the reason being that I did not like to loose the end of line comments.

Of course, now I understand that in doing so I missed this very neat method of troubleshooting you demonstrated. Next time I will do better.

There is no hurry for a solution as I can fly with version 3.53 without problems.

Thank you for your support!

Konrad

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.