69 constexpr
float kMinPeriodFloor = 3.0f;
76 if (windMs <= wLow || wHigh <= wLow)
80 else if (windMs >= wHigh)
86 const float t = (windMs - wLow) / (wHigh - wLow);
87 period = pLow + t * (pHigh - pLow);
89 return std::max(period, kMinPeriodFloor);
float myRoughPeriodSeconds
Fog signal cycle period (seconds) at the rough-sea anchor.
Definition: DtFogWaveAction.h:48
Wave-action fog signal cadence configuration.
Definition: DtFogWaveAction.h:28
float myRoughWindMs
Wind speed (m/s) at the rough-sea anchor. Default 15.0.
Definition: DtFogWaveAction.h:42
float myCalmWindMs
Wind speed (m/s) at the calm-sea anchor. Default 0.0.
Definition: DtFogWaveAction.h:39
bool myUseLocalWeather
When true, the runtime resolves wind speed via DtLocalWeatherQuery::getLocalWind at the observer posi...
Definition: DtFogWaveAction.h:53
float myCalmPeriodSeconds
Fog signal cycle period (seconds) at the calm-sea anchor.
Definition: DtFogWaveAction.h:45
bool myEnabled
When false, the runtime treats this configuration as absent and falls back to the model's static SIGS...
Definition: DtFogWaveAction.h:36
float periodForWindSpeed(const DtFogWaveAction &cfg, float windMs)
Compute the fog signal period for a given wind speed.
Definition: DtFogWaveAction.h:67