20,741
edits
Line 993: | Line 993: | ||
{{WIP}} | {{WIP}} | ||
This section will cover the main steps for implementing a new layer whose purpose is showing all targets of a selectable [[Tutorials|tutorial]] on a Canvas/MapStructure map. | This section will cover the main steps for implementing a new layer whose purpose is showing all targets of a selectable [[Tutorials|tutorial]] on a Canvas/MapStructure map. | ||
First of all, we need to find an aircraft that comes with a tutorial that contains targets: | |||
<code>cd $FG_ROOT/Aircraft/c172p/Tutorials && grep -nr targets</code> | |||
<pre> | |||
taxiing.xml:29: <targets> | |||
taxiing.xml:55: </targets> | |||
taxiing.xml:221: <property>/sim/tutorials/targets/j2/direction-deg</property> | |||
taxiing.xml:225: <property>/sim/tutorials/targets/j2/direction-deg</property> | |||
taxiing.xml:245: <property>/sim/tutorials/targets/j2/direction-deg</property> | |||
taxiing.xml:249: <property>/sim/tutorials/targets/j2/direction-deg</property> | |||
taxiing.xml:267: <property>/sim/tutorials/targets/j2/direction-deg</property> | |||
taxiing.xml:271: <property>/sim/tutorials/targets/j2/direction-deg</property> | |||
taxiing.xml:290: <property>/sim/tutorials/targets/j2/distance-m</property> | |||
taxiing.xml:306: <property>/sim/tutorials/targets/j3/direction-deg</property> | |||
taxiing.xml:310: <property>/sim/tutorials/targets/j3/direction-deg</property> | |||
taxiing.xml:329: <property>/sim/tutorials/targets/j3/distance-m</property> | |||
taxiing.xml:342: <property>/sim/tutorials/targets/a1/direction-deg</property> | |||
taxiing.xml:346: <property>/sim/tutorials/targets/a1/direction-deg</property> | |||
taxiing.xml:356: <property>/sim/tutorials/targets/a1/distance-m</property> | |||
taxiing.xml:370: <property>/sim/tutorials/targets/a2/direction-deg</property> | |||
taxiing.xml:374: <property>/sim/tutorials/targets/a2/direction-deg</property> | |||
taxiing.xml:385: <property>/sim/tutorials/targets/a2/direction-deg</property> | |||
taxiing.xml:389: <property>/sim/tutorials/targets/a2/direction-deg</property> | |||
taxiing.xml:407: <property>/sim/tutorials/targets/a2/direction-deg</property> | |||
taxiing.xml:411: <property>/sim/tutorials/targets/a2/direction-deg</property> | |||
taxiing.xml:421: <property>/sim/tutorials/targets/a2/distance-m</property> | |||
</pre> | |||
So, for testing/development purposes, we will be using the default FlightGear aircraft, i.e. the c172p, because it comes with well-maintained tutorials, and because its '''Taxiing''' tutorials contains a number of <code>targets</code>. | |||
[[File:PropertyBrowser-TutorialsNode.png|thumb|Screenshot showing the tutorials node in the property browser]] | [[File:PropertyBrowser-TutorialsNode.png|thumb|Screenshot showing the tutorials node in the property browser]] |