Jump to content
The simFlight Network Forums

ms5athome

new Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by ms5athome

  1. You could do it by writing a Lua plug in. The Lua COM library provided in FSUIPC will allow you to read the data on a serial port, then you can convert it to the format required by FS and use the IPC library facilities for setting the position, altitude, pitch, bank, and heading. On FSX you can also set the speed at the same time. The example Luas for connecting a master and slave FS over the Network shows the way to use the IPC library for this. There are some supplied examples of COM use too, but currently not for reading position data.

    For GPS output you'd need to ascertain what format it is supplying the data, Possibly NMEA 0183, which is easy enough and well documented on the Internet.

    Note that most GPS's will only supply the data at something like one second intervals, which is good enough for the moving map type application it is really intended for. On FS one update per second will look really jerky, so you'd need to experiment with ways of smoothing it. On FSX you can set the airspeed as wel as the complete attitude of the aircraft, so it might continue well enough between updates, with a little 'jerk' of correction each time it receives a new value. But it would be better to try to extrapolate with extra values computed by the Lua program to give at least 10 updates per second.

    Better smoothing could be obtained by accepting a 1 or 2 second lag on the PC compared to the GPS, buffering two or three incoming values and computing the smooth 10 per second positions for FS.

    Regards

    Pete

    OMG! Not a programmer here, so i guess i'll just leave it alone then.

    Thanks for your quick answer anyway Pete.

  2. Hey guys, Pete:

    I've read a lot about the FSUIPC tool, wonderful stuff. Now i was wondering. Is there any way for input position coordinates using an external GPS via RS-232? I'm trying to fool around with a friend, using his gps to make my FSX fly the same place while flying on his C-172.

    In the case that FSUIPC wont receive this kind of data, do you know about any addon that will do this stuff?

    I know it's a strange topic, but since i'm strange guy, nobody should be surprised! LOL

    Thanks a lot for your time. Looking forward your answer!

    Julian from Argentina

×
×
  • 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.