Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCS-BIOS unable to adjust ground radar display knobs #647

Open
hurricanenz opened this issue Apr 14, 2024 · 2 comments
Open

DCS-BIOS unable to adjust ground radar display knobs #647

hurricanenz opened this issue Apr 14, 2024 · 2 comments
Assignees

Comments

@hurricanenz
Copy link

hurricanenz commented Apr 14, 2024

DCS-BIOS version
0.8.0 [2.9.3]

DCS-BIOS Control
DcsBios::PotentiometerEWMA<5, 256, 5> radarAngle("RADAR_ANGLE", A3);

DcsBios::Switch2Pos radarAoacomp("RADAR_AOACOMP", 10);

DcsBios::AnalogMultiPos radarMode("RADAR_MODE", A2, 5);

DcsBios::PotentiometerEWMA<5, 256, 5> radarVol("RADAR_VOL", A1);

Describe the bug
When changing an input for the Radar panel to all of the above control references, the game will change visually, dial will rotate and switch will change position, in-game sound of change will happen but will not actually change input state.

To Reproduce
set position of mode switch to A/G{last position) while on ground power on. Dial will move to A/G but radar display will not change. I then can click once right mouse button and the radar will start.

This is true for the radar angle , radar AOAcomp, radar mode and radar volume.

I can set the values through BORT by increasing Radar Mode/input/fixed_step/ INC. I change from off position use the INC button and the Output value will change to 4 and 100%, in cockpit it will show the position of the dial at A/G but the radar screen will be in a off state.

Expected behavior
The input change to match in cockpit operations

Additional context
I am using Arduino Nano with other outputs configured and functional. I have tested on a new Nano using only the code relevant to the radar.
I have a Armament panel that works purely off DCS bios and have no issues with similar code.

Software Information (please complete the following information):

  • DCS Version: [DCS 2.9.3 Open Beta latest]
  • A-4E Version latest release.

I have posted this in bugs on DcsBios github see linked with their comments and troubleshooting methods.
Post

DCS-Skunkworks/dcs-bios#560

@callmepartario callmepartario changed the title Radar controls using Dcs-bios not changing state DCS-BIOS unable to adjust ground radar display knobs May 9, 2024
@charliefoxtwo
Copy link

Any chance this is related to these lines?
https://github.com/heclak/community-a4e-c/blob/a83948d86ea234b9143a97d2cbd2f8f3a099987c/A-4E-C/ExternalFM/FM/Radar.cpp#L130-L132

I don't work in C++ so I wasn't sure how to compile and test myself, but it seems like the other commands (which have keyboard keybind support) call ed_cockpit_dispatch_action_to_device, but radar_mode doesn't
https://github.com/heclak/community-a4e-c/blob/a83948d86ea234b9143a97d2cbd2f8f3a099987c/A-4E-C/ExternalFM/FM/Radar.cpp#L180-L203

@charliefoxtwo
Copy link

@callmepartario could the above be the source of the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants