Board index FlightGear Support Flying Autopilot

Autopilot and the PIlatus PC-9M

Using the autopilot is an important thing when flying airliners.

Autopilot and the PIlatus PC-9M

Postby skipper0802 » Mon Nov 12, 2018 5:52 pm

Greetings All,
A question for the PC-9M drivers out there: Have you experienced any issues with using the resident autopilot features with this aircraft? In summary, I've found that the LOC, ALT, V/S, Throttle Arm, and APP modes won't engage. I'm examining the following files line-by-line: autopilot-dlg.xml, autopilot.xml, and AFDS.nas. If your responses say that all is well and working, then I know something's different on my end and I'll post much more detail on the specific issue(s). If your responses show that there have been issues, then I'll presume the the respective files (or other items) need more trouble-shooting.

Thoughts?

Thanks in advance.
V/r,
Eric
*******************************************************************
Intel Core i7-3520M CPU @ 2.9GHz, 16 GB RAM, 64-bit OS, x64-based processor
HP EliteBook 8770W
AMD FirePro M4000 1GB
Windows 10 Home
Flightgear 2018.2.2
skipper0802
 
Posts: 24
Joined: Tue Apr 24, 2018 4:12 pm
Location: Seattle, Washington, USA
Callsign: 0802SK, skipper0802
Version: 2018.2.2
OS: Windows10 Home

Re: Autopilot and the PIlatus PC-9M

Postby Octal450 » Mon Nov 12, 2018 6:09 pm

Hello!

if you will link me the aircraft, I'll try it and see if I can find a reason it isn't working.

Kind Regards,
josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: Autopilot and the PIlatus PC-9M

Postby skipper0802 » Tue Nov 13, 2018 4:19 pm

Hello Josh,
Thanks for replying. No special URL for this aircraft. It's the regular FGADDON, Pilatus PC-9M version from the 2018.2.2 dialog interface. Let me know if you also find the autopilot issues please? The files I mentioned above are intrinsic to the download/installation.
Respectfully,
V/r,
Eric
*******************************************************************
Intel Core i7-3520M CPU @ 2.9GHz, 16 GB RAM, 64-bit OS, x64-based processor
HP EliteBook 8770W
AMD FirePro M4000 1GB
Windows 10 Home
Flightgear 2018.2.2
skipper0802
 
Posts: 24
Joined: Tue Apr 24, 2018 4:12 pm
Location: Seattle, Washington, USA
Callsign: 0802SK, skipper0802
Version: 2018.2.2
OS: Windows10 Home

Re: Autopilot and the PIlatus PC-9M

Postby Octal450 » Tue Nov 13, 2018 6:11 pm

Alright, I'll take a look as soon as I've got a spare moment.

Kind Regards,
Josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: Autopilot and the PIlatus PC-9M

Postby Octal450 » Thu Nov 15, 2018 12:20 am

Hi there --
Gave it a shot. It does engage, and buttons seem to work, but it's really not done well. Aside from not being period correct to the real PC-9M (it's an old old version of the 777 system).

It's not very stable, and doesn't really work too well, so I'd watch it closesly.

Kind Regards,
Josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: Autopilot and the PIlatus PC-9M

Postby skipper0802 » Thu Nov 15, 2018 4:46 pm

Thanks Josh,
I'll continue examining the respective file code lines with your news in mind. Latest: I think I've found some text boxes within the autopilot dialog that seem to not display; it's the ones with the <label>9999999</label>. Here's the autopilot-dlg.xml contents:
Code: Select all
<?xml version="1.0"?>
<PropertyList>

    <name>autopilot-dlg</name>
    <layout>vbox</layout>
    <default-padding>1</default-padding>
    <y>-40</y>


    <group>
        <layout>hbox</layout>

        <text>
            <halign>left</halign>
            <label> Autopilot Control</label>
        </text>

        <button>
            <halign>right</halign>
            <pref-width>20</pref-width>
            <pref-height>20</pref-height>
            <legend>X</legend>
            <key>Esc</key>
            <binding>
                <command>dialog-close</command>
            </binding>
        </button>
    </group>

    <hrule/>

    <group>
        <layout>hbox</layout>

        <text>
            <halign>left</halign>
            <label>[ Active ]</label>
        </text>

    <vrule/>

        <text>
            <border>1</border>
            <label>9999999</label>
            <halign>left</halign>
            <property>instrumentation/afds/ap-modes/speed-mode</property>
            <live>1</live>
        </text>

