Board index FlightGear Support Tools OpenRadar

OpenRadar - Missing Taxiways & Parking Number

OpenRadar is a standalone radar screen which connects to the FlightGear multiplayer servers. It is currently being developed.

OpenRadar - Missing Taxiways & Parking Number

Postby Capt_Jeff » Tue Apr 28, 2020 12:20 am

I've been noticing that OpenRadar cannot display Taxiways lines and parking numbers for all Airports on the Western and southern hemisphere, despite creating a or downloading the updated groundnet.xml file and placing it under the Openradar's aiport.zip

For example, take a look at KSFO, who has a coodinates of [N37° 37.025, W122° 22.997) Image
(I added Route Text instead, under data->routes->KSFO->KSFO_Text_.xml to show parking number)
But that is not enough.., as all taxiways lines are still missing.

So, i swept through the source code to find out whats the problem. And after sometime i found this method under:
Package: de.knewcleus.openradar.view.groundnet TaxiPoints.java
Image


line 67-73 | What the method is trying to do is, take a Degree and Hour coordinate and convert to degree.decimal coordinate:
W122° 22.997 = -122.383283

if we focus on Line 68; If the Coordinate start with W, S.., the variable sign become -1.

now if we focus on line 72 and assume the method will parse [W122° 22.997], we can see:

(double)sign * degree + minutes / 60
= -1.0 * 122 + 22.997 / 60
= -122 + 0.383283 <- (- +) subtracts rather than join
= -121.6167
correct answer should be -122.383283.

we ended up getting the wrong answer because were adding a positive value to a negative value, which ends up subtracting rather than joining.

The solution is to multiply the minutes by sign(-1) and add brackets.
Image

(double)sign * degree + (sign * minutes / 60)
= -1.0 * 122 + ( -1 * 22.997 / 60)
= -122 - 0.383283 <- (- -) adds
= -121.383283

After Compiling.., we load KSFO and we then see this:
Image
Beautiful isn't it? i have used OpenRadar for over 5 years, and i have never seen KSFO like that. The reason why the taxiways line and parking number didn't appear its because they were being misplaces at a different coordinate for example:
[W122° 22.997] was being place at [-121.6167], instead of the correct coordinate [-121.383283]. that's over 12 miles difference!!!


I have created a fork on the Source-Forge called Capt-jeff-Flightgear, that is a clone of the branch called Flightstrip-Bay for OpenRadar..
But since I'm new to how git works, i don't know how to merge to the original. Any recommendation on what to do next?
Last edited by Capt_Jeff on Tue Apr 28, 2020 10:19 pm, edited 1 time in total.
Capt_Jeff
 
Posts: 9
Joined: Sun Apr 26, 2020 9:59 pm
Callsign: Cap_Jef, ATC_Jef
Version: 2019.1.1
OS: Win10, MacOSX

Re: Bug Found on OpenRadar. Patch included.

Postby WoodSTokk » Tue Apr 28, 2020 4:02 am

setting one parenthesis is enough
Code: Select all
(double)sign * (degree + minutes / 60d)
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: Bug Found on OpenRadar. Patch included.

Postby TeXnicer » Tue Apr 28, 2020 8:37 am

quick mafs XD
could this affect all other airports also? Since I am missing all the taxiways everytime I tried (in Germany) thats roughly about 48°-54° N and 008°-012° E
User avatar
TeXnicer
 
Posts: 20
Joined: Tue Mar 17, 2015 3:39 pm
Callsign: D-EKSW
IRC name: TeXnicer
Version: 2018.3.2
OS: Debian 10

Re: Bug Found on OpenRadar. Patch included.

Postby Michat » Tue Apr 28, 2020 8:21 pm

@TeXNicer I think yes.
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Re: Bug Found on OpenRadar. Patch included.

Postby Capt_Jeff » Tue Apr 28, 2020 9:27 pm

TeXnicer wrote in Tue Apr 28, 2020 8:37 am:quick mafs XD
could this affect all other airports also? Since I am missing all the taxiways everytime I tried (in Germany) thats roughly about 48°-54° N and 008°-012° E


If your missing taxiways in N/E hemisphere, like on Germany.., its means your simply missing the ground net xml.

Create one, or Get your groundnet.xml here: http://groundweb.azurewebsites.net/main/Airports then add them to the airport.zip.

For example lets add EDDL's taxiways and parking number..
step1 - we copy\download the EDDL.groundnet.xml http://groundweb.azurewebsites.net/main/Airports/E/D/D/EDDL.groundnet.xml
step2 - we open the airport.zip inside Openradar folder: OpenRadar\data\airport.zip
step3 - We then replace/place EDDL.groundnet.xml inside the airport.zip => Airports/E/D/D/EDDL.groundnet.xml
(ensure to follow the aiport ICAO folder structure)

Thats it.,, done.

