Skip to content

enugentdt/vatsimacsgenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VATSIMAircraftGenerator

Written by Eamonn Nugent and Brin Brody under the "Beer-ware" license.

Usage

To use, simply visit this link. At the moment, the code is written for flights to and from KJFK. To make it work with your own airport, see Add My Airport. Click where you would like to create an aircraft on the airport, and it will create one for you.

Creating a flight

Zoom into the airport of your choice, and click anywhere on the map. This field defaults to KJFK. To change the default location, see the Change Default Airport section. On the left-hand side, a flightplan should show up in a format that can be used by TWRTrainer. Copy the text when completed, and save as a .acs file anywhere you'd like. NOTE: The current source encodes for departures from KJFK. If you want to change this, see the Add My Airport section.

API Key

This requires a Google Maps API key. Please view this link to see how to obtain one. It needs to be inserted into index.html, on the line that contains the Maps API call, as the key GET variable.

Change Default Airport

To change the default airport on which the map starts looking at, edit the index.html file. In the mapOptions object inside the myMap() function, edit the center property to read new google.maps.LatLng(lat,long), replacing the lat and long inputs with the latitude and longitude of the airport, to two decimal places.

Add My Airport

Fill your airport code into the airport box on the page. If you have inputted an altitude, it assumes the airport is the arrival field. Otherwise, it assumes the airport is the departure field.

Routing

Currently, all aircraft are written to follow FAA PRD routing. If no routing is found through the PRD API, then the aircraft will proceed DIRECT.

Cruise Altitudes

Cruise altitudes, if not specified in the PRD, are randomly generated at or above FL300.

Current Altitudes

Current altitude is defined by the user in an input that is taken when they select a point on the map, or generated at the elevation of the field. To update the field elevation based off your airport, change the alt variable setting when specified in genflight.js.

Updating the PRD

At this time, the PRD is parsed from the FAA's CSV data and uploaded to the routes.js in readable format. To update the PRD, either replace or supplement the contents of routes.js with your custom routes. This is best used for the purposes of ARTCC/FIR preferred routes based on newly updated LOAs or SOPs.

Updating Airlines

At this time, the following airlines can appear: "AAL", "DAL", "JBU", "FTA", "NKS", "UAL", "FFT", "AAL", "AAY", "HAL", "SWA", "SCX", "VRD", "EDV", "RPA" Add to, or remove from this list in generatecallsign.js to add or remove airlines.

Note

In order for the webpage to not appear with a BLOCKED_BY_CLIENT error, you MUST turn any adblocking software off prior to use. This webpage is NOT optimised for mobile usage at this time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published