nosempre Posted June 17, 2013 Report Share Posted June 17, 2013 Hello, I am using FSUIPC to get pitch, roll and yaw values from FSX. But the data flow which coming through FSUIPC is not smooth. For example; when I do nose up aircraft 0 degrees to 45 degrees suddenly, coming data like 3 ,5,10,15,45 degrees. I supposed to get more smooth data like 1,2,3,4,5,6....45 degrees. Is there any way to get data more smoothly ? Thanks Note: I wrote a sample application which use simconnect sdk directly, everything is OK. Link to comment Share on other sites More sharing options...
Pete Dowson Posted June 17, 2013 Report Share Posted June 17, 2013 I am using FSUIPC to get pitch, roll and yaw values from FSX. But the data flow which coming through FSUIPC is not smooth. For example; when I do nose up aircraft 0 degrees to 45 degrees suddenly, coming data like 3 ,5,10,15,45 degrees. I supposed to get more smooth data like 1,2,3,4,5,6....45 degrees. Is there any way to get data more smoothly ? How often are you polling? Note: I wrote a sample application which use simconnect sdk directly, everything is OK. FSUIPC uses that same interface. It is a "conversion layer" to adapt SimConnect to the FSUIPC interface, for compatibility with programs written for FS2004 and all the way back to FS98. SimConnect is a subscription system where you ask for data when it changes, and it supplies it. The FSUIPC interface is a synchromnous system -- you ask for it when you want it and it replies with the last value it received from SimConnect. If you are using the values for real-time actions you would also need the data time along with the data so you can adjust for the different periods between each reading. The time data is supplied in offset 0588 with flags in 0584 indicating which of these offsets were changed at that time: Offset 0560 latitude Offset 0568 longitude Offset 0570 altitude Offset 0578 pitch Offset 057C bank Offset 0580 heading This way folks have been able to achieve good smoothness. Of course if you are only aiming at FSX and Prepar3D, why are you using FSUIPC in any case? I tend to expect all such applications to be using SimConnect directly really. Regards Pete Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now