Hi all,
I'm using Air Manager with Xplane 11 to control an Opencockpits FMC, interfacing with the IXEG 737-300.
There is a way of getting datarefs from the FMC, which is a plugin called "OCusbmapper" this assigns datarefs to all the buttons and leds of the Opencockpits FMC. However, I'm getting a weird effect where the command is sent multiple times. At its simplest, for instance:
xpl_dataref_write("ixeg/733/FMC/cdu1_G", "FLOAT", 0)
,,, will produce five "G" characters in the scratchpad.
I've assigned a callback request to effect four backspaces, but obviously not an ideal solution - also doesn't work with non-character keys such as the LSKs or the function keys (DEP/ARR, HOLD etc).
I have tried putting a flag into each callback and then
if flag == previous then return end
But I think it all happens too quickly to stop the multiple "firing" of the dataref write.
I will contact the writer of the plugin too, but wondered if anyone else has had this experience or could suggest a way to just capture one write and discard the other four?
many thanks,
Roger.
AM sending a value multiple times?
Re: AM sending a value multiple times?
Sounds like you're running an old plugin.
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: AM sending a value multiple times?
Hi,
Are there not commands to use rather than trying to write to the datarefs?
Keith
Are there not commands to use rather than trying to write to the datarefs?
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
-
- Posts: 47
- Joined: Tue Dec 22, 2020 7:42 am
Re: AM sending a value multiple times?
Hi Keith,
Good idea but sadly not - the "clear", or backspace, command is the only "command" I've come across for the keys - all of the alphanumeric keys are datarefs only.
I'll check the plugin though Ralph, good call.
Cheers, Roger
Good idea but sadly not - the "clear", or backspace, command is the only "command" I've come across for the keys - all of the alphanumeric keys are datarefs only.
I'll check the plugin though Ralph, good call.
Cheers, Roger
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: AM sending a value multiple times?
Hi Rager,fatcharlieuk wrote: ↑Fri Aug 12, 2022 8:33 am Hi Keith,
Good idea but sadly not - the "clear", or backspace, command is the only "command" I've come across for the keys - all of the alphanumeric keys are datarefs only.
I'll check the plugin though Ralph, good call.
Cheers, Roger
So all these commands do not work?
If they do then you just use the "BEGIN" and "END"
https://siminnovations.com/wiki/index.p ... pl_command
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: AM sending a value multiple times?
As of 2017 "the official list of custom commands & dataref is included with the aircraft in the documentation folder, file "2-interface guide.pdf"
It will - hopefully - have been updated since then.
So all the command details should be with the aircraft.
It will - hopefully - have been updated since then.
So all the command details should be with the aircraft.
Joe. CISSP, MSc.
Re: AM sending a value multiple times?
Here 'tis
Enjoy.
CBA is too high to read it Keith but you might find it useful ?
Enjoy.
CBA is too high to read it Keith but you might find it useful ?
Joe. CISSP, MSc.
Re: AM sending a value multiple times?
Joe. CISSP, MSc.
-
- Posts: 47
- Joined: Tue Dec 22, 2020 7:42 am
Re: AM sending a value multiple times?
[/quote]
Hi Rager,
So all these commands do not work?
ice_screenshot_20220812-114640.png
If they do then you just use the "BEGIN" and "END"
https://siminnovations.com/wiki/index.p ... pl_command
Keith
[/quote]
No Keith - they don't work with the ixeg 737-300
Hi Rager,
So all these commands do not work?
ice_screenshot_20220812-114640.png
If they do then you just use the "BEGIN" and "END"
https://siminnovations.com/wiki/index.p ... pl_command
Keith
[/quote]
No Keith - they don't work with the ixeg 737-300
-
- Posts: 47
- Joined: Tue Dec 22, 2020 7:42 am
Re: AM sending a value multiple times?
Embarrassingly, Ralph hit the bullseye - I am 64 yrs old, have been simming since Sub-Logic and cockpit building since FS5, but i didn't think to check my update status.
Updated the plugin and it worked immediately.
red face...
Thanks everyone for the input - I learned stuff anyway!
Cheers,
Roger.
Updated the plugin and it worked immediately.
red face...
Thanks everyone for the input - I learned stuff anyway!
Cheers,
Roger.