PDA

View Full Version : Fs2phidgets & textlcd



adebruijn
01-18-2009, 03:24 PM
Hello, I have installed a textlcd in my aft-overhead functioning as the IRS display.

I cannot figure out how to convert the 0560 (lat. offset in fsx) and the 0568 (lon. offset) for displaying right numbers in degrees on my phidgets textlcd.

Is there anybody who can help me and give me a push in the right direction ?

thanks

André

smithrb23
01-23-2009, 11:11 PM
Andre

According to the FSUIPC4 Offset Status document that comes with the FSUIPC_SDK you should try reading the 6010 and 6018 offsets to get an easier conversion of Latitude and Longitude.

These are for the GPS and output is in degrees.

When I tried reading the 0560 or 0568 with FSVariable it resulted in a overflow error.

6010 GPS: aircraft latitude, floating point double, in degrees (+ve = N, –ve = S).
6018 GPS: aircraft longitude, floating point double, in degrees (+ve = E, –ve = W).

Rick

CocnutAir
01-25-2009, 12:47 AM
Andre,

You are in luck. The temperature today was 1deg Centigrade.
Too cold to work in my unheated hanger.

I upgraded FSVariable editor and FS2Phidget.
to work with offsets 0560 and 0568.

Sent you an email.
Attached zip contains:

(a) FSVariables4315.ini
Ini file contains two FSVariables:
LATITUDE_IRS and LONGITUDE_IRS

(b) FSVariable207.exe

The Editor has a new check box in the Conversion frame.
i.e. dddmm.m - this will convert a decimal expression to degrees and minutes in DDDMM.M format.

(c) FS2Phidget4316.exe

Assign the FsVariable to TextLCD as usual.

However, with standard formatting will display sign as "+" or "-".
Not to worry - there is a new formatting option:
Precede formatting with a "~" and then either a "N" or "S" for latitude.
Choose either character - does not matter - the program will sort it out.
or
Precede formatting with a "~" and then either a "E" or "W" for longitude.
Choose either character - does not matter - the program will sort it out.

(d) PhidgetTextLCDEmulation4.ini

A working example of above already configured.

Install these files in same folders as your current installation.

Regards,
Alan

adebruijn
02-10-2009, 05:35 PM
hello Alan,

After switching the driver PC to US language/keyboard like you
suggested the altered version works like a charm.

Thank you, I have now the long/lat running in the IRS on my AFT.