YSFlight Radar Refresh
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
YSFlight Radar Refresh
The last few weeks I've been working on this with halting degrees of success. With u2fly's permission, I've been adapting his GUI and style for displaying airplanes and re-organized the code behind it to be more flexible. I have a solid idea of how the radar will work and display information. However the other side of the coin is getting the information from a server. That is a complete unknown to me, but there are a few examples including the old YSRadar, Officer Flake's Open YS and Vincent's YS Protocols that I can glean information from.
I see this project as having two parts. (1) is the GUI and functionality of the program, and (2) Connecting to a YSFlight Server. I feel I have a good lock on the first part, but I know for a fact that I will be in way over my head for the second part. If anyone would like to help on either part of this project, please let me know!
I have lots of ideas for this project and I'd love to collaborate with you!
Current GUI with drop-down menus
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: YSFlight Radar Refresh
https://gist.github.com/EricTendian/8500747
Eric wrote:Hi u2fly,
I'm quite busy right now, but I will make a note to update the YSRadar script to the newest YS protocol spec. Have you done any research into what changes were made between the 2011 protocol and the 2015 protocol? I'd like to work on it but not sure how much time it would take.
Thanks,
- Eric
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Barr
- Veteran
- Posts: 1012
- Joined: Wed Mar 28, 2012 8:49 pm
- Favorite Aircraft: The Boeing 757
- Location: Providence, Rhode Island
- OS: Windows 10/Gentoo
- Has thanked: 272 times
- Been thanked: 206 times
Re: YSFlight Radar Refresh
Of course if you need a guinea pig you know where to find me.
Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: YSFlight Radar Refresh
BARRACUZ wrote:Nice job fellas. Certainly looking forward for a finished product.
Of course if you need a guinea pig you know where to find me.
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: YSFlight Radar Refresh
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Radar Refresh
The Radar Menu now works up to the seperator, in such that it will update the variables listed in the Radar Information section of the GUI. These variables are global within the python class which is making this GUI, making them easy to use in different functions available to the user.
My goal with this program is to make nearly everything done via the dropdown menus to keep things organized and clean in the window.
Radar Cycle Time (refresh rate) = 2, 5, 10 ,15 seconds
Radar Range = 10, 20, 50, 100 nm
min altitude defaults to 1000ft on startup if the user has not previously saved the settings file with a different altitude.
I was having a boatload of trouble getting the popup input window for the min altitude input to work until I realized I was trying to make two top-level windows ( the main GUI will go on top of everything including YSF to make it usable in-game. Then I realized that I simply had to temp lower the level of main GUI while the input window was open.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- Gunny
- Business Class Membership
- Posts: 3250
- Joined: Sun Feb 06, 2011 6:17 pm
- Favorite Aircraft: Any thing with a prop.
- Location: New Iberia.LA.
- OS: Windows 10 & XP SP3
- Has thanked: 586 times
- Been thanked: 786 times
Re: YSFlight Radar Refresh
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: YSFlight Radar Refresh
You give me an dejavuGunny wrote:Just wondering if this could be adapted for use off line as well as for servers
You already ask this ... viewtopic.php?p=96824
... and I already give an answer
viewtopic.php?p=96843
----u2fly wrote:Yes, its would work offline (currently "gui-ysradar.py" is only interface template, but soon it will use YS protocol).Gunny wrote:I wonder if it could be coded to work off line as well?
Only thing you will need run YSFlight in "Server Mode"
For this run YSFlight, go to "Menu -> Network(N) -> Server". After that needed data would be listen on local IP 127.0.0.1 and port 7915.
Here is connector to YS protocol
https://gist.github.com/EricTendian/8500747
Please, help update previouse "ysradar.py" to 20150425 protocol https://gist.github.com/EricTendian/8500747OfficerFlake wrote:Watching this thread with great interest. Again, message me for any specific help with your netcode side of things, I'll answer best I can.
Think, you don't forget Python, because you Orb server written on it.
Only recommendation is use Python 2.x as most popular version.
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Gunny
- Business Class Membership
- Posts: 3250
- Joined: Sun Feb 06, 2011 6:17 pm
- Favorite Aircraft: Any thing with a prop.
- Location: New Iberia.LA.
- OS: Windows 10 & XP SP3
- Has thanked: 586 times
- Been thanked: 786 times
Re: YSFlight Radar Refresh
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Radar Refresh
If you made a local server I'm sure it could work. You'd just have to figure out the IP address that you were flying on. In fact that is how I'm probably going to be testing things. AS long as you didn't publish the IP, you wouldn't get anyone else in there and on top of that there would only be on your machine. You might not even need an internet connection.Gunny wrote:Just wondering if this could be adapted for use off line as well as for servers
I am not wise in the ways of computers talking to each other (That's Flake's expertise), so take that with a hefty grain of salt.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: YSFlight Radar Refresh
Please, see this good example how runways and some other objects can be shown on radardecaff_42 wrote:I've been adapting his GUI and style for displaying airplanes...
http://www.atc-sim.com/gallery
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Dragon_Mech
- Veteran
- Posts: 571
- Joined: Wed Jul 15, 2015 12:18 pm
- Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
- Location: Mansfield, Mo. USA
- OS: Windows 7 Ultimate
- Has thanked: 94 times
- Been thanked: 127 times
Re: YSFlight Radar Refresh
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Radar Refresh
At this point, I do not know, however I am building that capability into the GUI.Dragon_Mech wrote:would it be possible to have the radar show the IFF status of each aircraft?
@ u2fly, Those look incredibly polished. I think a long-down the road follow-on development could have the map as the background, but for now, I'm just sticking with the radar scope.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- Dragon_Mech
- Veteran
- Posts: 571
- Joined: Wed Jul 15, 2015 12:18 pm
- Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
- Location: Mansfield, Mo. USA
- OS: Windows 7 Ultimate
- Has thanked: 94 times
- Been thanked: 127 times
Re: YSFlight Radar Refresh
either way, i am looking forward to having this running on the second monitor as i fly online. keep up the good work you two.decaff_42 wrote:At this point, I do not know, however I am building that capability into the GUI.
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: YSFlight Radar Refresh
Can you give your current latest sourcecode of this GUI? I'm back to develop this tool now and try learn more Tkinter manuals.decaff_42 wrote:At this point, I do not know, however I am building that capability into the GUI.Dragon_Mech wrote:would it be possible to have the radar show the IFF status of each aircraft?
@ u2fly, Those look incredibly polished. I think a long-down the road follow-on development could have the map as the background, but for now, I'm just sticking with the radar scope.
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Radar Refresh
The only thing that is working so far is the radar scope colors and things. I think you'd want to work with classes in order to make things easier with respect to tracking all the fliers. Also it is written for python 3, but with a try: except entry at the top for importing python you should be able to make it work for python 2 as well. It's been a long while since I've touched this. I hope you can get it working!
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Radar Refresh
However this currently does nothing for a server, so there isn't any point in downloading it unless you are going to be working on the code.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
-
- Contributor
- Posts: 314
- Joined: Sun Jul 24, 2016 11:59 pm
- Favorite Aircraft: Mitsubishi Zero
- Location: Cupertino, CA
- OS: Windows 10
- Has thanked: 45 times
- Been thanked: 153 times
Re: YSFlight Radar Refresh
So it means that I can't use this in the "server mode"?decaff_42 wrote:However this currently does nothing for a server
Well anyway, I'll try to work on the code (I'm learning python)
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: YSFlight Radar Refresh
- add debug message for console output:
- print app startup message
- print credits info
- print version number and release date
- print used OS/platform name
- print used python version
- print quit message after closing app
- add icon for Linux systems
- add dialog for open config files
- add setting message
- add about message
- add tutorial message
- add ask dialog before quit
- File "YSFRadar/gui2.py" renamed to "YSFRadar/gui.py" plus fixed classes names in sources (outdated "YSFRadar/gui.py" removed now)
- ... some other small changes
- Python 3.4
- Tkinter module for this Python version
PLEASE, GIVE A FEEDBACK!!!
- Attachments
-
- YSFlight-ATC-Radar_0.2.zip
- (18.26 KiB) Downloaded 400 times
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Who is online
Users browsing this forum: Google [Bot] and 15 guests