• 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?

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.

Why not simply scale the degree heading directly?

For FSX:
degrees * 11930464.7 (FS will handle the rounding to integer)

For FSX:
degrees * 182.04 (FS will handle the rounding to integer)

BTW, it's not BCD at all. In FSX it's a 32 bit integer, in FS9 it's a 16 bit integer.

45 * 11930464.7 ~= 536870912 (after rounding) which is "close enough!"
 
Last edited:
So are you saying that an FS9 gauge will not work properly in FSX? Or does some other information clue FSX into knowing which is which?
 
So are you saying that an FS9 gauge will not work properly in FSX? Or does some other information clue FSX into knowing which is which?

Oh, it'd work but not as designed. The tug would not have it's heading calculated correctly.

The simple solution would be to have two XML "gauges" the only difference being the scalar value used.

The elegant solution would be to code the gauge in C++, and auto-detect which version of FS was being run when loaded, then use the appropriate scalar value.
 
Is this true for any other variables?

None that I'm aware of... of course, I wasn't honestly aware of this one until this discussion, since I've never had a use for this variable... ;)
 
Why not simply scale the degree heading directly?

For FSX:
degrees * 11930464.7 (FS will handle the rounding to integer)

For FSX:
degrees * 182.04 (FS will handle the rounding to integer)

BTW, it's not BCD at all. In FSX it's a 32 bit integer, in FS9 it's a 16 bit integer.

45 * 11930464.7 ~= 536870912 (after rounding) which is "close enough!"
Of course, that's what I've done in the test gauge;

Code:
<Gauge Name="Start" Version="1.0">
<Image Name="Start.bmp" />

<Mouse>
  <Area Top="1" Bottom="30" Left="1" Right="30">
    <Tooltip>Start Pushback</Tooltip>
    <Cursor Type="Hand"/>
    <Click>(A:SURFACE RELATIVE GROUND SPEED,Knots) 0.1 &lt; 
                  if{ (L:TD_Fwd_Rev,Number)
                       if{ (L:TS_Speed,Knots) 0.5924838 / (&gt;K:KEY_TUG_SPEED) (L:TD_Direction,Degrees) 11930465 * (&gt;K:KEY_TUG_HEADING) }
                       els{ 1 (&gt;K:TOGGLE_PUSHBACK) (L:TD_Direction,Degrees) 11930465 * (&gt;K:KEY_TUG_HEADING) } 
                    } els{ (L:TD_Direction,Degrees) 11930465 * (&gt;K:KEY_TUG_HEADING) }</Click>  
  </Area>
</Mouse>

</Gauge>
The only hiccup with this is the timing between keying the pushback and keying the heading. Forward works fine but reverse requires setting heading, pressing start, wait a second and press start again (by which time ground speed is above 0.1kts) and the heading will be correctly read by FSX.
I didn't actually write it this way for the pushback, it was more for the tow then I could steer the aircraft around the airport.
 
Rob Barendregt released rcbgh-50.zip at AVSIM over five years ago, which incorporates support for the new FSX "tug system" as well as custom sound support.

This archive contains version 5.0 of my "groundhandling" gauges, like automated pushback with conversation sounds, a Taxispeed controller using throttle AND brakes, and more; it can added to any aircraft. New in V5.0: 1. Only for FSX !! 2. Accurate interworking with the new FSX pushback tugs. YES, finally :-) !!! 3. Reworked Brakes gauge. 4. Taxispeed gauge now has a built-in ARM function. Easy to install, and fully documented.

Since the gauge is a cabbed XML file, it might be worth a squint to save the effort of reinventing the wheel... :D
 
Rob Barendregt released rcbgh-50.zip at AVSIM over five years ago, which incorporates support for the new FSX "tug system" as well as custom sound support.



Since the gauge is a cabbed XML file, it might be worth a squint to save the effort of reinventing the wheel... :D

I wrote Rob about this the other day. He never mentioned this.

Am I one of the only ones now working in FS9? arrgh.. .


Bill
 
Of course, that's what I've done in the test gauge;

Code:
<Gauge Name="Start" Version="1.0">
<Image Name="Start.bmp" />

<Mouse>
  <Area Top="1" Bottom="30" Left="1" Right="30">
    <Tooltip>Start Pushback</Tooltip>
    <Cursor Type="Hand"/>
    <Click>(A:SURFACE RELATIVE GROUND SPEED,Knots) 0.1 &lt; 
                  if{ (L:TD_Fwd_Rev,Number)
                       if{ (L:TS_Speed,Knots) 0.5924838 / (&gt;K:KEY_TUG_SPEED) (L:TD_Direction,Degrees) 11930465 * (&gt;K:KEY_TUG_HEADING) }
                       els{ 1 (&gt;K:TOGGLE_PUSHBACK) (L:TD_Direction,Degrees) 11930465 * (&gt;K:KEY_TUG_HEADING) } 
                    } els{ (L:TD_Direction,Degrees) 11930465 * (&gt;K:KEY_TUG_HEADING) }</Click>  
  </Area>
</Mouse>

</Gauge>
The only hiccup with this is the timing between keying the pushback and keying the heading. Forward works fine but reverse requires setting heading, pressing start, wait a second and press start again (by which time ground speed is above 0.1kts) and the heading will be correctly read by FSX.
I didn't actually write it this way for the pushback, it was more for the tow then I could steer the aircraft around the airport.




Some very exotic code Chris. Im going to have to test this out. What does it actually do, 30 degree turns to left and right?




Bill
 
Some very exotic code Chris. Im going to have to test this out. What does it actually do, 30 degree turns to left and right
Whatever you want.
If you're going to test it out you'll need the whole package or you won't know what all the L:Vars are;

Select forward or reverse, select desired heading and speed, press start.
As I mentioned above, pushback has the problem where you need to press start twice with a pause between presses.
For forward, there's no problem. If you want to steer the tow, select initial heading and press start, as you're rolling, select another heading and press start again and the aircraft will come around the the new heading.
Speed for pushback does nothing, FSX does it's own thing.
Putting negative numbers in (as you found out) will flip you, so I'm suspicious of the SDK there.

NG, I'll have to have a look at rcbgh-50.zip, sound interesting.
I know I'm probably re-inventing the wheel - but it's my wheel! :D
 

Attachments

Last edited:
Speed for pushback does nothing, FSX does it's own thing.
Putting negative numbers in (as you found out) will flip you, so I'm suspicious of the SDK there.
:D


I found that out yesterday also. My speed inputs did nothing for reverse, only forward. But, you can be doing say 15 knots and click the 2 knot command and forward motion trims down to two knots nicely.


Putting negative numbers in (as you found out) will flip you, so I'm suspicious of the SDK there.

Chris


So, thats why it was flipping my plane in the air at times. I couldnt figure that out. Thanks for the heads up. It seems to only do right turns on forward inputs (on mine) unless I do the reverse first, with a 1 or 2 input, and then go to forward, which it then will do a finished 90deg turn.



Bill
 
I wrote Rob about this the other day. He never mentioned this.

Am I one of the only ones now working in FS9? arrgh..

His FS9 version is also still available at AVSIM... He's been very prolific!
 
Back
Top