If for some reason it didn't load, it means there must have been a parsing error. you can confirm this by looking at OpenRadar console window for any exceptions that contains Groundnet. if thats the case, then examine the EDDL.groundnet.xml for any errors such as :

<Parking index="1" <=Index must never repeat
type="gate"
name="D" <=if name too long
number="53" <=if missing number
lat="N37 37.101"
lon="W122 22.922"
heading="115.799"
radius="30.9576"
airlineCodes="JBU,SWA,VRD"
pushBackRoute="473" <=if none existing nodes
/>

<arc begin="340" <= ensure it starts on a parking node
end="80"
isPushBackRoute="1"
name=""
/>
Capt_Jeff
 
Posts: 9
Joined: Sun Apr 26, 2020 9:59 pm
Callsign: Cap_Jef, ATC_Jef
Version: 2019.1.1
OS: Win10, MacOSX

Re: Bug Found on OpenRadar. Patch included.

Postby Capt_Jeff » Tue Apr 28, 2020 10:18 pm

For those who want to patch OpenRadar issue now, and not edit the source code or wait for a new release.

step 1 - Download My version of TaxiPoint Java class File
http://jeff3d.000webhostapp.com/Permanent_Link/TaxiPoint.class

step 2 - Then open the Openradar.Jar file using a Zip software.

Image

step 3 - Inside the zip navigate to de\knewcleus\openradar\view\groundnet

Image

step 4 - Replace the TaxiPoint.class with the one that I've provide in the link above.



Done.
Capt_Jeff
 
Posts: 9
Joined: Sun Apr 26, 2020 9:59 pm
Callsign: Cap_Jef, ATC_Jef
Version: 2019.1.1
OS: Win10, MacOSX

Re: OpenRadar - Missing Taxiways & Parking Number

Postby jomo » Fri Jun 12, 2020 10:10 am

Thx Cap_Jeff for that work
BUT: Could it be that works only for WINDOWS systems?
I tried - but afterward my OpenRadar did not start complete - I am on UBUNTU!
rgds
jomo / ATCjomo + EDDFjo + EDDFjo1 + EDDFjo2
ATC at EDDF Fr,Sa,Su,We from 20:00 to 24:00 CET/MEZ., see http://www.emmerich-j.de
User avatar
jomo
 
Posts: 1000
Joined: Thu Feb 12, 2009 7:46 pm
Location: Mainz, Germany
Callsign: jomo EDDFjo1+2
OS: UBUNTU 18.4

Re: OpenRadar - Missing Taxiways & Parking Number

Postby benih » Thu Oct 15, 2020 10:45 pm

@Capt_Jeff
I have created a fork on the Source-Forge called Capt-jeff-Flightgear, that is a clone of the branch called Flightstrip-Bay for OpenRadar..
But since I'm new to how git works, i don't know how to merge to the original. Any recommendation on what to do next?

You should open an issue ticket on their tracker, there you place a link to this page here.

Ideally you would probably make a patch file using `git format-patch master` in your branch. That will create small text files containing the changes, that could easily be applied by `git am` from the repository owner.
User avatar
benih
 
Posts: 1679
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: OpenRadar - Missing Taxiways & Parking Number

Postby benih » Fri Oct 16, 2020 10:07 pm

I opened a ticket for you: https://sourceforge.net/p/openradar/tickets/7/
I hope you don't mind...


OpenRadar.jar.zip with recent pending fixes:
- 8.33 channel tuning support
- FGCom-mumble support
- Working ground nets in SW coordinate system (your fix :))
User avatar
benih
 
Posts: 1679
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: OpenRadar - Missing Taxiways & Parking Number

Postby TheEagle » Mon Dec 13, 2021 1:43 pm

@Capt_Jeff any idea why this EDFZ.groundnet.xml file in airports.zip/E/D/F causes an error:
Code: Select all
2021-12-13 13:41:11,125 [AWT-EventQueue-0] [[ERROR] GroundnetReader [AWT-EventQueue-0]] -
?

