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

Runway Traffic

Messages
41
Country
us-virginia
Fairly new to FSX. I'm looking to build a warning system that would notify incoming aircraft of potential runway incursions.

This would look at the landing runway, and determine if other aircraft were on it. Maybe have runway lights blink which would be triggered by the incoming aircrafts position.

Any thoughts on how this could be accomplished using FSX
(Simconnect)?

Thanks
 
You can request a list of simobjects within a certain range and you can request their AI Traffic State, which I think does include among others 'landing' and 'takeoff' and you can obtain the assigned runway.

So maybe you can draw some conclusion about the current runway use, though it will be a guess at best I think.

Then to flash lights... I guess you have to create a simobject so that you can add the lights using simconnect and use some kind of trigger to make them flash. To place the lights you would need to find out the coordinates of the runway, which is not possible using simconnect. So you'll have to create a cfg with coordinates for each runway at each airport.

If you do have runway coordinates, you could also use them to see if any of the simobjects returned by simconnect are actually on the runway.

Daniel
 
Thanks Denial,

Should get me going in the right direction.

Are there any good tutorials, blogs, etc out there on creating Sim Objects. I'm guessing I have to use something like gmax and export my object in a format which FS will like....
 
It's possible. I have programmed a RWSL tool with simconnect in C#.
Listen for "takeoff 2" and "landing" state include runway number. The tool runs for the CYHZ Halifax airport.

In case of a event the tool place/remove objects in the scenery. (red lights on taxiway or runway - toggle)

RWSL = Runway Safety/Stop Lights
 

Attachments

  • rwsl.jpg
    rwsl.jpg
    36.7 KB · Views: 637
  • rwsl_taxiway.jpg
    rwsl_taxiway.jpg
    48.9 KB · Views: 555
It's possible. I have programmed a RWSL tool with simconnect in C#.
Listen for "takeoff 2" and "landing" state include runway number. The tool runs for the CYHZ Halifax airport.

In case of a event the tool place/remove objects in the scenery. (red lights on taxiway or runway - toggle)

RWSL = Runway Safety/Stop Lights

VERY COOL

Is the tool available to others .. Freeware / shareware / payware.

If it is a small, stand alone tool, specifically for one airport, would you consider releasing it with C# project, as a starting point for others interested in experimenting with this function ?
 
Stand alone. This because the red lights are attached effects in four Gmax files.
I have a pair for rwy 05/23 and a pair for rwy 14/32.
One for runways, one for taxiways.

With simconnect I look for "takeoff 2/landing" and "runway".
Radius is 5km, so the lights toggle like real.
In case of "landing 05" I place one of the four .mdl
The .mdl is a "GroundVehicle" SimObject.
 
Hey Ralph,

Do you have an example of how you toggle your runway lighting using SimConnect. Do you load the lights as NonAircraft Objects and simply add/remove? Or can you actually pass in vars. to toggle?

Thanks
 
Simply toggle with

simconnect.AICreateNonATCAircraft("RWSL1", "R0001", Init, DATA_REQUESTS.REQUEST_RWSL1);

I will upload a sample in the next days, so you can to try it out.
 
OK. I have upload a version as runtime and with the source code in C#.
Works only in CYHZ.

Link: http://www.simaddons.com/download/RWSL.zip

This version use simconnect.AICreateSimulatedObject, but the
center of the .mdl is outside any runway/taxiway. The object
is a groundVehicle. It's possible to change this.
For simconnect.AICreateNonATCAircraft the object must be a aircraft.

Source code. Not the best but it works. Perhaps a C crack can input some better lines....
 
Here two pictures to see how it works:

RWSL close runway 05/23, all taxi open

rwsl2.jpg


RWSL open runway 05/23 (start of a plane) and close all others

rwsl1.jpg
 
Back
Top