Jump to content

Recommended Posts

Posted

Hi Marco,

I'm trying to write the following datarefs but for some reason I can't get them to work, any chance you could try it on your end please? I'm not sure why they don't work...I can write to them manually using the Datarefs tool

 { CC = 74, type = "drf", dataref = "AirbusFBW/EnableExternalPower", value_off = "0" },
 { CC = 82, type = "drf", dataref = "AirbusFBW/Chocks", value_off = "0" },

Thanks

Posted

Hi Dan,

Looking at your config file and the log, it's quite clear why it isn't working:

2022-02-04 14:34:09   [ERROR]   Line 183 ::   { CC = 74, type = "drf", dataref = "AirbusFBW/EnableExternalPower", value = "0" },
2022-02-04 14:34:09   [ERROR]    --> Parameter 'value_on' not found
2022-02-04 14:34:09   [ERROR]   Line 183 ::   { CC = 74, type = "drf", dataref = "AirbusFBW/EnableExternalPower", value = "0" },

For a dataref mappings you have to define the value_on and value_off parameter. Do you own two X-Touch? Sounds like a pretty cool setup.

Hope that helps,
Marco

Posted (edited)

Thanks Marco, that fixed it, its working now!

Yeah I have two X-Touches, one for autopilot and glareshield stuff and then another for radios and some overhead commands.
 

My very homebrew pedestal thing!

IMG_6285.thumb.jpg.cd489ed4c0256a90678d9dba392db212.jpg

 

I also tidied up those errors with the toml file as well, but now I am getting an error that i wasn't getting before. This line has worked fine up until now but it has suddenly stopped the whole file from working at all:

 220 |   { cc = 11, cc = 31, type = "drf", dataref = "AirbusFBW/ExtPowOHPArray[0]", value_on = "2", value_off = "0" },

     |          ~~ value already exists here
 ...
 220 |   { cc = 11, cc = 31, type = "drf", dataref = "AirbusFBW/ExtPowOHPArray[0]", value_on = "2", value_off = "0" },

     |                   ~~ value defined twice

It isn't defined twice from what I can see! Any ideas? I've attached my latest toml and log

 

Thanks

 

Dan

 

xmidictrl.toml XMidiCtrl_log.txt

Edited by daan_vb
Posted
1 hour ago, VirtualCPT said:

Hi Dan, 

That's a very nice setup you are having there! 

You defined cc twice in line 220. I guess you wanted to define ch and cc (they look really similar, I have to admit that) 

Urgh, I'm an idiot. Must have stared at that line for about 15 mins trying to figure it out! Thanks Marco

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...