Jump to content

Lucky53

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Lucky53

  1. Alright, thanks for the help guys! I got it to work at a different pc with a DCS Steam game. In my own simpit the exact same code on the exact same Arduino Mega board gives no movement at all. Any thoughts on this?? It really drives me crazy #include <Servo.h> /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ DcsBios::ServoOutput voltE (0x752e,2, 544, 2400, [](unsigned int newValue) -> unsigned int { return map(newValue, 0, 43089, 900, 1500); }); DcsBios::ServoOutput voltU (0x752c, 3, 1500, 600, [](unsigned int newValue) -> unsigned int { return map(newValue, 0, 43089, 600, 1500); }); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
  2. Hello, focussing on the servo problem for now: got the library servo.h installed and the sketch succesfully uploaded to the board. Did not change the values but still nothing is happening. My code is here (F/A18C E volts gauge) Can someone perhaps show their code as an example? Many thanks in advance #include <Servo.h> /* Tell DCS-BIOS to use a serial connection and use interrupt-driven communication. The main program will be interrupted to prioritize processing incoming data. This should work on any Arduino that has an ATMega328 controller (Uno, Pro Mini, many others). */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* paste code snippets from the reference documentation here */ DcsBios::LED lhAdvNoGo(0x740a, 0x0020, A0); DcsBios::LED lhAdvGo(0x740a, 0x0010, A1); DcsBios::LED lhAdvRBleed(0x7408, 0x1000, A2); DcsBios::LED lhAdvLBleed(0x7408, 0x0800, A3); DcsBios::LED lhAdvStby(0x7408, 0x4000, A4); DcsBios::LED lhAdvSpdBrk(0x7408, 0x2000, A5); DcsBios::LED lhAdvRec(0x740a, 0x0001, A6); DcsBios::LED lhAdvLBarRed(0x7408, 0x8000, A7); DcsBios::LED lhAdvXmit(0x740a, 0x0004, A8); DcsBios::LED lhAdvLBarGreen(0x740a, 0x0002, A9); DcsBios::LED lhAdvAspjOh(0x740a, 0x0008, A10); DcsBios::LED masterCautionLt(0x7408, 0x0200, A11); DcsBios::Switch2Pos masterCautionResetSw("MASTER_CAUTION_RESET_SW", A12); DcsBios::LED fireExtBtn(0x740e, 0x0001, A13); DcsBios::Switch2Pos ifeiModeBtn("IFEI_MODE_BTN", 53); DcsBios::Switch2Pos ifeiQtyBtn("IFEI_QTY_BTN", 52); DcsBios::Switch2Pos ifeiUpBtn("IFEI_UP_BTN", 50); DcsBios::Switch2Pos ifeiDwnBtn("IFEI_DWN_BTN", 51); DcsBios::Switch2Pos ifeiZoneBtn("IFEI_ZONE_BTN", 49); DcsBios::Switch2Pos ifeiEtBtn("IFEI_ET_BTN", 48); DcsBios::Switch3Pos selectHmdLddiRddi("SELECT_HMD_LDDI_RDDI", 46, 47); DcsBios::Switch3Pos selectHudLddiRddi("SELECT_HUD_LDDI_RDDI", 44, 45); DcsBios::Switch3Pos modeSelectorSw("MODE_SELECTOR_SW", 42, 43); DcsBios::PotentiometerEWMA<5, 128, 5> ifei("IFEI", A15); DcsBios::ServoOutput voltE(0x752e,2, 544, 2400); void setup() { DcsBios::setup(); } void loop() { DcsBios::loop(); }
  3. Hello all have been busy with interfacing my F/A18C cockpit. I run DCS BIOS with Arduino mega boards Now I try to connect a 10k potentiometer. Connected black to GND, red to 5V and yellow to an analog pin. Copied the code from DCS BIOS and assigned the correct PIN number to the pot. This doesn't seems to work. Do I have to add something? Same story for the servo's. Does it require an additional piece of code. Thanks
  4. Thanks!! That helped me a lot. I'm gonna give it a try.
  5. Hi guys. I'm quite new to this forum and maybe it is not the right thread but is there an internal view available without virtual cockpit. I thought I'd seen something like a 180 degr view with wings and HUD visual but no cockpit, but I can't find it anymore. Anybody? I think it is special developed for home cockpit builders with a wide angle view system (projectors). Thanks
×
×
  • Create New...