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();
}