Jump to content

DCS bios change max and min read value of potentiometer i


draken152

Recommended Posts

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

  • 4 weeks later...

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

  • Recently Browsing   0 members

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