<vrule/>

        <text>
            <border>1</border>
            <label>9999999</label>
            <halign>center</halign>
            <property>instrumentation/afds/ap-modes/roll-mode</property>
            <live>1</live>
        </text>

<vrule/>

        <text>
            <border>1</border>
            <label>9999999</label>
            <halign>right</halign>
            <property>instrumentation/afds/ap-modes/pitch-mode</property>
            <live>1</live>
        </text>

    </group>

    <hrule/>

        <group>
            <layout>hbox</layout>

            <checkbox>
                <label>AP</label>
            <property>instrumentation/afds/inputs/AP</property>
                <live>true</live>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </checkbox>

            <checkbox>
                <label>FD (flight director)</label>
            <property>instrumentation/afds/inputs/FD</property>
                <live>true</live>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(3,2);</script>
                </binding>
            </checkbox>
        </group>


        <group>
            <layout>hbox</layout>
            <hrule>
                <stretch>true</stretch>
            </hrule>

            <text>
                <halign>center</halign>
                <label>Lateral Modes</label>
            </text>

            <hrule>
                <stretch>true</stretch>
            </hrule>
        </group>

        <group><!-- Heading Bug Hold -->
            <layout>hbox</layout>

            <button>
                <pref-width>50</pref-width>
                <pref-height>25</pref-height>
                <halign>left</halign>
                <legend>HDG</legend>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(0,1);</script>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>35</pref-width>
                <pref-height>25</pref-height>
                <legend>&lt;&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/heading-bug-deg</property>
                    <step type="double">-10.0</step>
                    <min>1</min>
                    <max>361</max>
                    <wrap>true</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>25</pref-width>
                <pref-height>25</pref-height>
                <legend>&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/heading-bug-deg</property>
                    <step type="double">-1.0</step>
                    <min>1</min>
                    <max>361</max>
                    <wrap>true</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <input>
                <halign>left</halign>
                <pref-width>50</pref-width>
                <pref-height>25</pref-height>
            <live>true</live>
                <property>autopilot/settings/heading-bug-deg</property>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </input>

            <button>
                <halign>left</halign>
                <pref-width>25</pref-width>
                <pref-height>25</pref-height>
                <legend>&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/heading-bug-deg</property>
                    <step type="double">1.0</step>
                    <min>1</min>
                    <max>361</max>
                    <wrap>true</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>35</pref-width>
                <pref-height>25</pref-height>
                <legend>&gt;&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/heading-bug-deg</property>
                    <step type="double">10.0</step>
                    <min>1</min>
                    <max>361</max>
                    <wrap>true</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

        </group>

        <group><!-- Lateral Navigation-->
            <layout>hbox</layout>

            <checkbox>
                <label>LNAV arm</label>
            <property>instrumentation/afds/inputs/lnav-armed</property>
                <live>true</live>
                <halign>left</halign>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(0,2);</script>
                </binding>
            </checkbox>

        </group>

        <group><!-- Localizer Arm-->
            <layout>hbox</layout>

            <checkbox>
                <label>LOC arm</label>
            <property>instrumentation/afds/inputs/loc-armed</property>
                <live>true</live>
                <halign>left</halign>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(3,0);</script>
                </binding>
            </checkbox>

            <checkbox>
                <label>BC (backcourse)</label>
                <property>instrumentation/nav/back-course-btn</property>
                <live>true</live>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </checkbox>

            </group>

        <group><!-- Radials-->
            <layout>hbox</layout>

            <input>
                <halign>left</halign>
                <label>nav1 crs</label>
                <pref-width>50</pref-width>
                <pref-height>20</pref-height>
                <property>instrumentation/nav/radials/selected-deg</property>
            <live>true</live>
                <format>%03.0f</format>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </input>

            <input>
                <halign>left</halign>
                <label>nav2 crs</label>
                <pref-width>50</pref-width>
                <pref-height>20</pref-height>
                <property>instrumentation/nav[1]/radials/selected-deg</property>
            <live>true</live>
                <format>%03.0f</format>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </input>

        </group>

        <group>
            <layout>hbox</layout>
            <hrule>
                <stretch>true</stretch>
            </hrule>

            <text>
                <halign>center</halign>
                <label>Vertical Modes</label>
            </text>

            <hrule>
                <stretch>true</stretch>
            </hrule>
        </group>

        <group><!-- ALT -->
            <layout>hbox</layout>

            <button>
                <pref-width>45</pref-width>
                <pref-height>25</pref-height>
                <halign>left</halign>
                <legend>ALT</legend>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(1,1);</script>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>35</pref-width>
                <pref-height>25</pref-height>
                <legend>&lt;&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/counter-set-altitude-ft</property>
                    <step type="double">-1000.0</step>
                    <min>0</min>
                    <max>50000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>25</pref-width>
                <pref-height>25</pref-height>
                <legend>&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/counter-set-altitude-ft</property>
                    <step type="double">-100.0</step>
                    <min>0</min>
                    <max>50000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <input>
                <pref-width>70</pref-width>
                <pref-height>25</pref-height>
                <name>altset</name>
            <live>true</live>
                <property>autopilot/settings/counter-set-altitude-ft</property>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </input>

            <button>
                <halign>left</halign>
                <pref-width>25</pref-width>
                <pref-height>25</pref-height>
                <legend>&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/counter-set-altitude-ft</property>
                    <step type="double">100.0</step>
                    <min>0</min>
                    <max>50000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>35</pref-width>
                <pref-height>25</pref-height>
                <legend>&gt;&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/counter-set-altitude-ft</property>
                    <step type="double">1000.0</step>
                    <min>0</min>
                    <max>50000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

        </group>

        <group><!-- VS -->
            <layout>hbox</layout>

            <button>
                <pref-width>45</pref-width>
                 <pref-height>25</pref-height>
                 <halign>left</halign>
                <legend>V/S</legend>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(1,2);</script>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>35</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&lt;&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/vertical-speed-fpm</property>
                    <step type="double">-1000.0</step>
                    <min>-8000</min>
                    <max>6000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>25</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/vertical-speed-fpm</property>
                    <step type="double">-100.0</step>
                    <min>-8000</min>
                    <max>6000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <input>
                <pref-width>70</pref-width>
                 <pref-height>25</pref-height>
                 <name>vs-set</name>
                <property>autopilot/settings/vertical-speed-fpm</property>
            <live>true</live>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </input>

            <button>
                <halign>left</halign>
                <pref-width>25</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/vertical-speed-fpm</property>
                    <step type="double">100.0</step>
                    <min>-8000</min>
                    <max>6000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <halign>left</halign>
                <pref-width>35</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&gt;&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/vertical-speed-fpm</property>
                    <step type="double">1000.0</step>
                    <min>-8000</min>
                    <max>6000</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

        </group>

        <group>
            <layout>hbox</layout>

            <checkbox>
                <label>APP (G/S) arm</label>
            <property>instrumentation/afds/inputs/gs-armed</property>
                <live>true</live>
                <halign>left</halign>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(3,1);</script>
                </binding>
            </checkbox>
        </group>

        <group>
            <layout>hbox</layout>
            <hrule>
                <stretch>true</stretch>
            </hrule>

            <text>
                <halign>center</halign>
                <label>Speed Modes</label>
            </text>

            <hrule>
                <stretch>true</stretch>
            </hrule>
        </group>

    <layout>vbox</layout>
        <padding>4</padding>
        <group>
            <layout>hbox</layout>
            <checkbox>
                <label>Throttle arm</label>
                <property>instrumentation/afds/inputs/at-armed</property>
                <live>true</live>
                <halign>left</halign>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </checkbox>

        </group>

        <group><!-- Auto Throttle-->
            <layout>hbox</layout>

            <button>
                <pref-width>40</pref-width>
                 <pref-height>25</pref-height>
                <legend>A/T</legend>
                <binding>
                    <command>nasal</command>
                    <script>PC9M.afds.input(2,1);</script>
                </binding>
            </button>

            <button>
                <pref-width>35</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&lt;&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/target-speed-kt</property>
                    <step type="double">-10.0</step>
                    <min>85</min>
                    <max>399</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <pref-width>25</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&lt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/target-speed-kt</property>
                    <step type="double">-1.0</step>
                    <min>85</min>
                    <max>399</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <input>
                <pref-width>50</pref-width>
                <property>autopilot/settings/target-speed-kt</property>
            <live>true</live>
                <binding>
                    <command>dialog-apply</command>
                </binding>
            </input>

            <button>
                <pref-width>25</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/target-speed-kt</property>
                    <step type="double">1.0</step>
                    <min>85</min>
                    <max>399</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

            <button>
                <pref-width>35</pref-width>
                 <pref-height>25</pref-height>
                 <legend>&gt;&gt;</legend>
                <binding>
                    <command>property-adjust</command>
                    <property>autopilot/settings/target-speed-kt</property>
                    <step type="double">10.0</step>
                    <min>85</min>
                    <max>399</max>
                    <wrap>false</wrap>
                </binding>
                <binding>
                    <command>dialog-update</command>
                </binding>
            </button>

        </group>

