[Program] YS QRADAR

YSFlight addon development, questions, tutorials, & more!
Post Reply
User avatar
Skipper
Rookie
Rookie
Posts: 83
Joined: Mon Dec 09, 2013 8:28 pm
Favorite Aircraft: Spitfire/F-15E
Location: SAM VOR 240 radial, 27nm
OS: Windows 10
Has thanked: 15 times
Been thanked: 57 times
Contact:

[Program] YS QRADAR

Post by Skipper »

This is something I've been working on for the last week or so, so I thought I'd give you a sneak peak before release.
If you're on the discord, you may have seen some of the progress on this:
YSRADAR3.png
View of HNL (and the UI)
YSRADAR2.png
Wider view of Oahu,
YSRADAR1.png
Just taken off from Kona.

The main features currently implemented:
  • Connection to a YS server (currently hardcoded to localhost for testing, but the menus etc are all set up ready, it was just a pain to keep typing it in for testing)
    Recording all the ground objects, users and aircraft from the server
    Ground objects are mapped on to the radar display (but only if they're nav objects, so ILS, VOR, NDB - currently only vanilla ones, but extras can just be added to the search string)
    mapping the planes to the map, with labels to indicate airspeed, altitude and username (mainly AI at testing!)
    Functions are there to change username to a callsign on the radar display, so you can set custom ones (Squawk!)
    Aircraft are added to the table on the right, currently it just added any new planes, but isn't updating, but it's a proof of concept. Future plans for this are to make it zoom to the plane if you click on it, and have an edit function to assign callsigns
    Converting the .fld to the radar basemap - this isn't without significant flaws, hence why it's so faded out, so it's just an idea of the basemap! The rectangular areas worked well though, so runways and taxiways look good! (as long as you haven't set the whole map to rectangular region). This was made yesterday/day before, and I am very tired from working late nights on this, so the function for this is flawed at best... I'll rework it one day, but for now, it's pretty good, and you're not looking at the ground anyway!

    Zooming and panning of the radar screen, which should not be too much to ask, but took me about 5h to implement....

It is very much an early works at the moment, but I thought I'd share!
Oh, and hello everyone! Hope you're all doing well, not seen you for a LONG time.
Image
Host of YSRP: YSRP.co.uk - YS Role Play Server
User avatar
u2fly
Senior Veteran
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: [Program] YS QRADAR

Post by u2fly »

Skipper wrote: Thu Mar 16, 2023 7:43 pm It is very much an early works at the moment, but I thought I'd share!
Oh, and hello everyone! Hope you're all doing well, not seen you for a LONG time.
We with Decaff once tried to create something like ATC Radar years ago using Python3 with Tkinter-based GUI, but unfinished: viewtopic.php?p=97020#p97020

Then Decaff created amazing YS Flight Log Tool that generates nice flight maps from YFS files: viewtopic.php?p=119758#p119758

Wish You get a success with YS QRADAR project!

(And as YSFlight is opensource software now, maybe one day such radar would be implemented as a native UI panel in YSFlight too: viewtopic.php?p=119623#p119623)

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)
User avatar
Skipper
Rookie
Rookie
Posts: 83
Joined: Mon Dec 09, 2013 8:28 pm
Favorite Aircraft: Spitfire/F-15E
Location: SAM VOR 240 radial, 27nm
OS: Windows 10
Has thanked: 15 times
Been thanked: 57 times
Contact:

Re: [Program] YS QRADAR

Post by Skipper »

Got an alpha version for testing: https://drive.google.com/file/d/1WK_qhd ... sp=sharing
Currently it connects to the server, shows planes and navs on the map. If you click on a plane it'll show info about that plane on the right, and show a compass around the plane (and the map will follow the plane)
You can change the callsign of the plane in the info tab
You can load an fld as the basemap, (and export it to geojson if you so desire, it helps with the creation of waypoints and lines).
You can import geojson for waypoints and lines (could be routes or whatever you fancy).
Waypoints: attribute called "name" will set the name of the waypoint on the map

Lines: colour- sets the colour of the line, it's set as "R,G,B" so "255,255,255" is white.
width - sets line width. This is in metres at scale, so if you draw a 1m line, you're not going to see anything from zoomed out.
Good luck, and let me know if there are any bugs!
Image
Host of YSRP: YSRP.co.uk - YS Role Play Server
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests