-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terrain elevation and associated functionalities added with TERRAIN plugin v1.0 #430
base: master
Are you sure you want to change the base?
Conversation
Thanks for this interesting plugin! I have a couple of suggestions:
|
@yaofuzhou I really like the sound of this, but seen it has gone 'stale' of some sort.
|
Hi Jack! Thanks for reaching out. Sorry, I have not had the chance to update my plugin according to the latest BlueSky conventions. For terrain elevation alone, the project is conceptually quite simple as it just interpolates the terrain elevation using discrete data queried from Open Topography. The only technical issues are 1) When querying, one probably wants to download one tile with a limited size at a time; and 2) making sure that the coordinate system is handled correctly. I have not implemented any optimization to improve the speed or efficiency of the elevation function, and something like a hashtable may get the job done such that the memory does not have to keep the elevation map for too large of an area at once. The slightly more ambitious project would include 3D skyline data from OpenStreetMap, which I have only prototyped locally and not yet committed. If you are interested, I can share my thoughts about this and my algorithm for integrating the skyline elevation map with the terrain elevation map. Let me know if you are interested in going ahead. Cheers! |
Dear BlueSky Community,
I have implemented the initial version of the plugin
TERRAIN
.To test
TERRAIN
on your end,configure the
terrain_and_skyline
section insettings.cfg
. You may want to request an Open Topography key for free, and use it to replace the default key. The default bounding box is placed around Vienna that everyone loves.Run
plugin terrain
in the BlueSky console. Stand by for the plugin to download necessary dataset and to initialize its functions.Create an aircraft within the set bounding box. E.g., a 747 over Vienna,
cre A b744 48.2, 16.3 0m 10000 200
pan A
.Run
AGL A
for the updated above-ground level ofA
. You may hear a sound that says the AGL value in feet 🙄🙄🙄Mute that sound in
settings.cfg
withagl_mute = True
🤣🤣🤣Run
groundmsl A
orgroundmsl 48.2, 16.3
to check the ground elevation belowA
or at(lat, lon)
=(48.2, 16.3)
.Run
SHOWELEMAP
to print a drawing of the terrain elevation map in .pdf and .png formats.Please kind let me know if you have spotted any issue for me to fix, especially if I have broken any convention of BlueSky that I am not aware of.
As always, suggestions for me to improve and expand the plugin
TERRAIN
are much welcomed.Cheers,
Yaofu
P.s. we can totally make landing aircraft say "50, 40, 30, 20, 10, retard, retard, retard..." if you want this (useless?) feature!