• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Push Back, for forward also?

Messages
10,163
Country
us-arizona
Hey all,


Can a gauge move a plane forward? We do have Push Back, but I see we have Slew controls in the gauges. Has anyone ever tried to do a 'forward' motion push? Can this be gauge borne, or would it be a FSUIPC derivative, if it is possible?

Many thanks,

Bill
 
Off the top of my head you could write an XML gauge that when active would enter slew mode, move the aircraft forward and then exit slew mode as all the required Event IDs seem to be there. The drawback with this is that the aircraft would be in slew mode so if the user moved any of the controls they'd also be interpreted as slew commands, with hilarious consequences.
Writing a SimConnect or FSUIPC program/gauge you can just tell the aircraft to move how you want without entering slew mode so a tug effect would be relatively easy, with a bit of effort you could get a tug to hook up to the aircraft as well, however you would then need to be able to program in one of the languages supported by SimConnect.
 
Thanks SB.

I'll see what I can do then with an FSUIPC as I need this for FS9 as well.

Many thanks,

Bill
 
I made a massive discovery this morning. I have been trying to get it to work.

In the FS2004 SDK, I missed a couple of slots for the PushBack.

You can call the direction you wish the tug to go, and you can set the speed.


I found I could start my plane into a certain direction and at a certain speed! This is quite a good find. The only drawback is that you need a heading to start the tug at for the 'directional tug call'.

Here are the code scripts from the SDK;


TOGGLE_PUSHBACK Toggles pushback.

KEY_TUG_HEADING Triggers tug and sets the desired heading. 0 – 65535 (0 – 360 degrees)

KEY_TUG_SPEED Triggers tug, and sets desired speed, in feet per second

TUG_DISABLE Disables tug



Now, when you set tug heading, it will go into the direction of the actual world heading or true heading, not a selected heading. I tried to set 'heading on' and tug heaging, and that didnt work. AP cancels out Tug.

I found that setting tug speed at 'feet per second' even at 0.0002, still gave it 34 knots approx. I tried 'knot' as the speed measure and it held 2 knots perfect. So the SDK is wrong on that.

I also didnt understand the index figure for heading. Why an index for heading? I think that 'might' be wrong also.


Now... Can I do this...

Click 'tug heading' and have its heading set to 'forward' or z-heading? And... have it 'click off' as well. So, you click it on, and you roll exactly forward, and you click again, and it turns off via 'key_tug_disable'.

I tried a few variations on this but nothing I produced seemed to work.


What an awesome site to behold, this thing moving forward via tug speed, and FORWARD!



Bill
 
Last edited:
Here is a working XML click zone.


Code:
<!--  FORWARD DRIVE  -->
   <Area Left="397" Top="608" Right="460" Bottom="672">
        <Tooltip>Forward Drive</Tooltip>
         <Cursor Type="Hand"/>
        <Click Repeat="Yes">
                  (>K:KEY_TUG_HEADING, degree) 030
                  (>K:KEY_TUG_SPEED, knot) 5
                  1 (&gt;L:XMLSND65,enum)
        </Click>
      </Area>


Note that it will turn the plane to true heading of 030* and start a taxi tow speed of 5+ knots. Mine gets up to 15 knots at times, usually around 12, so something isnt right there.

My hopes are that there is a way to write a code script that will enable this to be turned on, and it will go forward in the planes existing direction that it is facing.
 
Really odd..... I almost think its bugged and not meant to work.



I have found under a ton of testing today that when setting 'heading', no matter what, the plane turns to North, and the amount of degrees set is the rate at which the plane comes to that heading, so a setting of 1 will slowly turn to North, while say 030 will whip the planes nose around.

I then placed 'index' in the tug heading, and set it for 1. back to North. I set it to 3500 and the plane flies up into the air and lands on its back. I set it to degree and set heading to 1, very modest turn to North. I set it to 30 and it whips the nose over fast. 360 and its off the ground again.

I tried setting autopilot to 237*, AP off, and it does the same thing. So 'heading setting' has nothing to do with it.

I did note that my NAV2 arrow was inline with North. I wonder if the tug is steered by NAV2 and the heading is actually a 'come about speed' setting.


