DSoldano Posted April 3, 2022 Posted April 3, 2022 I've got my UHF Radio working except for a strange problem with my rotary encoders. They are the standard 4 step per detent that DCS BIOS expects and normally corrects for. However, they jump by 4 values per detent. If I change the preset channel by 1 detent it actually jumps by 4 (from 1 to 5 for example). If I rotate the encoder slowly, I can watch it single step between detents, ending up 4 values higher (or lower depending on rotation direction) at the detent stop. Everything else works just fine. Anyone have any ideas? I'm just using the standard code snippets from the DCS BIOS Reference. DcsBios::RotaryEncoder uhfPresetSel("UHF_PRESET_SEL", "DEC", "INC", 15, 14); Dominick
DSoldano Posted April 4, 2022 Author Posted April 4, 2022 Figured it out. Encoder.h had the default set to 1 step per detention rather than 4. Must have been set that way when I downloaded the Arduino library because I never changed it.
bessta Posted February 21, 2024 Posted February 21, 2024 On 4/4/2022 at 11:01 AM, DSoldano said: Figured it out. Encoder.h had the default set to 1 step per detention rather than 4. Must have been set that way when I downloaded the Arduino library because I never changed it. hi how did you change it?
No1sonuk Posted February 22, 2024 Posted February 22, 2024 19 hours ago, bessta said: hi how did you change it? See example 2 here: https://github.com/DCS-Skunkworks/dcs-bios-arduino-library/wiki/RotaryEncoder
Recommended Posts