lesthegrngo Posted September 13, 2022 Posted September 13, 2022 All, I've asked this question before in a thread but want to try and get an answer Is there any way of recording the DCS-Bios output data so that it can be used to diagnose issues for gauges and lights etc? It seems that analogue type outputs, particularly for fast moving gauges is not a smoothed output, resulting in less than smooth gauge movement. However since I can't look at the data offline, I am only assuming that it is so If the data could be recorded and exported to the likes of excel, it would be easy to see how the data plots, which would help in understanding it Cheers Les
Blue73 Posted September 19, 2022 Posted September 19, 2022 (edited) Hi Les, you could write a simple smoothing/velocity function before sending to your gauge/servo? Put this in your Loop function, lower fTimeInc to smooth out the response but will react more slowly. g_fGaugeValueOut = g_fGaugeValueOut + ( fSimValueIn - g_fGaugeValueOut ) * fTimeInc; Define g_fGaugeValueOut globally. fTimeInc small values 0->0.001 range. cheers John Edited September 19, 2022 by Blue73
lesthegrngo Posted September 20, 2022 Author Posted September 20, 2022 Thanks - I did try a similar smoothing attempt, although it wasn't the code you used above. My attempt certainly didn't make any difference, though it's certainly worth trying your code Cheers Les
Recommended Posts