Jump to content

Recommended Posts

Posted

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

Posted (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 by Blue73
Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...