Old 744 Forum

Archived posts

AdaptPSX, NMEA, and Google Earth

Page: 1

Author Post
Member
Registered: May 2009
Posts: 479
Location: EFTO
Member
Registered: May 2009
Posts: 241
Hi Martin,

Maybe you could try AdaptPSX v2.6, that's latest "official" released version? I didn't know that version 2.7 existed... maybe it's hidden somewhere?
_______________
Pierre, LFPG
Member
Registered: May 2009
Posts: 479
Location: EFTO
Hello Pierre,

some small discrepancy here:

The file I downloaded (straight from Garry's site, unhidden) is indeed called adaptpsx.b2.6.zip, but what I quoted above came from the "About" tab in AdaptPSX itself, and that says "Beta 2.7".

So I am probably using the same version you refer to.

Cheers,
Martin
Member
Registered: Aug 2014
Posts: 15
Hi Martin,

I can confirm what you described, I also tried to link the NMEA output of Adapt PSX (version 2.6 or version 2.7 - the latest beta version) to a moving map application but also without success. I tied the output to a virtual com port because many GPS tools support this.

I used several different programs but none of them displayed (or interpretated) the coordinates of PSX correctly. I then used a terminal viewer to analyze the data sent to my virtual com port and it also displayed the strings you mentioned.

At least one of the freeware GPS tools read either the latitude or longitude correctly (I can't remember what it was - I'm on holidays in GCRR right now 8) ) - but not the combination of both.

It seems that there is a small issue with the NMEA output - I wanted to have a deeper look at the strings after my holidays to see where the problem is.

It would be awesome to have a compatible NMEA output because that's the only reason why I run FSX in the background (totally stripped down, i.e. no AI, autogen very sparse, scenery complexity very low, simple clouds etc. - no problems with the frame rate in PSX running on the same computer).

best regards,
Dirk
Member
Registered: May 2009
Posts: 479
Location: EFTO
Member
Registered: Dec 2009
Posts: 334
Location: KTPA
Martin:

Please know your efforts are appreciated, and your reports being eagerly followed....

C
Member
Registered: May 2009
Posts: 958
Location: Chicago
Agreed, I'm eagerly following as well!
_______________
Will /Chicago /USA
Member
Registered: May 2009
Posts: 131
Location: Reutlingen, Germany (near EDDS)
Hi Martin, Dirk, ... and all

back in PS1 days I programmed a light weight GPS output program which read position data from PS1 (via the broker) and wrote NMEA data to a COM port.

Since I also have just finished another add-on program which connects to PSX and uses a current up-to-date compiler (Lazarus, using Free Pascal), I could probably merge both programs with not too much (*) effort to create a light weight GPS output program for PSX. I still have working program code (**) to create working NMEA sentences.

Would that help?

Markus

(*) I don't really believe myself in "not too much" effort. :mrgreen: But the source code is all there. It just needs merging and a little debugging.

(**) Working back then... :P
Member
Registered: May 2009
Posts: 241
Hi Markus!

Aaaah, of course, I remember your small program for PS1: I have been using it quite a lot, feeding a Jeppesen program to get real-time aircraft position on enroute charts, it was great!
I no longer use that program (charts waaaayyy outdated, and needed an expensive monthly subscription), but sure getting NMEA output could help, maybe with real GPS units?
_______________
Pierre, LFPG
Member
Registered: May 2009
Posts: 479
Location: EFTO
Moi,

after finding and employing two more nifty tools (a GPS simulator and an NMEA analyzer), it looks now as if the coordinates in the AdaptPSX output are all too large by a factor of 100.
(For many variables, PSX sends values multiplied by a 10^x constant; and the data consumer has then to divide accordingly, to get back to the proper units.)

E.g. this (sent from AdaptPSX, and with lines already split manually, see above) will not work in Google Earth or the other NMEA consumers I have:
$GPGGA,132931,600000.112,N,240000.442,E,1,08,0.0,11374,M,0,M,,*41
$GPRMC,132931,A,600000.112,N,240000.442,E,22433,090.00,160414,-7.0,,*2B

but this will (coordinates edited manually):
$GPGGA,132931,6000.112,N,2400.442,E,1,08,0.0,11374,M,0,M,,*41
$GPRMC,132931,A,6000.112,N,2400.442,E,22433,090.00,160414,-7.0,,*2B

This also agrees with the NMEA record definition where latitude should be DDMM.MMM... and longitude DDDMM.MM... (with D being the digits of the integer degree, and M those of the decimal minute).

As before, I can test this only with the NMEA output captured in a file.
Obviously, to fix the "live" data stream, a patch of the AdaptPSX source code will be needed, for which we'll require John's help.

There may be other issues, too, but I think those should be tackled only after the present one has been solved.

Cheers,
Martin00
« Last edit by martin on Tue, 17 Mar 2015 14:15:48 +0000. »
Moderator
Registered: May 2009
Posts: 5140
Moin.

martin wrote
(For many variables, PSX sends values multiplied by a 10^x constant; and the data consumer has then to divide accordingly, to get back to the proper units.)

When this muliplication is applied, it is applied to integers only; to get more precision in a compact format without "endless" floating points.

The lat/lon output of the aircraft position, however, comes in 64 bit floats, hence without multiplication. The 64 bit floats are necessary to keep PSX instances in sync down to the millimeter.


Cheers,

|-|ardy
Member
Registered: Dec 2009
Posts: 334
Location: KTPA
AdaptPSX serves an important need and from my understanding does it brilliantly.

For the rest of us on a quest to run PSX alone there is a need for a client that does 2 things. DIRECTLY (without Comm port HW) outputs PSX position to Google Earth (Pro) and allows for VATSIM connectivity. It is my ardent hope that this can be accomplished. Seeing the talent/knowledge level of those on this Fora, I remain optimistic!

Best- Carl
Member
Registered: May 2009
Posts: 479
Location: EFTO
cavaricooper wrote
DIRECTLY (without Comm port HW) outputs PSX position to Google Earth (Pro)

This can indeed be accomplished (even with the non-Pro GE), as I have now tested. No extra hardware required; you only have to install a kind of "virtual serial port", but it's not difficult. (I'll post links and instructions later).

At the moment, the only obstacle is that there seems to be a minor glitch in how AdaptPSX formats the NMEA records ("sentences"); so GE and other GPS applications don't quite understand them. It should be easy to fix, though (said the man who didn't have to do it... :D).
Other NMEA data may still present other issues, but that remains to be seen.

Cheers,
Martin
Member
Registered: Dec 2009
Posts: 334
Location: KTPA
Martin-

We wait with fingers x'ed :)

Jeroen-

Should your workload permit, a simple networkable PSX VATSIM client would be greatly appreciated!

Best- C

Page: 1

Old 744 Forum is powered by UseBB 1 Forum Software