dcs-bios-arduino-library
dcs-bios-arduino-library copied to clipboard
[BUG] : DcsBios::Potentiometer min & max values are not limiting the travel of the in-game lever
DCS-BIOS version DCS Unified 2.9.3
DCS-BIOS Control PLT_FLAPS_LEVER when using DcsBios::Potentiometer
Describe the bug
- Using a 100k linear potentiometer on a Leonardo board, connected to Analog port A0
- DcsBios::Potentiometer function being used for the PLT_FLAPS_LEVER and a min & max value of 0 & 500 for F14
- In-game, the flaps lever starts to move from the closed position to the open position. When the open (max travel in-game) is reached, the flap lever quickly snaps to the closed position - the function seems to causing the lever to continuously loop back to the closed position each time the in-game max is reached
To Reproduce
- Arduino code :
#define DCSBIOS_DEFAULT_SERIAL
#include "DcsBios.h"
void setup() {
// the flaps lever at 100% or 65535 is up (flaps up)
DcsBios::Potentiometer pltFlapsLever("PLT_FLAPS_LEVER", A0,false,700,1023);
DcsBios::setup();
}
void loop() {
DcsBios::loop();
}
- fire up DCS-Bios Bridge or the socat cmd file to communicate with the Leonardo port
- Run DCS, Instant Action, F14 tomcat anywhere, in-cockpit, move pot whilst looking at flaps lever
Expected behavior
once the max value is reached, the movement should stop & not loop around
Screenshots
n/a
Additional context