Code: Select all
<?xml version="1.0"?>
<groundnet>
    <parkingList>
        <Parking index="0" type="gate" number="001" name="H11" lat="N49 58.354238" lon="E8 9.153706" heading="140.000000"/>
        <Parking index="1" type="gate" number="002" name="H12" lat="N49 58.348170" lon="E8 9.141458" heading="140.000000"/>
        <Parking index="2" type="gate" number="003" name="H2" lat="N49 58.335894" lon="E8 9.131492" heading="290.000000"/>
        <Parking index="3" type="gate" number="004" name="S1" lat="N49 58.321993" lon="E8 9.089824" heading="53.000000"/>
        <Parking index="4" type="gate" number="005" name="S2" lat="N49 58.312687" lon="E8 9.099370" heading="53.000000"/>
        <Parking index="5" type="gate" number="006" name="F1" lat="N49 58.302728" lon="E8 9.122270" heading="147.000000"/>
        <Parking index="6" type="gate" number="007"  name="F2" lat="N49 58.288114" lon="E8 9.137594" heading="147.000000"/>
        <Parking index="7" type="gate" number="008" name="J1" lat="N49 58.300871" lon="E8 9.050806" heading="60.000000"/>
        <Parking index="8" type="gate" number="009" name="J2" lat="N49 58.287452" lon="E8 9.064661" heading="60.000000"/>
        <Parking index="9" type="gate" number="010" name="H41" lat="N49 58.327609" lon="E8 9.022450" heading="250.000000"/>
        <Parking index="10" type="gate" number="011" name="H42" lat="N49 58.335547" lon="E8 9.053582" heading="250.000000"/>
        <Parking index="11" type="gate" number="012" name="A1" lat="N49 58.277458" lon="E8 9.028123" heading="253.000000"/>
        <Parking index="12" type="gate" number="013" name="A2" lat="N49 58.284806" lon="E8 9.025186" heading="253.000000"/>
        <Parking index="13" type="gate" number="014" name="A3" lat="N49 58.291681" lon="E8 9.022211" heading="253.000000"/>
        <Parking index="14" type="gate" number="015" name="A5" lat="N49 58.271552" lon="E8 8.998501" heading="253.000000"/>
        <Parking index="15" type="gate" number="016" name="A6" lat="N49 58.278730" lon="E8 8.995633" heading="253.000000"/>
        <Parking index="16" type="gate" number="017" name="A7" lat="N49 58.285764" lon="E8 8.992315" heading="253.000000"/>
        <Parking index="17" type="gate" number="018" name="A8" lat="N49 58.291637" lon="E8 8.988937" heading="253.000000"/>
        <Parking index="18" type="gate" number="019" name="A9" lat="N49 58.265918" lon="E8 8.968602" heading="253.000000"/>
        <Parking index="19" type="gate" number="020" name="A10" lat="N49 58.272961" lon="E8 8.964880" heading="253.000000"/>
        <Parking index="20" type="gate" number="021" name="A12" lat="N49 58.286204" lon="E8 8.958103" heading="253.000000"/>
        <Parking index="21" type="gate" number="022" name="OA" lat="N49 58.320409" lon="E8 8.704943" heading="226.000000"/>
        <Parking index="22" type="gate" number="023" name="SUL1" lat="N49 58.300813" lon="E8 8.734393" heading="245.000000"/>
        <Parking index="23" type="gate" number="024" name="SUL2" lat="N49 58.307763" lon="E8 8.771364" heading="245.000000"/>
        <Parking index="24" type="gate" number="025" name="H3" lat="N49 58.291331" lon="E8 8.932497" heading="162.000000"/>
        <Parking index="25" type="gate" number="026" name="G1" lat="N49 58.090110" lon="E8 9.252249" heading="164.000000"/>
        <Parking index="26" type="gate" number="027" name="G2" lat="N49 58.092761" lon="E8 9.272755" heading="164.000000"/>
        <Parking index="27" type="gate" number="028" name="W1" lat="N49 58.059856" lon="E8 9.304507" heading="257.330000"/>
        <Parking index="28" type="gate" number="029" name="W2" lat="N49 58.062857" lon="E8 9.323540" heading="257.330000"/>
        <Parking index="29" type="gate" number="030" name="G3" lat="N49 57.981154" lon="E8 8.543813" heading="164.000000"/>
        <Parking index="30" type="gate" number="031" name="G4" lat="N49 57.983114" lon="E8 8.560820" heading="164.000000"/>
        <Parking index="31" type="gate" number="032" name="W3" lat="N49 57.948862" lon="E8 8.538869" heading="77.320000"/>
        <Parking index="32" type="gate" number="033" name="W4" lat="N49 57.946421" lon="E8 8.523121" heading="77.320000"/>
    </parkingList>
</groundnet>
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3401
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: OpenRadar - Missing Taxiways & Parking Number

Postby wkitty42 » Mon Dec 13, 2021 2:25 pm

eWAG: maybe because it only has Parking and no taxiways?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9123
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: OpenRadar - Missing Taxiways & Parking Number

Postby TheEagle » Mon Dec 13, 2021 3:28 pm

Umm, how would I add a taxiway that fixes the problem ?
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3401
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: OpenRadar - Missing Taxiways & Parking Number

Postby wkitty42 » Mon Dec 13, 2021 7:56 pm

i don't know what that error code means but the best way i know of to add a taxiway is to use portreekid's groundnet editor... if you do it right, you can upload it and have it accepted for addition into terrasync...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9123
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: OpenRadar - Missing Taxiways & Parking Number

Postby wagnerw » Mon Dec 27, 2021 10:33 am

I changed the coding to make taxiways and taxiwaysegments optional.
When I have finished reworking the code, I will publish again.
wagnerw
 
Posts: 283
Joined: Tue Nov 06, 2012 9:35 pm
Callsign: D-W794


Return to OpenRadar

Who is online

Users browsing this forum: No registered users and 2 guests