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

FS2004 CofG calculation

Messages
1,468
Country
italy
In the SDK I found CG PERCENT Longitudinal CG position as a percent of reference chord
I need to calculate how many inches either side of the trim datum so that I can correctly set the tail trim.
How does the above help? I've done a guestimate. But literally that's all it is. I need to base my calculations for Tail Plane Incidence on some real numbers. Any ideas? Thanks
 
I assume that "reference chord" is the Mean Aerodynamic Chord (MAC). So you first have to calculate the plane's MAC:

http://www.airfieldmodels.com/infor..._aircraft/formulas/mean_aerodynamic_chord.htm

Then you can use the FS variable's percentage and the MAC (in inches, or whatever) to calculate the CG position as a distance along the MAC. Then calculate the difference (if any) from that point to the trim datum and you should have it (I think?).

If you need to do all of this for any plane the gauge is loaded into, then some math would be required get the MAC, including getting the tip chord from the root_chord and aspect_ratio lines of the geometry section in the aircraft.cfg file (again, I think?). Assuming those variables are available in FS, of course.

Hope this helps,
 
I presume that the flight manual will list the MAC in inches or percentages and give both the forward and aft limit.
They have to have that for loading purposes to do their Weight and Balance calculations.

That would give you a starting point to model what you are after.

Do you have access to a real world Flight Manual of the aircraft that you are working on ?

Cheers
Karol
 
True , but it gives him a starting point to run trials in the sim with a readout instrument to get his own values ,
then decide or derive his centre point for trim rotation Up/Down and a scale to scale relationship.

Cheers
Karol
 
Last edited:
This is a flight dynamics topic and the answer could lie in the last few threads in that forum
Roy
 
True , but it gives him a starting point to run trials in the sim with a readout instrument to get his own values ,
then decide or derive his centre point for trim rotation Up/Down and a scale to scale relationship.

Cheers
Karol

FS9 (nor FSX) give neither the length of the MAC nor its leading edge so they'll have to be calculated in any case.
 
Thanks guys. I got the numbers from airwrench so I was able to calculate the %MAC. And from that inches from datum. My only problem now is how to create a formula that gives the same Tail Plane Incidence setting using inches from datum and TPI setting. Looking at the line on the graph what would the formula be to arrive at the same numbers prescribed by the line?
 

Attachments

  • WB_TPI_settings.jpg
    WB_TPI_settings.jpg
    265.8 KB · Views: 444
Thanks guys. I was able to use the numbers in airwrench to calculate %MAC and inches from datum. My remaining problem though is how to create a formula that mimics reading the graph. By putting in an X value (inches from datum) and then reading off the degrees (Y value).

WB_TPI_settings.jpg
 
Hi Volo,

Equation for the slope line is y=-0.1176x + 3.7647. Above x=15, y equals 2. Below x=-27.5, y equals 7

Is that what you mean?

Bob
 
Hi Volo,

Equation for the slope line is y=-0.1176x + 3.7647. Above x=15, y equals 2. Below x=-27.5, y equals 7

Is that what you mean?

Bob
Thanks Bob,
That's the ticket! But can you explain a bit more this part y=-0.1176x + 3.7647
I did a calculation based on y50 x42 =
1.190476
Which seemed to work in part but not in all cases probably because of the positive and negative values.
 
Last edited:
Sure. I just read the two end points of the slope portion of the line, X=-27.5, Y=7 and X=15, Y=2 and determined the equation for that, which is y=-0.1176x + 3.7647. But, this equation can be applied only when X is between -27.5 and +15. Outside of those limits, Y is a constant, either +7 or +2.

So, the XML would be along the lines of

Code:
-27.5 15 (L:TakeOffCG, number) rng if{ (L:TakeOffCG, number) -0.1176 * 3.7647 + (>L:TailTrim, number) }
(L:TakeOffCG, number) -27.5 <= if{ 7 (>L:TailTrim, number) }
(L:TakeOffCG, number) 15 >= if{ 2 (>L:TailTrim, number) }

the XML can be cleaned up, but you get the point.

Further, I often get lazy and let excel determine the equation for me - the trend line in the graphing function will have an equation. A straight line is simple, but the non-linear regressions are more complicated and excel makes it easy in a lot of cases.

upload_2015-5-7_16-1-56.jpeg


Bob
 
Last edited:
The math in a little more detail.

A straight line has the formula:

y = mx + b

x and y are points along that line, m is the slope of the line, and b is a constant number.

and the formula to get the slope from two point is:

m = y1 - y2 / x1 - x2

Logical, since after all the slope is the amount of change in y with a given change in x.

Plugging in Bob's numbers:

m = 7 - 2 / -27.5 - 15 = 5 / -42.5 = -0.1176

Now using this slope number (m) plus the first set of Bob's numbers as x and y gives:

y = mx + b

7 = -0.1176 * -27.5 + b

7 = 3.235 + b

Subtract 3.235 from each side:

7 - 3.235 = b

3.765 = b

So the formula of the line becomes:

y = -0.1176x + 3.765

Hope this helps,
 
Last edited:
Thanks Bob,
It's a lot clearer now. As regards trend lines I've cheated too when adjusting some engine parameters!
 
Thanks to all. I've now got meaningful numbers that now appear on the FO's chinagraph whilst on the ground

tpi1.jpg


And also in the load sheet which is in Excel and based on a real BOAC Super VC10 load sheet
tpi2.jpg
 
Back
Top