TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
100 stars 25 forks source link

`sim/weather/wind_direction_degt` and `wind_speed_kt` deprecated since XP12.00rc1 #247

Closed TwinFan closed 1 year ago

TwinFan commented 1 year ago

Describe the bug

The two datarefs sim/weather/wind_direction_degt and wind_speed_kt appear to be deprecated since XP12.00rc1, since its introduction of new weather dataRefs.

To Reproduce

Start LiveTraffic under XP12.00rc1.

Expected behavior

Shall use supported datarefs. Wind information is used to calculate plane heading in cross wind situations.

Technical Info

Log.txt

[LiveTraffic/lin_x64/LiveTraffic.xpl]: Dataref 'sim/weather/wind_direction_degt' has been replaced. Please use the new name.
[LiveTraffic/lin_x64/LiveTraffic.xpl]: Dataref 'sim/weather/wind_speed_kt' has been replaced. Please use the new name.

DataRefs.txt

In X-Planes's DataRefs.txt, these two dataRefs are indeed marked deprecated as of XP12.00rc1, but no clear replacement is mentioned:

sim/weather/wind_direction_degt float   n   degrees [0-359]            The effective direction of the wind at the plane's location. REPLACED - Use the replacement instead.
sim/weather/wind_speed_kt   float   n   m/s >= 0. The effective speed of the wind at the plane's location. WARNING: this dataref is in meters/second - the dataref NAME has a bug.  REPLACED - Use the replacement instead.

Potential replacement candidates:

sim/weather/region/wind_speed_msc   float   y   kts >= 0. The wind speed in knots.  
sim/weather/region/wind_direction_degt  float   y   degrees [0 - 360] The direction the wind is blowing from in degrees from true north clockwise.