TUDelft-CNS-ATM / bluesky

The open source air traffic simulator
GNU General Public License v3.0
391 stars 250 forks source link

Generating scenarios from real-time air traffic data OR from historic data such as from ASTERIX files #500

Open HomaizaSaud opened 9 months ago

HomaizaSaud commented 9 months ago

Hello there,

I would like to visualize scenarios in BlueSky based on real-time data or from ASTERIX files. Could you please kindly assist me regarding this matter? Is there an established method for achieving this in BlueSky, or would it require the development of a custom function? If the latter is the case, could you provide any resources or starting points?

Your assistance will be greatly appreciated. Thank you!

andubadea commented 9 months ago

Hello!

For visualising real-time data using BlueSky, you can create a plugin that makes use of the move command: https://github.com/TUDelft-CNS-ATM/bluesky/wiki/Move

Thus, with every update that is received from the live data source, this command can be used to update the state parameters of an aircraft (position, heading, speed, etc.). Check out this tutorial on how to create a plugin: https://github.com/TUDelft-CNS-ATM/bluesky/wiki/plugin

If you want to use historical data, generating a scenario file might be simpler. You can either make use of the move command as above, or add waypoints with altitude, velocity, speed, and required time of arrival constraints (using the ADDWPT and RTA commands) such that the aircraft follows the given path.

The relevant documentation for commands can be found here: https://github.com/TUDelft-CNS-ATM/bluesky/wiki/Command-Reference These commands can be chained and put in a .scn file with a time stamp. Check out one of the example scenarios to see how this can be done: https://github.com/TUDelft-CNS-ATM/bluesky/blob/master/scenario/simpleRoute.scn

HomaizaSaud commented 9 months ago

Thank you so much for your response, will follow up if needed!