</PropertyList>


I'll get it fixed...I like this aircraft and fly it most of all.
Best wishes,
V/r,
Eric
*******************************************************************
Intel Core i7-3520M CPU @ 2.9GHz, 16 GB RAM, 64-bit OS, x64-based processor
HP EliteBook 8770W
AMD FirePro M4000 1GB
Windows 10 Home
Flightgear 2018.2.2
skipper0802
 
Posts: 24
Joined: Tue Apr 24, 2018 4:12 pm
Location: Seattle, Washington, USA
Callsign: 0802SK, skipper0802
Version: 2018.2.2
OS: Windows10 Home

Re: Autopilot and the PIlatus PC-9M

Postby Octal450 » Thu Nov 15, 2018 5:45 pm

Hi,
This is correct. the 9s just amount of spaces needed to display. Since the text is live, it will be replaced with the values in the property.

Kind Regards,
Josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11

Re: Autopilot and the PIlatus PC-9M

Postby skipper0802 » Thu Nov 15, 2018 6:15 pm

Ahhhh...OK. I haven't learned the <label> or <live> tag characteristics yet. Now this makes sense. Thanks for the lesson :-)
Cheers,
V/r,
Eric
*******************************************************************
Intel Core i7-3520M CPU @ 2.9GHz, 16 GB RAM, 64-bit OS, x64-based processor
HP EliteBook 8770W
AMD FirePro M4000 1GB
Windows 10 Home
Flightgear 2018.2.2
skipper0802
 
Posts: 24
Joined: Tue Apr 24, 2018 4:12 pm
Location: Seattle, Washington, USA
Callsign: 0802SK, skipper0802
Version: 2018.2.2
OS: Windows10 Home

Re: Autopilot and the PIlatus PC-9M

Postby Octal450 » Thu Nov 15, 2018 7:29 pm

Hi.
No problem :)

Kind Regards,
Josh
Skillset: JSBsim Flight Dynamics, Systems, Canvas, Autoflight/Control, Instrumentation, Animations
Aircraft: A320-family, MD-11, MD-80, Contribs in a few others

Octal450's GitHub|Launcher Catalog
|Airbus Dev Discord|Octal450 Hangar Dev Discord
User avatar
Octal450
 
Posts: 5601
Joined: Tue Oct 06, 2015 1:51 pm
Location: Huntsville, AL
Callsign: WTF411
Version: next
OS: Windows 11


Return to Autopilot

Who is online

Users browsing this forum: No registered users and 1 guest