Jump to content
Sign in to follow this  
Hampster

Wind datarefs available?

Recommended Posts

I am currently making an *unnamed* and *awesome* speed record sailboat for X-Plane, but I have hit a few problems!

 

I would like to be able to adjust the wind DIRECTION and SPEED from inside my cockpit. I know I can do this by applying a dataref to a generic rheostat (like some can effect the POV or time) but I can only find datarefs that display the data, not change it...

 

Help?

Edited by Hampster

Share this post


Link to post
Share on other sites

Last time I checked the datarefs for wx were writable, but they had strange naming conventions.

 

Can you post the names of the drefs you've already looked at?

Share this post


Link to post
Share on other sites

Sure, I hope these will do, I do not know much about this stuff!

 

To display the wind speed I used: sim/weather/wind_speed_kt

 

To display the wind direction i used: sim/weather/wind_direction_degt

Share this post


Link to post
Share on other sites

X-Planes weather is controlled by three layers of values.

 

The dataref's you're trying to use are an "aircraft local" interpretation of the layers.

 

Use these to "set" the weather:

 

sim/weather/

wind_altitude_msl_m[0]

wind_direction_degt[0]

wind_speed_kt[0]

shear_direction_degt[0]

shear_speed_kt[0]

turbulence[0]

 

 

You will notices that the dataref names contain what looks like array specifiers.

 

These datarefs are definitely NOT arrays, they just have poorly selected names that are a historical artifact of X-Plane.

 

I'm fairly sure the lowest weather layer is controlled by the datarefs that end in [0]. If not, try the others in the set. ([1] and [2])

 

 

Hope that helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×