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

Support for different rain datarefs #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nico87
Copy link

@nico87 nico87 commented Feb 7, 2019

Some X-Plane plugins, such XEnviro, use sim/weather/rain_percent instead of sim/weather/precipitation_on_aircraft_ratio.
Directly providing the dataref as const char* via parameter/struct was not possible as fdr_find only accept literals. Moreover, the dataref must be a ratio. That is, some kind of validation would be required.

  • A new librain_init_opt export has been added
  • Using the librain_opt_t struct it is now possible to switch the rain dataref in use
  • Ability to support more rain datarefs in the future
  • librain_init works like before; no compatibility issues are expected with present implementations

* A new librain_init_opt export has been added
* Using the librain_opt_t struct it is now possible to switch the rain dataref in use
* Ability to support more rain datarefs in the future
@rmuehl rmuehl mentioned this pull request Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant