Skip to content

Commit

Permalink
- removed WeatherDynamics and WeatherVersion enums
Browse files Browse the repository at this point in the history
- added TrackWetness enum
- vars.txt updated
  • Loading branch information
kutu committed Mar 14, 2024
1 parent 950d148 commit d6bd20e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
22 changes: 10 additions & 12 deletions irsdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions vars.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d6bd20e

Please sign in to comment.