sebpil Posted December 27, 2018 Report Posted December 27, 2018 Hi I have now completed my flight simulator and most of the things work really great. But there is a problem that I have found with the output values from FSUIPC. Am using PMDG 737 NGX and when I am setting the MCP speed to a specific Mach setting most of the values work fine, but sometime FSUIPC sends an output that is 0.739999999999999 instead of 0.74, and that generates a problem on my display since it tries to set the 0.739999999999 value instead of 0.74. This is a problem for several settings on the higher values for the Mach settings. .74, .75 .76 and some more are not setting correct output value. How to correct this problem? Have been looking for a solution pretty long time now but need to ask about this. This is actually the only problem I have with my simulator at this point everything else works great. Am using the Mobiflight solution for my displays and an Arduino Mega 2560 card for my 7 segment displays I use. Anyone know what might cauise a problem here with the incorrect FSUIPC output?
Luke Kolin Posted December 27, 2018 Report Posted December 27, 2018 Why don't you round the number to the nearest .01 Mach? Cheers!
sebpil Posted December 27, 2018 Author Report Posted December 27, 2018 Yes I would like to do that, but how?
Luke Kolin Posted December 27, 2018 Report Posted December 27, 2018 What software is reading from FSUIPC and powering the display? Cheers!
sebpil Posted December 27, 2018 Author Report Posted December 27, 2018 And the problem is solved. Made a mistake in programming Mobiflight which is pretty easy to do. In Compare I had written at first only: ($/10.0) and then it worked to run Mobiflight but with display error. Now it is changed to: Round($/10,0) And everything works great! Just made a test flight as well and no problems any more.
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