Board index FlightGear Development Aircraft

Second ADF

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Second ADF

Postby stakanov » Tue Dec 19, 2006 5:51 pm

How to create second ADF?

I can use <property>/instrumentation/adf/indicated-bearing-deg</property> for first ADF. Where I can get value for second ADF?

Thanks
stakanov
 
Posts: 5
Joined: Wed Nov 29, 2006 6:12 am
Location: Moscow, Russia

Postby ajm » Wed Dec 20, 2006 5:57 pm

You can specify your aircraft's instrumentation in an "instrumentation.xml" file, included from the -set file.

In there, you can add extra instruments; for example, from Lightning/Systems/lightning-instrumentation.xml

<attitude-indicator>
<name>attitude-indicator</name>
<number>0</number>
<suction>/systems/vacuum/suction-inhg</suction>
</attitude-indicator>
<attitude-indicator>
<name>attitude-indicator</name>
<number>1</number>
<suction>/systems/vacuum/suction-inhg</suction>
</attitude-indicator>

As you can see there are two AI's specified there (though I still haven't got round to modelling the differences between them!)

Cheers,

AJ
ajm
 
Posts: 259
Joined: Wed Dec 20, 2006 5:05 pm

Postby stakanov » Wed Dec 20, 2006 6:54 pm

Ok. Thank You.

I can define two properties for ADF1 and ADF2 which contain values of frequencies. And I can define two properties for ADF1 and ADF2 which contain values of direction. But where I should calculate a direction?
stakanov
 
Posts: 5
Joined: Wed Nov 29, 2006 6:12 am
Location: Moscow, Russia

Postby stakanov » Wed Dec 20, 2006 8:30 pm

I uderstand! I must to read it - http://www.plausible.org/nasal/flightgear.html :oops:
stakanov
 
Posts: 5
Joined: Wed Nov 29, 2006 6:12 am
Location: Moscow, Russia

Postby ajm » Thu Dec 21, 2006 2:36 pm

stakanov wrote:I uderstand! I must to read it - http://www.plausible.org/nasal/flightgear.html :oops:


If you want to write nasal scripts certainly that would be worth reading. If I understand you correctly though, you simply want another ADF instrument; all you have to do is add one in an instrumentation XML file (with the <number>1</number>)

Then you'll discover that in the property browser within flightgear you will find another set of ADF properties in /instrumentation/adf1 or similar.

The only snag I can imagine is that might need to supply the second ADF with electricity. If so, that can be done with an entry in either a nasal electrical system, or an electrical.xml such as Spitfire/Systems/electrical.xml

Does this help?

Cheers,

AJ
ajm
 
Posts: 259
Joined: Wed Dec 20, 2006 5:05 pm

Postby stakanov » Thu Dec 21, 2006 6:08 pm

ajm wrote:
stakanov wrote:I uderstand! I must to read it - http://www.plausible.org/nasal/flightgear.html :oops:


..

Does this help?

Cheers,

AJ


Yes. Thank You. I must to try. :D
stakanov
 
Posts: 5
Joined: Wed Nov 29, 2006 6:12 am
Location: Moscow, Russia


Return to Aircraft

Who is online

Users browsing this forum: YandexBot [Bot] and 28 guests