-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
P-51D/ACCELEROMETER_VALUE not working for negative values #248
Comments
why not simply make a float out of it? but i have to look how this is handled in the model itself. |
There is
|
This is one of the oldest modules. I never did something like this Code and also had nobody ask for it. It was there and I have left it there |
This sort of thing appears in a few places. I agree it doesn't have much value. We can remove them and replace them with empty placeholders in the memory map so it doesn't mess up the addresses for everybody else if you want. dcs-bios/Scripts/DCS-BIOS/lib/AJS37.lua Lines 350 to 401 in 9ad8630
dcs-bios/Scripts/DCS-BIOS/lib/Bf-109K-4.lua Lines 209 to 306 in 9ad8630
dcs-bios/Scripts/DCS-BIOS/lib/F-86F Sabre.lua Lines 339 to 461 in 9ad8630
dcs-bios/Scripts/DCS-BIOS/lib/modules/aircraft_modules/P-51D.lua Lines 172 to 284 in 9ad8630
|
@WarLord211 what would you like to do here - remove them, or leave them? If we leave them, what would you like to do about the ones that don't work as expected, like the P-51D |
stay with what work. delete what not work, without placeholders the following items are made by me without requests. |
…lue controls Adds a control for defining gauge values, which are used in some older aircraft.
…lue controls Adds a control for defining gauge values, which are used in some older aircraft.
…261) Adds a control for defining gauge values, which are used in some older aircraft.
The output for
ACCELEROMETER_VALUE
in the P-51 is an integer representation of the g value on the accelerometer. However, bios does not support sending negative values, so this will never send anything below zero. Additionally, bios can only send whole integer values, which are not entirely useful here as the integer range of the gauge is fairly small (-5 through +12), with the operational range of the aircraft smaller still.Code in question:
dcs-bios/Scripts/DCS-BIOS/lib/modules/aircraft_modules/P-51D.lua
Lines 280 to 284 in 9ad8630
My suggestion here would be to drop the
-5
offset and change the multiplier to17000
. This would give much more granularity to the gauge. The end user would have to do the math on their end to calculate the actual G value ((value / 1000) - 5
) but at least they would be able to get a more useful value out of it, and negative values wouldn't simply report as 0.The text was updated successfully, but these errors were encountered: