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) { }
Warhog Posted September 3, 2015 Posted September 3, 2015 I was at the x-plane forum today watching your video on replicating roll and pitch using small stepper motors and a Mega. That was an excellent demonstration. Could you post your code for that in this thread. I'm interested in seeing how you handled the data from the flight sim and create the movement with the stepper motors to be exactly the same as the sim. I'm sorry I can't help you with your request as I'm still very much a novice at programming. But seeing how others write code helps me in understanding the process. BTW, that sticky on DCS-BIOS has a lot of good info in it except it is a rather long read. But it may help you find what your looking for. It helped me understand more about how you can use real world components and Arduino to make things work out side of DCS. And welcome to the forum. Regards John W aka WarHog. My Cockpit Build Pictures... My Arduino Sketches ... https://drive.google.com/drive/folders/1-Dc0Wd9C5l3uY-cPj1iQD3iAEHY6EuHg?usp=sharing WIN 10 Pro, i8-8700k @ 5.0ghz, ASUS Maximus x Code, 16GB Corsair Dominator Platinum Ram, AIO Water Cooler, M.2 512GB NVMe, 500gb SSD, EVGA GTX 1080 ti (11gb), Sony 65” 4K Display VPC MongoosT-50, TM Warthog Throttle, TRK IR 5.0, Slaw Viper Pedals
Recommended Posts