- Messages
- 945
- Country
Hi Everyone,
I have a question about the latency during the SimConnect client-to-server request-response cycle. Namely, when I send a request for Nav data on a user object (Lat Lon Alt Pitch Bank Heading), the response I get is about ~10000 microseconds, which is about 0.01 seconds:
This basically means that the data I got is basically 0.01 seconds old, and it has slightly changed in that time.
Now, for the instrumentation display purposes, this may be trivial. However, if you calculate this error in terms of distance, the positional error for an average passenger jet at a cruise speed is approximately 3 meters. Note, the smaller the speed, the smaller the error is, approaching zero at standstill. Again, for the purpose of instrumentation display at such speeds, this error is trivial.
However, I have a requirement in my code to have a precise, instantaneous positional reading of the aircraft's Nav data, without any errors due to the client-server communication lag, that is, the Nav data reading as it is currently in the sim, not 0.01 seconds later
Any idea how to accomplish this? I am thinking, as an alternate solution, using the lag time and the velocity vector I could predict the new position, but before I start doing that, I'd like to see if there is a way to get instantaneous Nav data from the sim itself.
I have a question about the latency during the SimConnect client-to-server request-response cycle. Namely, when I send a request for Nav data on a user object (Lat Lon Alt Pitch Bank Heading), the response I get is about ~10000 microseconds, which is about 0.01 seconds:
This basically means that the data I got is basically 0.01 seconds old, and it has slightly changed in that time.
Now, for the instrumentation display purposes, this may be trivial. However, if you calculate this error in terms of distance, the positional error for an average passenger jet at a cruise speed is approximately 3 meters. Note, the smaller the speed, the smaller the error is, approaching zero at standstill. Again, for the purpose of instrumentation display at such speeds, this error is trivial.
However, I have a requirement in my code to have a precise, instantaneous positional reading of the aircraft's Nav data, without any errors due to the client-server communication lag, that is, the Nav data reading as it is currently in the sim, not 0.01 seconds later

Any idea how to accomplish this? I am thinking, as an alternate solution, using the lag time and the velocity vector I could predict the new position, but before I start doing that, I'd like to see if there is a way to get instantaneous Nav data from the sim itself.