draken152 Posted November 2, 2017 Share Posted November 2, 2017 Hi Guys, I want to change max and min read value of potentiometer in DCS bios (so simply change angle of active movement). Have anyone experience with this ??? It should be done with map function like here, but I have hard time to find right syntax:music_whistling:... Can someone help pls :helpsmilie: [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
draken152 Posted November 29, 2017 Author Share Posted November 29, 2017 Anyone with advice pls:helpsmilie: [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
draken152 Posted December 1, 2017 Author Share Posted December 1, 2017 I have tried map function but without success.... #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ DcsBios::Potentiometer oxyFlowValve("OXY_FLOW_VALVE", A0); void setup() { DcsBios::setup(); } void loop() { map(A0, 0, 1023, 500, 600); DcsBios::loop(); } [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
jrsteensen Posted December 1, 2017 Share Posted December 1, 2017 Haven't actually done this, but check the Calibration page: https://www.arduino.cc/en/Tutorial/Calibration OpenHornet F/A-18C 1:1 SimPit Website :: DCS Thread Link :: Discord :: Github :: Link to comment Share on other sites More sharing options...
draken152 Posted December 2, 2017 Author Share Posted December 2, 2017 Thx:). This will only automaticaly change the max min numbers for map function. But how to get map function working with DCSBios code??? Then it doesnt matter if you put max-min automaticaly or manualy... [sIGPIC][/sIGPIC] Building FW190D pit ,,To Dora with love" http://forums.eagle.ru/showthread.php?t=132743 Link to comment Share on other sites More sharing options...
Recommended Posts