Jump to content

Recommended Posts

Gents,

 

       Does anyone know how to override the FSX CDI and Obs Variables like the RealityXP GPS' do, all I want to do is inject my own deflection and course variables so any plane can utilize my FMS as opposed to creating my own HSI.

 

Thanks

 

-Matthew Chase

HC-130H Pilot, CGAS Barbers Point

Share this post


Link to post
Share on other sites

Sure, simply hack FSX and determine the memory offset in FSX of the variable.  Once you know that, simply write your value to that memory offset.


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

Ed,

 

  Thanks for the response, I have built a .dll for my data but I'm not really sure what hacking to find the offset entails although I am guessing this is the same thing FSUIPC does. Thanks for your help.

 

-Matt

Share this post


Link to post
Share on other sites

FSUIPC states that the value can not be overridden.. for what it's worth.

 

That means that Rxp is probably running a pretty heavy hack to get around any "protection" that FSX has for that variable.


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

Many FSX variables are read only because they are determined by the geometry/physics at the time. For example, the underlying bearing from a VOR variable depends on the relative positions of the aircraft and navaid.

Share this post


Link to post
Share on other sites

David Drouin's UNS-1Fw FMS writes a custom variable published globally as (L:UNS CDI NEEDLE,number) that may be used instead of the default (A:HSI CDI NEEDLE,number) in the HSI. The HSI CDI NEEDLE variable will switch between NAV1 and GPS as a source depending on the GPS DRIVES NAV1 variable.

 

In his control code, he can set the value of his (L:UNS CDI NEEDLE,number) variable to use either the NAV1 signal source, the GPS signal source or his UNS signal source.

 

In pseudo-code:

 

if (source) = 0 and (A:GPS DRIVES NAV1,bool) = 0, then (A:HSI CDI NEEDLE,number) (>L:UNS CDI NEEDLE,number)

 

if (source) = 1 and (A:GPS DRIVES NAV1,bool) = 1, then (A:HSI CDI NEEDLE,number) (>L:UNS CDI NEEDLE,number)

 

if (source) = 2, then (myFMSdeviation) (>L:UNS CDI NEEDLE,number)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Thanks for all the help guys, I've already built a .dll (after much struggle since I'm going through my C-130 type rating right now) that I can send variables to XML gauges so I'll just write my own custom HSI I was just hoping for a more elegant solution so I could distribute my FMS (runs on tablets) so everyone could utilize it. Pretty proud of it so far it's my first step in to design and it has a fully updating navdata and is pretty versatile. Basically I calculate the cross track error course and distance on the app then feed it to my dll so it can be used in the simulator.

 

-Matt

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...