Jump to content

Recommended Posts

Posted (edited)

Hello,

 

I'm scratching my head around a problem I haven't been able to solve for a long time. I'm trying to access some CRJ datarefs, namely the Vspeeds of the plane, as set by the pilot prior to take-off. Philipp has published this in his CRJ Datarefs listing :

// VALUES#define CRJ_SPD_V1_VAL        "CRJ/spd/v1_value"#define CRJ_SPD_V2_VAL        "CRJ/spd/v2_value"#define CRJ_SPD_VR_VAL        "CRJ/spd/vr_value"#define CRJ_SPD_VT_VAL        "CRJ/spd/vt_value"

But I'm unable to read them (or set them) in my plugin (using Gizmo). No matter what I do, treating them as float or integer, they always read 0 (or some very strange, ever-changing numbers). Other CRJ Datarefs, like "CRJ/reverser1_arm", I can read/set them without any problems.

 

Any help would be greatly appreciated.

Edited by vpil0t
Posted

As a guess you're creating your datarefs before the CRJ plugin has loaded.

 

Try this:

 

function OnBoot()  dr_crj_v1 = dref.getDataref( "CRJ/spd/v1_value" )end  function OnUpdate() -- or main() if( dr_crj_v1)then  value = dref.getFloat( dr_crj_v1 )end end
Posted

Nope, none of the solutions work. Gizmo can communicate with the CRJ plugin because I'm able to set/read some other CRJ datarefs, but the Vspeeds are always at 0. It may be a CRJ bug or some error on my side, but I really spent a lot of time trying to solve this problem.

 

If somebody could confirm that it's indeed possible de read/set the Vspeeds values that would be great.

  • 2 weeks later...
Posted

Nope, still not working with the new version. Anyway I give up, I'll find a workaround, this is just one of the numerous CRJ bugs that I'll have to dodge. Thank you for your help.

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