Jump to content
The simFlight Network Forums

10Hz GPS output


Recommended Posts

I'm going to use GPS output functionality of FSUIPC4 for some serious engineering work.
Is 10 Hz output rate available?  Is it precisely 10 samples per second at perfectly equal intervals or are they jittering?

What I need is NMEA messages exactly 10 times per second at equal intervals.  The timestamps should be synchronised with whole seconds, they should look like that (GGA only):
$GPGGA,113750.0...
$GPGGA,113750.1...
$GPGGA,113750.2...
$GPGGA,113750.3...
$GPGGA,113750.4...
$GPGGA,113750.5...

Is it achievable with FSUIPC4?  The FSX simulation engine calculates position, velocity and other parameters at some different, higher rate, but are they going to be properly interpolated for the exact timestamps of the 10Hz output?

Link to comment
Share on other sites

4 hours ago, RaceRalph said:

Is it achievable with FSUIPC4?  The FSX simulation engine calculates position, velocity and other parameters at some different, higher rate, but are they going to be properly interpolated for the exact timestamps of the 10Hz output?

No way, sorry. The CPU is being used by many other threads in the Sim, apart from those used by FSUIPC. The GPS timing is just using a regular Windows timer, but it can't get control until Windows switches to it, and that depends on loadings elsewhere.

If this is critical the only way I can think of is to have an external program running a thread at high or critical priority level, (higher that other programs on the same PC), and whilst reading the data much more often in one of its threads, then doing its own interpolation for the 10Hz transmissions performed in its critical thread. 

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.