Debian Codegraph @

Aircraft/Instruments-3d/computing-gun-sights/README.K-14

raw
1 To enable full functionality of the K14 gun sight there are several things
2 that need to be done.
3
4 First change the <nasal> section of your *set.xml file so that it looks like the
5 following.
6
7 <nasal>
8 <!-- your other nasal files -->
9 <!-- the following three lines must be exactly like this -->
10 <K14>
11 <file>Aircraft/Instruments-3d/computing-gun-sights/Nasal/lead-computer.nas</file>
12 </K14>
13 </nasal>
14
15 Animation:
16
17 For dark conditions when cabin/cockpit illumination is used all of the K14 sight
18 is illuminated in response to
19
20 <property>/controls/lighting/cabin-norm</property>
21
22 If you are using a different property for your cabin/cockpit lights you will need to map your
23 lighting property to /controls/lighting/cabin-norm.
24
25 Aircraft Specific Properties:
26
27 See README.lead-computer
28
29 Below is an example from the P-51D using the K14A sight which needs some additional
30 settings to control power and lighting for the sight.
31
32 <controls>
33 <armament>
34 <gunsight>
35 <!-- gunsight computer parameters -->
36
37 <!-- start/stop the sight computer
38 the computer will be reinitialized if the power is cycled -->
39 <computer-on type="int">0</computer-on>
40 <!-- offset of guns below sight line in feet -->
41 <z-offsetFeet type="float">3.125</z-offsetFeet>
42 <!-- average lateral offset of guns in feet relative to sight line -->
43 <y-offsetFeet type="float">0.0</y-offsetFeet>
44 <!-- elevation of guns relative to alpha in degrees -->
45 <gunElevationDegrees type="float">1.0</gunElevationDegrees>
46 <ballisticCoefficienct type="float">0.00136354</ballisticCoefficienct> <!-- 0.50 BMG -->
47 <muzzleVelocity type="float">2900.0</muzzleVelocity> <!-- feet per second 0.50 BMG -->
48 <!-- convergence distance in feet -->
49 <gunHarminizationRangeFeet type="float">900.0</gunHarminizationRangeFeet>
50 <timeStep type="float">0.2</timeStep> <!-- cycle rate of gun sight computer in seconds -->
51 <!-- sight computer damping factor must be between 0.3 and 1.0 -->
52 <dampingFactor type="float">1.0</dampingFactor>
53 <gunsight-computer-initialized type="int">0</gunsight-computer-initialized>
54 <maxAzimuth type="int">170</maxAzimuth> <!-- maximum sight deflection in mils -->
55 <maxElevation type="int">170</maxElevation>
56
57 <!-- K14 parameters -->
58
59 <power-on type="int">0</power-on>
60 <intensity type="float">1.0</intensity>
61 <mask-off type="int">1</mask-off>
62 <reticleSelectorPos type="int">0</reticleSelectorPos>
63 <rocketLadder type="int">1</rocketLadder> <!-- set to 0 for K14 and 1 for other K14 models -->
64
65 <!-- The next three are to setup the reticle to the correct starting values -->
66 <span type="int">30</span>
67 <mils type="float">0.0</mils>
68 <range type="float">1000.0</range> <!-- in feet -->
69
70 <fixedReticleOn type="int">0</fixedReticleOn>
71 <zCenterLine type="float">0.7375</zCenterLine> <!-- sight line distance from model z axis in meters -->
72 <K14C type="int">0</K14C> <!-- set to 1 for K14C -->
73
74 <sunScreenDown type="int">1</sunScreenDown>
75 </gunsight>
76 ...
77 </controls>
78
79