Board index FlightGear Development Aircraft

The big glider project

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

Re: The big glider project

Postby polly » Tue Aug 16, 2022 5:47 pm

I'm hoping this is the proper location for the tow:

Image

Here's the change I patched in ask13.xml #425 :
Code: Select all
      <force name="aerotow_hitch" fram#425e="BODY" unit="LBS">
         <!--approximate aerotow hook position-->
         <location unit="M">
            <!-- x> -3.426 </x -->
            <x> -0.0</x>
            <y>  0.0   </y>
            <!-- z>  0.218 </z -->
            <z>-0.03</z>
         </location>


Edit: If the lower, red, tube is the tow connector then for the above, use <z>-0.1125</z>
User avatar
polly
 
Posts: 956
Joined: Thu Nov 04, 2010 3:45 pm

Re: The big glider project

Postby Ysop » Tue Aug 16, 2022 7:56 pm

Nice! Thanks for taking care of it.

From memory it should be the lower location.
User avatar
Ysop
 
Posts: 1348
Joined: Thu Oct 25, 2018 10:06 pm
Version: 2020.3.18
OS: ubuntu 22.04

Re: The big glider project

Postby wlbragg » Tue Aug 16, 2022 8:24 pm

@D-ECHO

It looks like you deleted the repository I got it from...
github.com/D-ECHO

OK, I think were good now. I was mostly concerned about the ASK13 in fgaddon, so long as that one got the fixes we should be good.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: The big glider project

Postby D-ECHO » Wed Aug 17, 2022 5:25 pm

Thank you very much, I applied your patch!
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: The big glider project

Postby wlbragg » Mon Sep 04, 2023 11:21 pm

@D-ECHO As far as I can tell the JSBSim version of the Ka6 is using the wrong key bindings for the hitch.nas logic. Your using a property and the hitch.nas logic calls for some nasal commands for the hitch open/close/find. I used what the help in hitch.nas called for and it now works with the Aerotow Anywhere addon.

The aircraft is using

Code: Select all
<key n="15">
            <name>Ctrl-o</name>
            <desc>Find aircraft for aerotow</desc>
            <binding>
               <command>property-assign</command>
               <property>/controls/aerotow/find-aircraft</property>
               <value type="bool">true</value>
            </binding>
            <mod-up>
               <binding>
                  <command>property-assign</command>
                  <property>/controls/aerotow/find-aircraft</property>
                  <value type="bool">false</value>
               </binding>
            </mod-up>
         </key>
         <key n="111">
            <name>o</name>
            <desc>Open hook</desc>
            <binding>
               <command>property-assign</command>
               <property>/sim/hitches/hook-open</property>
               <value type="bool">true</value>
            </binding>
            <binding>
               <command>property-assign</command>
               <property>/controls/groundhandling/wingholder</property>
               <value type="bool">false</value>
            </binding>
            <binding>
               <command>nasal</command>
               <script>towing.releaseHitch("winch")</script>
            </binding>
            <binding>
               <command>nasal</command>
               <script>towing.releaseHitch("aerotow")</script>
            </binding>
            <mod-up>
               <binding>
                  <command>property-assign</command>
                  <property>/sim/hitches/hook-open</property>
                  <value type="bool">false</value>
               </binding>
            </mod-up>
         </key>


and the hitch.nas code calls for

Code: Select all
<keyboard>

   <key n="15">
     <name>Ctrl-o</name>
     <desc>Find aircraft for aerotow</desc>
     <binding>
   <command>nasal</command>
   <script>towing.findBestAIObject()</script>
     </binding>
   </key>

   <key n="111">
     <name>o</name>
     <desc>Lock aerotow-hook</desc>
     <binding>
   <command>nasal</command>
   <script>towing.closeHitch()</script>
     </binding>
   </key>

   <key n="79">
     <name>O</name>
     <desc>Open aerotow-hook</desc>
     <binding>
   <command>nasal</command>
   <script>towing.releaseHitch("aerotow")</script>
     </binding>
   </key>

   <key n="23">
     <name>Ctrl-w</name>
     <desc>Place Winch and hook in</desc>
     <binding>
   <command>nasal</command>
   <script>towing.setWinchPositionAuto()</script>
     </binding>
   </key>

   <key n="119">
     <name>w</name>
     <desc>Start winch</desc>
     <binding>
   <command>nasal</command>
   <script>towing.runWinch()</script>
     </binding>
   </key>

   <key n="87">
     <name>W</name>
     <desc>Open winch-hook</desc>
     <binding>
   <command>nasal</command>
   <script>towing.releaseHitch("winch")</script>
     </binding>
   </key>

  </keyboard>
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: The big glider project

Postby wlbragg » Wed Sep 06, 2023 2:52 am

@D-ECHO

Same issue with the JSBSim version of the Scheibe Bergfalke II. The YASim version works with that keybinding, but the JSBSim versions need the above mentioned binding.
Are you OK with me making the fixes as I come across them and pushing to fgaddon? I'm going through the entire list of gliders, YASim and JSBSim and verifying they all work with the Aerotow Anywhere addon.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: The big glider project

Postby wlbragg » Wed Sep 06, 2023 3:35 am

@D-ECHO

The Arcus is missing the force definition section in the main hitch definition and so it won't actually move when connected to the tow aircraft.

It's missing...

Code: Select all
<force_name_jsbsim type="string">aerotow_hitch</force_name_jsbsim>
<force-is-calculated-by-other type="bool">false</force-is-calculated-by-other>
<mp-auto-connect-period type="float">0.0</mp-auto-connect-period>


Again, asking permission to push the fix to fgaddon?
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: The big glider project

Postby D-ECHO » Wed Sep 06, 2023 11:36 am

Thanks for the reports.

Feel free to push your fix(es) to FGAddon and I will look into the other issues when I have some time :)
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: The big glider project

Postby wlbragg » Thu Sep 07, 2023 8:18 pm

OK, will do, thanks. I don't think there is any other outstanding issues.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: The big glider project

Postby wlbragg » Sat Sep 09, 2023 4:43 am

FWI: the following gliders were updated to the correct keybindings for the Aerotow Everywhere addon which uses the fgdata/towing/hitch.nas logic for glider aircraft.

JSBSim

Arcus
ASG29
ASK13
ASK21mi
Scheibe Bergfalke II
DG-1000
Ka6
LS4
LS8
SG38

@D-ECHO I have the following YASim gliders from you hanger sometime in the past. None of these are in fgaddons as far as I know. Is there a reason they were never included them in fgdata?

ASW28
DG1001
G103
L13
SZD55
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: The big glider project

Postby D-ECHO » Sat Sep 09, 2023 9:09 am

Thanks for updating!

The DG1001 is just a variant of the DG1000 and lives on as that one ;)

The others weren't really good, so I never pushed them to FGAddon. They're still on my list though and given enough time and finding enough info about them, they will eventually get "re-born" and pushed :)
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: The big glider project

Postby D-ECHO » Tue Oct 31, 2023 6:13 pm

As requested, the ASW28 is back!
Image
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: The big glider project

Postby wlbragg » Tue Oct 31, 2023 6:40 pm

Much Applause!
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7586
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Previous

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 13 guests