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

Measuring takeoff distance

Vitus

Resource contributor
Messages
1,480
Country
newzealand
Hello again,
I'm not really sure where to post this, since the topic expands to various aspects of the aircraft design.

In short: I need a way to easily measure the takeoff distance. Does anyone know if there's a simple gauge available that I can use, or can you think of a different, easy method?

I am compiling the performance data for the Vega to compare to it to the sparse information I got. I'd like to gather the typical information:
takeoff speed under various loadouts, takeoff distance, distance to clear a 50ft obstacle, speed when reaching 50ft. And all that at different pressure altitudes. This will be fun! :cool:
 

Ronald

Resource contributor
Messages
974
How about this (quick?) solution:
fsdeveloper_runway_ruler_texture.jpg

1. Create a ruler-runway texture (see image above) and add it to your test airport's runway
2. Position your Vega and the beginning of the ruler-scale.
3. Take off with your Vega (of any other aircraft you would like to test)
4. When having achieved the "Vr Speed", pause you flight-simulator.
- https://www.baatraining.com/did-you-know-about-aircraft-take-off-speeds-v1-vr-and-v2/
5. Switch to a top-down / satelite-view and .. tadaaah.. instantly read your required take-off distance :).

No extra gauges needed and you can re-use this runway-texture to measure for other distances / planes too.
 

Roy Holmes

Resource contributor
Messages
1,803
Country
us-virginia
I use AFSD. For take-off runs you select Ground Dynamics which gives you a load of details while still on the ground and the ground run which appears when the wheels break ground. Print screen will capture the data but capture screenshot will not because the AFSD display is not part of the sim windows.
Incidentally Engine Data will display everything you ever wanted to know about engines but were afraid to ask.
For props this includes indicated power, which is a function of engine capacity, pressures and RPM. Friction loss. Indicated power minus friction loss gives shaft power. Prop efficiency times shaft power gives thrust power which is what's available to pull the airplane. it also gives RPM, Beta, J, Prop Efficiency and shaft RPM.
AFSD and a lot of other good stuff is available on http://www.aero.sors.fr/
Roy
 

Vitus

Resource contributor
Messages
1,480
Country
newzealand
Thanks for your answers guys. I never, ever tried any scenery work and I didn't want to get into it just to get some takeoff data. Therefore I spent the morning coding a small XML gauge that provides me with all the data I need.
INrBE0G.jpg

After lining up with the runway, you press the "BEGIN TAKEOFF ROLL" button and the gauge takes a reading of your position. Once the aircraft reaches 2ft above ground read the second set of coordinates and remember the speed. At 52 ft I take the third reading. I use the Latitude/Longitude of the three points to approximate the distance traveled. The formula I use is quite rough, but since we're talking very small distances the result is acceptable.

@roy: Thanks for the link. Unfortunately I only saw it after I was done programming :D
But I installed the program you suggested to have a look. Unfortunately it looks like it crashes after connecting to the sim. No idea whats causing this...
 

Vitus

Resource contributor
Messages
1,480
Country
newzealand
Thanks Ronald. I actually ended up spending the whole day adding to it. It can now record performance data for all parts of the flight. It's a bit crude but will get the job done :cool:
 

Ronald

Resource contributor
Messages
974
It can now record performance data for all parts of the flight.
So you build your instant flightrecorder / blackbox gauge on-the-fly? That sounds interesting Vitus.
 

Vitus

Resource contributor
Messages
1,480
Country
newzealand
It's really a very quick&dirty solution to my problem. The only thing that was a bit tricky was to find the distance between two coordinates for the takeoff and landing distance. But since we're talking about a very short length I didn't use spherical trigonometry but rather a simplified approximation. If anyone is interested:
Code:
        (L:PERF DATA ACQUISITION,enum) 1 ==
        if{
          (A:PLANE ALT ABOVE GROUND,feet) (L:PERF P1 HEIGHT,feet) - 2 >
          if{
            (A:PLANE LATITUDE,radians) (>L:PERF P2 LAT,radians)
            (A:PLANE LONGITUDE,radians) (>L:PERF P2 LON,radians)
            (A:AIRSPEED INDICATED,mph) (>L:PERF SPEED LIFT OFF,mph)
            (A:PLANE ALT ABOVE GROUND,feet) (>L:PERF P2 HEIGHT,feet)
           
            (L:PERF P2 LAT,radians) (L:PERF P1 LAT,radians) - d s0 (>L:PERF S0,number)
            (L:PERF P2 LON,radians) (L:PERF P1 LON,radians) - d s1 (>L:PERF S1,number)
           
            (L:PERF P2 LAT,radians) (L:PERF P1 LAT,radians) + 0.5 * cos l1 * d s2 (>L:PERF S2,number)
            l2 sqr l0 sqr + sqrt 6371000 * (>L:PERF DISTANCE LIFT OFF,meters)

            (L:PERF FUEL 1,gallons) (A:FUEL TOTAL QUANTITY,gallons) - (>L:PERF FUEL USED 1,gallons)

            2 (>L:PERF DATA ACQUISITION,enum)
          }
        }

(L: PERF DATA ACQUISITION,enum) is the variable that gets set to "1" when the user clicks on the button to start the data acquisition. The code above is wrapped in the <Update> script of the gauge. The code is checking for the height above ground to work out if lift-off occurred. I'm setting the (L: PERF P1 HEIGHT,feet) variable to the plane's altitude when clicking the button - that is to offset the fact that (A: PLANE ALT ABOVE GROUND,feet) is measuring the height to the reference position. I give it another 2 feet to allow for the decompression of the gear's suspension. For the actual calculation of the distance, I need to calculate the angle between the two coordinates and then multiply it with the earth's radius. (L: PERF P1 LAT,radians) and (L: PERF P1 LON,radians) contain the coordinates, recorded when the user presses the data acquisition button. Besides the distance, the gauge also calculates the fuel used by comparing tank quantity.

The performance data for climb, cruise and descent are much easier, since the distance is irrelevant. Activated by a button in the gauge, it records the tank quantities of two points in flight and takes the average of the two indicated airspeeds. It also calculates the power setting of the engine (HP, manifold pressure, rpm), the density altitude and temperature. Easy-peasy.
 

Ronald

Resource contributor
Messages
974
Thanks for sharing the code Vitus. This helps me to gain a better insight on how to build my own gauges for my own YF16-project in the future.
 

Roy Holmes

Resource contributor
Messages
1,803
Country
us-virginia
Wasn't there some problem with that variable in multiplayer?
Never heard of that and I use it a lot. However, who cares if it works in single player?
Anyhow it was just a suggestion to simplify your code.
Roy
 

Vitus

Resource contributor
Messages
1,480
Country
newzealand
Yeah you're right. I really don't know why I care in the first place. The Vega is a single-pilot aircraft and it's not even equipped with a radio. It's utterly useless in multiplayer :laughing:
 
Top