Hiya guys, Fred here.
I'm trying to get the F-16 RPM gauge working, but I'm so lost when it comes to the coding thing..
I have this code sent to the Arduino card:
#define DCSBIOS_IRQ_SERIAL
#include <Servo.h>
#include "DcsBios.h"
/* paste code snippets from the reference documentation here */
DcsBios::ServoOutput engineTachometer (0x44d4,8, 544, 2400, [](unsigned int newValue) -> unsigned int {
return map(newValue, 0, 35000, 544, 2400);
});
void setup() {
DcsBios::setup();
}
void loop() {
DcsBios::loop();
}
But as soon as I send it to the card, the gauge starts running continously - backwards....
I then connect the card to DCS-BIOS, fire up DCS, jump into my F-16 (Cold Start) and the gauge should read 0 right?...Instead the Gauge turns direction and starts spinning faster.
Could someone please help me understand the code and what I might have done wrong in it?
I've tried to read up on the forums here, and tried my best to mimic the answers given, but to no avail...
Could I have missed something in the setup of DCS-BIOS?
Please someone help me...I'm totally in the dark here..
Best,
Fred