Jump to content
The simFlight Network Forums

TCAS Conversion Question ?


Recommended Posts

Hi Pete,

With the following data, could you please help.

Newbie in C++ and C#.

I am using the example UIPC_SDK_SHARP from Scott McCrory.

I have only problems to convert float (LAT,LON & ALT) to the values

showned by TrafficLook.

Airport = EGLL at Local time 06:16:05 first Tcas entry

FSUIPC Version is 2.975

********* WideClient.DLL Log [version 5.50] *********

Date (dmy): 11/06/03, Time 10:18:34.849: Client name is P700

350 Attempting to connect now

420 Connection made okay!

69399 New Client Application: "TrafficLook" (Id=2248)

73235 Monitored LAN data received:

Offset 0E080: || TrafficLook

ID 05 B7 FF FF FFFFB705 || 18666

LAT E5 E4 4D 42 ? || N51 28.3896

LON 0C FA E4 BE ? || W000 27.8498

ALT 63 23 AE 42 ? || 98

HD 89 68 6889 || 001

GS 00 00 0000 || 0

VS 00 00 0000 || 0

TAIL 4E 31 39 34 35 36 00 00 00 00 00 00 00 00 00 00 || N872

COM 85 24 24 85 || 124.85

Thank you in advance

Michel

Link to comment
Share on other sites

I have only problems to convert float (LAT,LON & ALT) to the values showned by TrafficLook.

They need no conversion. They are in standard Intel 32-bit floating point format. Just read then into variables defined as such. I don't know C# or VB, but in C and C++ this is the "float" type.

The Lat/Long are in degrees (with West and South negative, East and North positive), whilst the Altitude is in feet.

This is exactly as documented in the Programmer's Guide, where even a suitable structure declaration for C or C++ is provided. Please check there.

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.