Jump to content
The simFlight Network Forums

CDU2 key numbers duplicated


Recommended Posts

Hi Pete,

I've just had a VRi customer contact me with a problem he has just found with the CDU2 and with version FSUIPC 4.642 and I can reproduce it with 4.641 as well. Basically there are 4 buttons on the CDU2 that show up as two pairs

i.e. the button in the bottom right corner of the CDU (CLR) and the C (C ) key both have the same identifier of joy 263, button 10.

Also the 3rd button across from the bottom right corner of the CDU (DEL) and the D (D) key have the same ID of joy 263, button 11.

(n) = VRI SerialFP2 test mode key ID's

This is very strange this is the first time anyone has mentioned it and I don't remember it being a problem when we beta tested it. Do you think this is a problem at VRi's end or yours?

I wouldn't have picked this problem up any earlier because I hardly ever use my CDU2, I don't often have time for flights that require an FMC be programmed.

Link to comment
Share on other sites

I've since found out that the fourth key along from the bottom right (SP) and the S (S) key are also duplicated with joy 263 button 26.

well i saw this on airbus forum and found it vrinsight and here and ther is 1 thing i wounder about as i was investegate this. I found by opening the key mapping that all the keys at the bottom dont have any assignment. dont know if it could be therefor as it sounds like it tryes to read some thing you say CLR same as C and Del same as D. but must say i dont have the hardware just a guess

Link to comment
Share on other sites

I'm sorry I have not got a clue what you just said. Please don't confuse matters, help isn't required from anyone else at this point, Pete and I should be able to sort this out between us. Its probably my fault for not beta testing things properly for Peter back when he first added support for VRinsight hardware.

Link to comment
Share on other sites

I've since found out that the fourth key along from the bottom right (SP) and the S (S) key are also duplicated with joy 263 button 26.

Yes. A stupid error. The problem is in the name matching. The three keys which have the wrong button assignments are supplying the following names:

KEYSP

KEYDEL

KETCLR

but FSUIPC's name matching algorithm is matching them to earlier names in the list:

KEYS

KEYD

KEYC

I should have put all the longer names at the beginning. The matching is done like this, in general, because often there are other parts following the name, like numbers or + or - which have to be processed separately.

The problem I have now is that, to do it properly, I should re-order the list. But that will mean all of the letter keys having their buttons numbers changing, which might upset folks who've already done a lot of work on assignments. So, I'll have to think of another way, maybe an exception in the code somehow. Ugh!

Pete

Link to comment
Share on other sites

maybe insted of:

KEYSP

KEYDEL

KETCLR

Then if posible:

KEYÆ

KEYØ

KEYÅ

just some one not included on the keyboard

No, sorry, you misunderstand. The names are not mine. They are the strings the firmware in the CDU2 is sending to represent the key-press. You've forgotten all the logging you and others did so I could identify all the names of all the buttons and switches on each device? ;-)

I have solved it by assigning 4 button numbers luckily still unused from the previous device in the tables. So SP DEL / and CLR will all have nice shiny new button numbers, but the others all stay the same! I had to include / as it's part of that little sequence.

I'll post updated version for both FS9 and FSX later today.

Regards

Pete

Link to comment
Share on other sites

Thanks Pete you are a star.

I don't feel a bright one at present. The fix for this bug reveals another. A lot of the button numbers assigned to the M-Panel overlap with those assigned to the MCP Combi!

This might be okay if no one owns both, but the trouble is that to make the fix for the CDU2 work correctly I've had to fix the bug which caused the overlap. This means that most all of the M-Panel buttons change! :-(

As far as I can see now all I can do is fix it so it is correct, but provide a fidddle INI-file only option to "retainoldMpanel buttons". i.e.

OldMpanelButtons=Yes

but defaulting to No, so things are okay for new users.

What do you think?

Pete

Link to comment
Share on other sites

Sounds good to me Pete, its the best you can do in the circumstances, I think if anyone owns both the MCP Combi and the M-panel I think they would rather have to reprogram the M-panel rather than the MCP with its myriad of buttons, I know that's how I feel anyway. I've got quite a few aircraft profiles for the MCP and next to none for the M-panel.

Link to comment
Share on other sites

Sounds good to me Pete

Okay. The fixed versions are now uploaded:

4.643 for FSX and ESP

3.989s for FS9 and before

The change is described like this:

An error in the FSUIPC tables for decoding the VRInsight device button and switch names has been fixed. This affects the M-Panel and CDU2 devices only. The correction does two things:

* it fixes the duplicate button numbers for the SP, DEL and CLR buttons on the CDU2. The / button is also renumbered.

* it fixes the overlap of button numbers between the M-Panel and the MCP-Combi.

However, one side effect of these fixes is that many of the button numbers on the M-Panel now change. If you are not using an MCP-Combi device, and don't want to have to reprogram your M-Panel assignments in FSUIPC, you can stop the second fix above operating by adding the following line to the [General] section of the FSUIPC4.INI file:

OldMpanelButtons=Yes

Regards

Pete

Link to comment
Share on other sites

  • 2 weeks later...

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.