Off to experiment with that... Nav2 could be it.
 
It doesnt seem to be steered by NAV2 or VOR2.

I had to have tug heading first with tug speed second. If I had tug speed first, nothing happens. If I have tug speed alone, nothing happens.


arrghhh....
 
One thought and it may not be relevant because you're in FS9 not FSX but shouldn't

(>K:KEY_TUG_HEADING, degree) 030


be

030 (>K:KEY_TUG_HEADING, degree)

otherwise, in FSX at least, you're sending 0 as the variable to (>K:KEY_TUG_HEADING, degree)
 
Yes, the way it's written the heading is set to 0 and the speed to 30 knots. :)
 
One thought and it may not be relevant because you're in FS9 not FSX but shouldn't

(>K:KEY_TUG_HEADING, degree) 030


be

030 (>K:KEY_TUG_HEADING, degree)

otherwise, in FSX at least, you're sending 0 as the variable to (>K:KEY_TUG_HEADING, degree)

I was just fixing to point out the same thing! The value must always be BEFORE the (>KeyEvent)...

this number gosinta (>K:that)
 
Nada. No matter what I do, whether I use heading or speed or both, it slowly turns right to 360 degrees and starts moving about 2 knots.


man...
 
Well, all in all, I found that FS does have a tug code in there, and found no way of controlling it.

Yesterday, I was roaming through other names in the hopes I could find a 'tug' key that just turned on forward motion. I tried key_tug, key_tug_forward, etc, etc, trying to find one that might exist that wasnt documented, but nothing worked.

Bill
 
I've spent a few minutes playing with this using the following code;

Code:
<Mouse>
<!-- Pushback -->
  <Area Top="16" Bottom="40" Left="11" Right="35">
    <Tooltip>Toggle Pushback</Tooltip>
    <Cursor Type="Hand"/>
    <Click>1 (&gt;K:TOGGLE_PUSHBACK)</Click>  
  </Area>
<!-- Heading -->
  <Area Top="16" Bottom="40" Left="41" Right="65">
    <Tooltip>Set Heading</Tooltip>
    <Cursor Type="Hand"/>
    <Click>536870912 (&gt;K:KEY_TUG_HEADING)</Click>  
  </Area>
<!-- Speed -->
  <Area Top="16" Bottom="40" Left="71" Right="95">
    <Tooltip>Set Speed</Tooltip>
    <Cursor Type="Hand"/>
    <Click>1 (&gt;K:KEY_TUG_SPEED)</Click>  
  </Area>
<!-- Stop -->
  <Area Top="16" Bottom="40" Left="101" Right="125">
    <Tooltip>Stop</Tooltip>
    <Cursor Type="Hand"/>
    <Click>1 (&gt;K:TUG_DISABLE)</Click>  
  </Area>
</Mouse>

What I find is that with a freshly loaded aircraft, you need to click 'pushback' first, *then* click 'heading'. It doesn't work the other way round.
The default heading is indeed 360, and the same method for speed is required, click 'speed', then 'heading'. Just clicking 'speed' will turn the aircraft's nose to 360.
I found the speed setting is indeed feet/sec, the 1 f/s I have in the code gives me 0.6kt which is about right.
 
I've spent a few minutes playing with this using the following code;


What I find is that with a freshly loaded aircraft, you need to click 'pushback' first, *then* click 'heading'. It doesn't work the other way round.
The default heading is indeed 360, and the same method for speed is required, click 'speed', then 'heading'. Just clicking 'speed' will turn the aircraft's nose to 360.
I found the speed setting is indeed feet/sec, the 1 f/s I have in the code gives me 0.6kt which is about right.

You found this out in a few min's!!!?? Man... Hacker and a half! I spent all day yesterday and part of today on this and never found out this much info on it...

I am off to try it.

Thanks Chris for posting your findings.



Bill
 
Looks like the heading is coded in BCD? The SDK says 0-65535.

Bill, also note you should not include units in K: variables.
 
Last edited:
This works!!!!!!!!!!!!!!!!!!

This freaking works!!!!!!!!!!!!!!!!!!!!!!!

A thousand thanks Chris for hacking this. I am so greatful man. You cannot know.



Roger that Tom on units.


Is that an index heading, the 536870912 entry?
 
I added a section of speed control on mine. I have the option of 2, 7, and 15 knots. My figures for speed were just tuned, the following;



Code:
<!--  FORWARD 2 KNOTS  -->
   <Area Left="60" Top="115" Right="280" Bottom="170">
        <Tooltip>Forward 2 Knots</Tooltip>
         <Cursor Type="Hand"/>
        <Click Repeat="Yes">
                  2 (&gt;K:KEY_TUG_SPEED)
        </Click>
      </Area>

<!--  FORWARD 7 KNOTS  -->
   <Area Left="370" Top="115" Right="600" Bottom="170">
        <Tooltip>Forward 7 Knots</Tooltip>
         <Cursor Type="Hand"/>
        <Click Repeat="Yes">
                  15 (&gt;K:KEY_TUG_SPEED)
        </Click>
      </Area>

<!--  FORWARD 15 KNOTS  -->
   <Area Left="700" Top="115" Right="920" Bottom="170">
        <Tooltip>Forward 15 Knots</Tooltip>
         <Cursor Type="Hand"/>
        <Click Repeat="Yes">
                  27 (&gt;K:KEY_TUG_SPEED)
        </Click>
      </Area>



I also use this command string for Start/Stop on the Pushback command. Just a double click and PB is activated, then click on the forward speed.



Code:
<!--  PUSHBACK REVERSE DRIVE  -->
   <Area Left="40" Top="615" Right="285" Bottom="662">
      <Visible>(L:List_CascadeB,enum) 19 ==</Visible>
        <Tooltip>Reverse Drive</Tooltip>
         <Cursor Type="Hand"/>
        <Click Repeat="Yes">
                  (K:TOGGLE_PUSHBACK) ! (>K:TOGGLE_PUSHBACK)
                  1 (&gt;L:XMLSND65,enum)
        </Click>
      </Area>


I did a hunt late last night on Google about Pushback and tugs and found a nice tutorial on it at one of the major sites, but only on Push Back.

When you start the backup, you can select 1 or 2 for a optional swing around (turn). 1 is left, and 2 is right. It will do a 180 degree turn around, but only after its cleared its own fuselage length of tire length from main to nose, (I didnt understand that part).

I tried using 1 and 2 just now on Tug mode (forward) and it didnt work. This is pretty darn cool...


Thanks Chris.



Here is a pic of my present interface for managing the system on my computer screen.


Bill
 
Last edited:
I found a neat trick you can do with turning.

Click on Pushback
Click 1 or 2
Continue backing up into a turn
Click on Pushback stop
Click on Forward

What happens is 90 degrees is preset into the turn, so when Forward comes on, you turn the rest of 90 degrees and then continue forward. Pushback Turn (1 or 2) is a 90 degree preset unless you turn off PB during the turn and reset PB with turning it back on again (in backward PB mode, not forward).


Now, to do a quick partial turn, use PB, 1 or 2, and at the desired point, click off, then on them off again on PB, then Forward. You will appear to back out to a certain angle, then move forward.

Having PB written to turn on and off really helps as you can double click this and set heading, then click Forward. So you click only 2 buttons instead of three.

What would be cool is if one could 'pulse' three commands in a row into the forward motion. Click Forward, and the command starts PB, Stops it, then starts Forward. I dont know if that can be done though. It would have to be a timed sequence I would think. But that would make Forward Tug a one-touch operation.


Thanks Chris.... Man, this had me depressed today and you were like a blessing to my day. Thanks man. I was so close to the procedure, but missed it. I wouldnt have thought that clicking PB on/off would preset the Heading. Genious!
 
Looks like the heading is coded in BCD? The SDK says 0-65535.

That's a nuisance isn't it. Makes life hard work for those doing parallel development for FS9 and FSX.
Of course you're right Tom, 0-65535 for 0-360 degrees - IN FS9....
In FSX it's 0 – 4294967295 for 0-360, so the 536870912 I was using is 045 degrees.
 
Back
Top