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

Mathematical error in fnc_calculateAirDensity #5092

Closed
ChMaverickCh opened this issue Apr 18, 2017 · 1 comment
Closed

Mathematical error in fnc_calculateAirDensity #5092

ChMaverickCh opened this issue Apr 18, 2017 · 1 comment

Comments

@ChMaverickCh
Copy link

Arma 3 Version: 1.68.141205 stable
CBA Version: 3.2.1.170227
ACE3 Version: 3.9.1

Mods:

- CBA_A3
- ace

Description:

  • Mathematical calculation error in ACE3/addons/weather/functions/fnc_calculateAirDensity.sqf: the Saturation vapor pressure _pSat calculated in line 26 is in Millibar insted of Pascal(can also be seen in stated source for theory in comment on line 25). Since 1mbar = 1hPa = 100Pa, the pressure is of by a factor of 100. following in very inacurate air densities which in turn has a impact on things like mortar ballistic curves.

Steps to reproduce:

  • Read the code (ACE3/addons/weather/functions/fnc_calculateAirDensity.sqf) on line 26;
    Where did the issue occur?
  • Git Repo
@PabstMirror
Copy link
Contributor

These units are very confusing, good find.
Should have this fixed in 3.10

Ref #4951
Fix PR: #4956

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