Board index FlightGear Development Aircraft

747-400 autopilot change

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

747-400 autopilot change

Postby Lincoln » Thu Mar 12, 2020 2:40 pm

I have decided to put my favorite autoflight system ITAF into the 747 as i found the FGaddon autopilot not working with me. I made sure to change the propertys in the XML file however upon modelstartup it still shows the default FG dialog instead of the ITAF dialog. Did i miss something?(I suspect i missed to set the it-autoflight-dlg.xml somewhere but i dont know where i did miss it) Edit 3:Just clarifying:FG does pick up ITAF being there the only thing is that FG does not pickup the ITAF dialog. I need to know how i can change the F11 dialog to the ITAF dialog we are used to.

It means alot to me if i manage to get the autopilot on this bird working!

Greetings Lincoln
Last edited by Lincoln on Thu Mar 12, 2020 2:53 pm, edited 1 time in total.
Currently flying the 737-800YV / MD-11-GE / 747-400

GE90-115B for life!

Follow me to the sun on SXS98X!

LincolnWorks discord!
Lincoln
 
Posts: 128
Joined: Mon Jan 20, 2020 6:34 pm
Location: In the sky ofcourse or in The Netherlands
Callsign: ATC_Lcn/RM01/SXS98X

Re: 747-400 autopilot change

Postby Marsdolphin » Thu Mar 12, 2020 2:52 pm

Hi,
You need to add an item to your menu, if I understood correctly.
for example here: (From the A350)
Code: Select all
 <item>
            <label>Autopilot Dialog</label>
            <binding>
              <command>nasal</command>
              <script>var ap_dialog = gui.Dialog.new("sim/gui/dialogs/ap_dialog/dialog", "Aircraft/A350XWB/Systems/autopilot-dlg.xml");
                      ap_dialog.open();</script>
            </binding>
   </item>

Place this bunch inside <menu></menu>. You can change "Aircraft/A350XWB/Systems/autopilot-dlg.xml" to "Aircraft/747-400/link/to/itaf/something-dlg.xml" or something.xml.
Something = file name
For ITAF installation instructions, see: http://wiki.flightgear.org/IT-AUTOFLIGHT
ITAF Download: https://github.com/Octal450/IT-AUTOFLIGHT
Best regards,
Mars.
"When everything seems to be against you, remember that the planes always takeoff into the wind".

Have fun flying!
User avatar
Marsdolphin
 
Posts: 180
Joined: Wed Feb 05, 2020 8:41 am
Location: Beijing, China (ZBAA)
Callsign: MARS006
Version: 2020.4
OS: Mac OS

Re: 747-400 autopilot change

Postby Lincoln » Thu Mar 12, 2020 3:10 pm

The issue is that i dont see a autopilot-dlg file inside the systemsfile. So i wonder what i missed. I have added it-autoflight-dlg to the dialogsfolder.

Edit:I must learn to read

Edit2:Even with the code added still default dialog :(
Last edited by Lincoln on Thu Mar 12, 2020 3:29 pm, edited 1 time in total.
Currently flying the 737-800YV / MD-11-GE / 747-400

GE90-115B for life!

Follow me to the sun on SXS98X!

LincolnWorks discord!
Lincoln
 
Posts: 128
Joined: Mon Jan 20, 2020 6:34 pm
Location: In the sky ofcourse or in The Netherlands
Callsign: ATC_Lcn/RM01/SXS98X

Re: 747-400 autopilot change

Postby Marsdolphin » Thu Mar 12, 2020 3:23 pm

It might not be under systems.
It can be in the following locations:
747-400/gui/Dialogs
747-400/Systems
747-400/Dialogs
This download link lets you download the xml https://github.com/Octal450/IT-AUTOFLIGHT
"When everything seems to be against you, remember that the planes always takeoff into the wind".

Have fun flying!
User avatar
Marsdolphin
 
Posts: 180
Joined: Wed Feb 05, 2020 8:41 am
Location: Beijing, China (ZBAA)
Callsign: MARS006
Version: 2020.4
OS: Mac OS

Re: 747-400 autopilot change

Postby Lincoln » Thu Mar 12, 2020 3:33 pm

It is still being stubborn. Ill PM you my 747!
Currently flying the 737-800YV / MD-11-GE / 747-400

GE90-115B for life!

Follow me to the sun on SXS98X!

LincolnWorks discord!
Lincoln
 
Posts: 128
Joined: Mon Jan 20, 2020 6:34 pm
Location: In the sky ofcourse or in The Netherlands
Callsign: ATC_Lcn/RM01/SXS98X

Re: 747-400 autopilot change

Postby Marsdolphin » Thu Mar 12, 2020 3:34 pm

Ok I'll check
"When everything seems to be against you, remember that the planes always takeoff into the wind".

Have fun flying!
User avatar
Marsdolphin
 
Posts: 180
Joined: Wed Feb 05, 2020 8:41 am
Location: Beijing, China (ZBAA)
Callsign: MARS006
Version: 2020.4
OS: Mac OS

Re: 747-400 autopilot change

Postby Lincoln » Thu Mar 12, 2020 3:51 pm

I suspect i know where the issue lies. The 747 has a copilot model. However when i write the code to add the F11 dialog to the 747-fo model it wants to save as a text file.
Currently flying the 737-800YV / MD-11-GE / 747-400

GE90-115B for life!

Follow me to the sun on SXS98X!

LincolnWorks discord!
Lincoln
 
Posts: 128
Joined: Mon Jan 20, 2020 6:34 pm
Location: In the sky ofcourse or in The Netherlands
Callsign: ATC_Lcn/RM01/SXS98X

Re: 747-400 autopilot change

Postby Marsdolphin » Fri Mar 13, 2020 1:46 am

Hi,
First indication of what's wrong: You have to put the bunch inside <menu> </menu> like this:
Code: Select all
<menu n="3">
                                <item n="1">
                                         <label>Autopilot Dialog</label>
                                         <binding>
                                              <command>nasal</command>
                                              <script>var ap_dialog = gui.Dialog.new("sim/gui/dialogs/ap_dialog/dialog", "Aircraft/747-400/gui/Dialogs/it-autoflight-dlg.xml");
                                                                                   ap_dialog.open();</script>
            </binding>
   </item>
         </menu>

Copy this bunch to before <menu n="5"> and after <default>.
Also remember to add it-autoflight.nas to nasal folder.
Code: Select all
<itaf>
    <file>Nasal/it-autoflight.nas</file>
</itaf>

Please refer to instructions here: http://wiki.flightgear.org/IT-AUTOFLIGHT
Copy this bunch to anywhere outside <sim> </sim>:
https://github.com/Octal450/IT-AUTOFLIGHT/blob/master/ITAF%20CONFIG.txt
All downloads: https://github.com/Octal450/IT-AUTOFLIGHT/
And after all that you should be done.
Best regards,
Mars.
"When everything seems to be against you, remember that the planes always takeoff into the wind".

Have fun flying!
User avatar
Marsdolphin
 
Posts: 180
Joined: Wed Feb 05, 2020 8:41 am
Location: Beijing, China (ZBAA)
Callsign: MARS006
Version: 2020.4
OS: Mac OS

Re: 747-400 autopilot change

Postby Lincoln » Fri Mar 13, 2020 10:33 am

If anyone wishes to look into my 747-set file. I have done all of the above but yet still the default F11 dialog. :roll: Its being so stubborn :evil: https://drive.google.com/file/d/1QQ2-2g ... sp=sharing
Currently flying the 737-800YV / MD-11-GE / 747-400

GE90-115B for life!

Follow me to the sun on SXS98X!

LincolnWorks discord!
Lincoln
 
Posts: 128
Joined: Mon Jan 20, 2020 6:34 pm
Location: In the sky ofcourse or in The Netherlands
Callsign: ATC_Lcn/RM01/SXS98X

Re: 747-400 autopilot change

Postby Marsdolphin » Fri Mar 13, 2020 11:26 am

Ok. Looking
"When everything seems to be against you, remember that the planes always takeoff into the wind".

Have fun flying!
User avatar
Marsdolphin
 
Posts: 180
Joined: Wed Feb 05, 2020 8:41 am
Location: Beijing, China (ZBAA)
Callsign: MARS006
Version: 2020.4
OS: Mac OS


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 21 guests