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

F-86F: Values out of range #374

Open
charliefoxtwo opened this issue Oct 8, 2023 · 0 comments
Open

F-86F: Values out of range #374

charliefoxtwo opened this issue Oct 8, 2023 · 0 comments
Assignees

Comments

@charliefoxtwo
Copy link
Member

charliefoxtwo commented Oct 8, 2023

F-68F values

Util.lua: value -1.000000 is too small for address 12300 mask 4
Util.lua: value -1.000000 is too small for address 12528 mask 65535

12300 mask 4

A4_SIGHT_FIL_SEL Initially, the toggle command didn't work. After using set state 1, the toggle command works and no further errors are logged. I suspect the module initializes the switch at -1 (at least in a hot start)

12528 mask 65535

VVI_VALUE this is one of the legacy gauge values which uses a pretty nasty equation:

(-1319.8 * value ^ 5) + (0.00000005 * value ^ 4) + (4334.8 * value ^ 3) + (0.0000002 * value ^ 2) + (2988.1 * value) + 0.0000001

I suspect this isn't even right as the gauge steps don't appear to be smooth - they're abrupt for each value. 0-1k, 1k-2k, and 2k-6k are are linear and the scale steps abruptly between each range.

DCS-BIOS.log

@charliefoxtwo charliefoxtwo self-assigned this Oct 8, 2023
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

2 participants