Board index FlightGear Development Documentation

Exploring Flight Gear 0.910 Legacy - A documentation project

Discussion of the FlightGear documentation, how it can be improved and coordination of people working on it.

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Thu Nov 28, 2013 11:37 pm

More progress. Copying the entire model folder allows the aircraft to be loaded into FGRUN as well as FG, however frame rates are slow;

See this link for details:

https://sites.google.com/site/openfligh ... fokker-f50

The cockpit 3d model and the airplane must be combined to speed up frame rates I think, not sure about the instruments, will have to delete them and add them later one by one.
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Fri Nov 29, 2013 11:53 pm

The model loads with textures into FGRUN, int also loads into the FG

Using Blender, combined the cockpit.ac and the fokker50.ac model into a single model.

The cockpit positioned well.

Copied the text for the instruments into the fokker50-3dmodel.xml, however frame rates suffered.

Commented out some non - flight instruments and overhead panel, so the plane loads

Adjusted the view position for the pilot : X, Y and Z directions tool time to figure out:

<!-- Set the pilot's view position changed for f50 from pa28-->
<!-- X- offset - Left and Right. 1.0 sets view outside the right side of aircraft
y - offset must be up and down - increase to 0.5 should be OK
z- offset -7.50 ffront and back - just perfect for f50 -->

<view n="0">
<internal archive="y">true</internal>
<config>
<x-offset-m archive="y">-0.5</x-offset-m>
<y-offset-m archive="y">0.25</y-offset-m>
<z-offset-m archive="y">-7.50</z-offset-m>
<pitch-offset-deg>-15</pitch-offset-deg>
</config>
</view>

Some screen-shots here:

https://sites.google.com/site/openfligh ... fokker-f50
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Sat Nov 30, 2013 12:12 am

To do:

Set aircraft position correctly
Brakes on at startup
Engines running at start up
All instruments indicating
Use of generic autopilot
Fdm - jbsim
Animations - landing gear retraction only
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Sun Dec 01, 2013 12:15 am

To do:

Set aircraft position correctly - Done, more or less, pilot view position had to be adjusted after aircraft postion was adjusted . Current positions of pilot view:

fokker50...-set.xml

<view n="0">
<internal archive="y">true</internal>
<config>
<x-offset-m archive="y">-0.5</x-offset-m>
<y-offset-m archive="y">1.25</y-offset-m>
<z-offset-m archive="y">-7.50</z-offset-m>
<pitch-offset-deg>-15</pitch-offset-deg>
</config>
</view>

fokker50-3dmodel.xml

<offsets>
<y-m>0.0</y-m>
<z-m>2.0</z-m>
<pitch-deg>-1.0</pitch-deg>
</offsets>
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Sun Dec 01, 2013 2:33 am

Next one:

Landing brakes on startup. Aircraft slides backwards into the sea

Starting up the aircraft, in FG, I go to file > browse internal properties
I Scroll down and click on gear/
I Navigate to gear[1]/ and click on it.
When I Type SHIFT + B. (SHIFT key and B together). The property changes

from

has-brake[0]= 'false' (bool)

to

has-brake[0]= 'true' (bool)

and the aircraft stops sliding backwards. Brakes are on.

How to set this from the -set file? I know engines are set like this:

<engines>
<engine n="0">
<running>true</running>
</engine>
<engine n="1">
<running>true</running>
</engine>
</engines>

By the same pattern, setting the brake (or parking brake?) should be:

<gear>
<gear n="0">
<parking-brake>true</parking-brake>
</gear>
<gear n="1">
<parking-brake>true</parking-brake>
</gear>
</gear>

Dos not work!
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Sun Dec 01, 2013 4:21 am

SOLVED:

-Retracting landing gear
-Engines on on startup
-Model rolling backwards

How?

Use the YASIM fdm. Attempted to user Aeromatic, aircraft did not load at all, three separate files and all

Copied the B1900D YASIM FDM file which is simpler. Changes have to be made to the values in the file, should work.

Meanwhile the outside of the F50 has some strange pink patches that need to be filled.

TO DO:

DONE
-Set aircraft position correctly
-Brakes on at startup
-Engines running at start up
-Use of generic autopilot
-Animations - landing gear retraction only

TO DO

-All instruments indicating -engine instruments to be linked to indicate power
-FDM -yasim to be adjusted this should help: http://www.buckarooshangar.com/flightgear/yasim_1.html
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Sun Dec 01, 2013 4:42 am

openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Mon Dec 02, 2013 6:26 am

Better re-route this particular set of posts to Aircraft, since it really is concerned with one aircraft.

The New Fokker50 Thread
viewtopic.php?f=4&t=634&hilit=new+fokker+50&start=270

Once completed, I can explore other areas - scenery etc..
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Tue Dec 10, 2013 2:54 am

Creating menus:

There is a file in the FlightGear\gui folder called

menubar.xml

Locate this line

<menu>
<label>ATC/AI</label>

Add a menu item :

<item>
<label>AirportData</label>
<binding>
<command>dialog-show</command>
<dialog-name>test</dialog-name>
</binding>
</item>

Create a file called test.xml and place it in the /dialogs subfolder: this will be pulled up by clicking the menu
item

The text.xml file is as follows:

Code: Select all
<?xml version="1.0"?>

<PropertyList>

 <name>test</name>
 <width>600</width>
 <height>300</height>
 <modal>false</modal>

 <text>
  <x>10</x>
  <y>10</y>
  <label>10,10</label>
 </text>



<text>
  <x>100</x>
  <y>100</y>
  <label>100,100</label>
 </text>





<!-- row 2 -->

<text>
  <x>10</x>
  <y>180</y>
  <label>10,180</label>
 </text>

  <button>
   <x>300</x>
   <y>0</y>
   <legend>Cancel</legend>
   <equal>true</equal>
   <key>Esc</key>
   <binding>
    <command>dialog-close</command>
   </binding>
  </button>



</PropertyList>
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby Hooray » Tue Dec 10, 2013 3:13 am

Imagine for a second that I told you that we currently have at least 12 different postings like this, explaining exactly how to add new entries to the menubar, and how to create new dialogs.
You may be wondering: "So what ?"
However, my point is: This is not specific to old/legacy FlightGear versions - it's generally useful information, that would be ideally not provided and spread via the forum (or can you find those postings that I'm talking about?), but rather by creating new wiki tutorials and improving on existing ones.

Obviously, I'm assuming here that you don't want to see your work and time wasted, anything posted here is unlikely to be read by many people in 6-12 months time (which also applies to the devel list, if not even much more so!)- the wiki is a completely different thing, it's intended to be read even in 5 years time, while still allowing others to add to existing articles and improve them over time, unlike forum postings like your's

So, the bottom line being: please consider contributing such things to the wiki - and I just checked it, see: http://wiki.flightgear.org/Menubar
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11163
Joined: Tue Mar 25, 2008 8:40 am

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Tue Dec 10, 2013 4:08 am

Exploring Scenery placement:

A short flight to KLVK (Livermore) showed that the airport consisted only of runways. Compare the actual airport photos with those in FG:

http://www.airport-data.com/airport/photo/017379.html

http://www.ainonline.com/aviation-news/ ... al-airport

http://www.airport-data.com/airport/photo/008829.html

(Further info will be posted outside this forum)
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Tue Dec 10, 2013 4:14 am

Imagine for a second that I told you that we currently have at least 12 different postings like this, explaining exactly how to add new entries to the menubar, and how to create new dialogs.
You may be wondering: "So what ?"
However, my point is: This is not specific to old/legacy FlightGear versions - it's generally useful information, that would be ideally not provided and spread via the forum (or can you find those postings that I'm talking about?), but rather by creating new wiki tutorials and improving on existing ones.

Obviously, I'm assuming here that you don't want to see your work and time wasted, anything posted here is unlikely to be read by many people in 6-12 months time (which also applies to the devel list, if not even much more so!)- the wiki is a completely different thing, it's intended to be read even in 5 years time, while still allowing others to add to existing articles and improve them over time, unlike forum postings like your's

So, the bottom line being: please consider contributing such things to the wiki - and I just checked it, see: http://wiki.flightgear.org/Menubar


Point taken, actually updating the Wiki was the final goal, however I was not sure that the 0.9.10 stuff would be applicable to the newer versions. This also can be addressed by checking out and testing existing wiki instructions or running my 2.0 and checking this. Your post allays these fears.

Secondly, this was sort of a discovery journey, easier to follow than a wiki, since there is a common thread, a tree like exploration of various branches of FG. No matter.

I will take this journey off the forum, and add to the wiki later.

Plan to write a wikibook free book/manual about my working with FG - how does that sound?
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Re: Exploring Flight Gear 0.910 Legacy - A documentation pro

Postby openflight » Wed Dec 18, 2013 12:45 am

Revised aircraft list.

Revised 17 Dec 2013
Final

Working: (To add : versions)

1) Piper Aerostar - needs engine instruments
2) Piper PA 250 Commanche - version
3) Beech 1900D
4) Airwave Xtreme 150 hang glider - no pilot view of aircraft
5) Cessna 172 - needs updated 3D model
6) Piper PA 28 - needs updated 3D model


In Progress/ Convert

7) Cessna 150
8) De Haviland DHC-6 Twin Otter
9) Fokker F50
10) Cessna Caravan
11) Lancair 250
12) ATR-72-500.
13) Cessna337
14) Robin DR 400 120 (YASim)
15) Fairchild-Metroliner
16) dhc4
17) Grob-G115
18) Quest Aircraft Kodiak 100
19) Piper-PA-18
20) Socata Rallye MS893E
22) RV-6A: RV-6A (YASim)
23) Dassualt Mirage III
24) SEPECAT Jaguar


To Build
25) DHC-8-100 /
Electric DHC-8-100
26) Saab Supporter
27) Bristol Spaceplane
28) SF260
29) Electric Cessna 172
30) Electric Yunec
openflight
 
Posts: 311
Joined: Fri Sep 16, 2011 11:14 am
Version: 1.0
OS: Lubuntu 12.04LTS

Previous

Return to Documentation

Who is online

Users browsing this forum: No registered users and 2 guests