From d6bd20e9b791cf2380f646d1ab460f6c004ea47c Mon Sep 17 00:00:00 2001 From: kutu Date: Thu, 14 Mar 2024 19:12:22 +0400 Subject: [PATCH] - removed WeatherDynamics and WeatherVersion enums - added TrackWetness enum - vars.txt updated --- irsdk.py | 22 ++++++++++------------ vars.txt | 4 ++-- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/irsdk.py b/irsdk.py index a3cbb57..9e9f66f 100644 --- a/irsdk.py +++ b/irsdk.py @@ -15,7 +15,7 @@ except ImportError: from yaml import SafeLoader as YamlSafeLoader -VERSION = '1.3.4' +VERSION = '1.3.5' SIM_STATUS_URL = 'http://127.0.0.1:32034/get_sim_status?object=simStatus' @@ -257,17 +257,15 @@ class VideoCaptureMode: show_video_timer = 4 # show video timer in upper left corner of display hide_video_timer = 5 # hide video timer -class WeatherDynamics: - specified_fixed_sky = 0 # specified weather / fixed sky - generated_sky_moves = 1 # generated weather / dynamic sky - generated_fixed_sky = 2 # generated weather / fixed sky - specified_sky_moves = 3 # constant weather / dynamic sky - -class WeatherVersion: - classic = 0 # default init in replays prior to W2 being rolled out (no rain) - forecast_based = 1 # usual way to handle realistic weather in W2 - static_test_day = 2 # W2 version of "WEATHER_DYNAMICS_GENERATED_FIXEDSKY" that adds possibility of track water - timeline_based = 3 # a timeline of desired specific events in W2 +class TrackWetness: + unknown = 0 + dry = 1 + mostly_dry = 2 + very_lightly_wet = 3 + lightly_wet = 4 + moderately_wet = 5 + very_wet = 6 + extremely_wet = 7 class IRSDKStruct: diff --git a/vars.txt b/vars.txt index b6e0fec..502cb12 100644 --- a/vars.txt +++ b/vars.txt @@ -291,6 +291,7 @@ TireSetsAvailable How many tire sets are remaining 255 is unlim TireSetsUsed How many tire sets used so far, TrackTemp Deprecated set to TrackTempCrew, C TrackTempCrew Temperature of track measured by crew around track, C +TrackWetness How wet is the average track surface, irsdk_TrackWetness VelocityX X velocity, m/s VelocityX_ST X velocity, m/s at 360 Hz VelocityY Y velocity, m/s @@ -304,8 +305,7 @@ VidCapEnabled True if video capture system is enabled, Voltage Engine voltage, V WaterLevel Engine coolant level, l WaterTemp Engine coolant temp, C -WeatherType Weather dynamics type, irsdk_WeatherDynamics -WeatherVersion Weather version, irsdk_WeatherVersion +WeatherDeclaredWet The steward says rain tires can be used, WindDir Wind direction at start/finish line, rad WindVel Wind velocity at start/finish line, m/s Yaw Yaw orientation, rad