hossamzayed Posted September 2, 2015 Posted September 2, 2015 Hi I'm trying to build a sim pit based on DCS , and I have read the DCS BIOS documentation , but couldn't quite understand how to get simple row data from DCS like pitch and roll. Below is a standard arduino DCS code. I just want to know what to write in the dotted space in front of the pitch and roll to get their values from DCS. Thank you #include <DcsBios.h> #include <Servo.h> DcsBios:: ProtocolParser parser; void setup() { Serial.begin(9600); } void loop() { // feed incoming data to the parser while (Serial.available()) { parser.processChar(Serial.read()); } double roll = ................... ; double pitch = ................... ; // poll inputs DcsBios:: PollingInput::pollInputs(); } void onDcsBiosWrite(unsigned int address, unsigned int value) { }
toxaq Posted September 2, 2015 Posted September 2, 2015 I've not played alot with it but onDcsBiosWrite is where you can access raw values if you need them. Look at the configuration files page in your browser, there's a simple and advanced mode. Advanced mode gives you the code you need to copy and paste into onDcsBiosWrite to access the raw value, from there it's up to you how you integrate the value.
Recommended Posts