News:

Precision Simulator update 10.180 (14 October 2024) is now available.
Navburo update 13 (23 November 2022) is now available.
NG FMC and More is released.

Main Menu

RealTraffic 1.0 beta and updated Foreflight 2.0 beta

Started by Balt, Sun, 18 Jan 2015 15:39

kiek

Quote from: BaltAlso, remember the airplane currently has to be moving to receive traffic.
Aha, I was not aware of that... will try again

Balt

@OmniAtlas, can you please start the jar as per the instructions a couple of posts up from this one with the debug option from a command line, then keep it running until you say the traffic freezes, then send me the output. Please make note of the exact time the traffic has frozen.

Thanks

- Balt

Britjet

Balt,

What an amazing add-on!
I live near Heathrow and immediately got about 90 targets!
One question, if I may - what is providing the data?

Now which clever chappie is going to make an interface with PSX so we can see the traffic on FSX/P3D etc as well as PSX?

Thanks again,

Britjet

kiek

Quote from: kiek
Quote from: BaltAlso, remember the airplane currently has to be moving to receive traffic.
Aha, I was not aware of that... will try again
Still no luck...

Regards,
Nico

Balt

Here's what it looks like if you take off in the opposite direction of the active runway (and luckily, drift off the runway during the takeoff run...)




Cheers

- Balt

Balt

Nico, you need to send me the debug output as requested above. I have no clue otherwise why it doesn't work for you...

Cheers

- Balt

Hardy Heinlin

I see you have aircraft types on the list starting with the letter "A".

Hehe :-)

In PSX's aircraft array 0 ... 6, the aircraft with the indices 1, 3, and 5 are Airbusses!

Just in case you want to assign them type specifically :-)

These three busses use the Airbus specific strobe timing with the double flash.


Cheers,

|..|ardy

Balt

Well yes, RealTraffic sees everything that's out there... I'll consider assigning them to the proper strobe types in v2... Maybe by then, there are more than 7 traffic slots? ;-)

Hardy Heinlin


kiek

Quote from: BaltNico, you need to send me the debug output as requested above. I have no clue otherwise why it doesn't work for you...
Here it is.
Thx for all your effort.
Nico

Balt

Ok thanks for that. Having a look and a think about this overnight...

OmniAtlas

#71
Hi Balt,

Here is a screenshot (traffic has stopped/frozen)




Traffic reappeared again after a few minutes.

---

Updated debug information:

Sat Jan 24 00:20:20 EST 2015 response: 99
Sending request for box: 52.963 49.963 -1.934 1.066 @ krk.data.fr24.com
Sat Jan 24 00:21:45 EST 2015 response: 102
Sending request for box: 52.963 49.963 -1.934 1.066 @ krk.data.fr24.com
Sat Jan 24 00:27:38 EST 2015 response: 107
Sending request for box: 52.963 49.963 -1.934 1.066 @ krk.data.fr24.com
Sat Jan 24 00:33:31 EST 2015 response: 111

Robert Staudinger

Hi Kiek,

I get the same results as "kiek".

RealTraffic  v.1.0.7 : with exact IP or localhost in INI
PSX : Human/Traffic: externally controlled, sets automatically
         TCAS = ON
         TFC = ON

no indication on PSX-ND or outsideview  and therefore nothing to insert for VisualPSX

Maybe my screenshot helps, Robert


Robert Staudinger

CORRECTION: it should be >> Hi Balt <<
Sorry about this, Robert

Britjet

Hello Balt,

Could I suggest that any targets that are outside the 7000ft TCAS envelope are excluded from the 7 that go to PSX?

Also (getting cheeky now!) any chance of making the "radar" screen with a black background? (for those of us who fly at night!)

Great utility. Good luck to the others who are having trouble- don't forget to select "TFC" on the EFIS or you won't see anything, regardless of transponder selection! (Sorry if it sounds obvious but I was guilty - doh...)

Cheers,

Britjet.

Balt

Hi all, 1.0.9 is out... download time again!

Please make sure you run it in debug mode, and if unexpected behaviour occurs, to send me the text file. Run it with the following command:


java -jar /RealTraffic.jar debug > debug.txt


This will write the output into the file debug.txt. Send me that file to balt at inside.net.

New features
- The colour scheme of the "radar" screen can be changed, there are three schemes to choose from. At some point that will be customisable. v2...
- The window location, size, zoom level and color scheme are stored in the ini file. Press "save" when you have a setting that you  like and it'll start up loading them.
- The aircraft labels now show your distance from the traffic. This should make it easier to identify whether the scale on your ND should even display it.
- It now loads and displays traffic even if the aircraft is stationary. I.e. you can sit in the middle of the runway and see landing traffic coming at you. Load the Sydney departure situ (outside our curfew hours of course) and see stuff coming your way.
- There are now two range rings, making it somewhat more obvious how far you can see...
- I have modified the traffic update frequency to 5 seconds, twice as fast as before. Maybe that makes a difference for those who still have traffic problems.
- longitude selection for the traffic is now within an equidistant scale to 3 degrees at the equator, e.g. it's scaled by 1/cos(lat).
- Traffic now shows a trend vector, length determined by ground speed, direction by direction of flight.

Important things to note
- If you don't have TFC selected for the ND, the traffic will not show up.

Cheers

- Balt

Hardy Heinlin

#76
Hi Balt,

PSX often gets a StringIndexOutOfBoundsException because it relies on the trailing semicolon.

TfcVel sometimes gets a string from RealTraffic 1.0 beta that doesn't end with a semicolon, e.g.:

-896;0;149;-1152;0;169;-768;0;204;-768;0;148;3328;0;391;-128;0;194;-640;0;180

When this happens, PSX considers the input invalid and stops its timer mechanisms for external traffic.

Just be sure there is always a semicolon at the end. I think that's all.


Cheers,

|-|ardy



And RealTraffic 1.0 beta always sometimes sends the floats in TfcPos with commas instead of decimal points (German setting on this computer). PSX requires points, otherwise the input is ignored.

Balt

Hi Hardy,

thanks for this! Very useful to discover that PSX will throw exceptions to the command line when they do occur, I could have found this myself earlier. I'll test my plugins against running PSX from the command line in the future!

It's fixed now, version 1.0.10 is up and always has a trailing semicolon on the velocity and traffic strings.

Hopefully this solves the mystery of the disappearing traffic. I'm also upping the refresh to 10s again, 5s puts unnecessary load on the traffic servers.

Cheers

- Balt

Hardy Heinlin

#78
One more thing. See edit :-)


Ah, while you're at it. Could you set 9 sec instead of 10?

Balt

Yeah that's fixed also in 1.0.10, thanks for noticing!

I had a couple of String.format()'s in there that didn't do the Locale.US option. If you downloaded in the last 2 minutes you should be ok.

Cheers

- Balt