跳转到内容

UBot Wind Settings

C++
FUBotWindSettings
模块
UBotAerial · UBotAerial 0.1.0
节点
Break · Make
头文件
Source/UBotAerial/Public/UBotAerialTypes.h

风:恒定部分加阵风。阵风是相位由种子决定的正弦之和,同样的设置在同样的仿真时间给出同样的风。

字段类型蓝图说明
Constant Velocity Meters Per SecondConstantVelocityMetersPerSecondVector读写世界系恒定风速,单位 m/s,方向是空气移动的方向。
Gust Standard Deviation Meters Per SecondGustStandardDeviationMetersPerSecondVector读写每个世界轴阵风的标准差,单位 m/s;0 关闭阵风。
Gust Correlation Time SecondsGustCorrelationTimeSecondsFloat读写阵风的典型持续时间,单位 s,越长越平缓。默认 2 s,不小于 0.05 s。
SeedSeedInteger读写阵风的种子,种子相同则阵风相同。

拆分结构体 · Break:FUBotWindSettings

把 UBot Wind Settings 拆成恒定风速、阵风标准差、阵风相关时间和种子。

引脚方向类型说明
UBot Wind Settings输入UBot Wind Settings结构体
Constant Velocity Meters Per Second输出VectorSteady wind velocity in the world frame, m/s (the direction the air moves).
Gust Standard Deviation Meters Per Second输出VectorStandard deviation of the gusts per world axis, m/s. Zero turns gusts off.
Gust Correlation Time Seconds输出FloatTypical duration of a gust, s. Longer is smoother.
Seed输出IntegerSeed of the gust pattern.

构造结构体 · Make:FUBotWindSettings

用各字段组装一个 UBot Wind Settings。

引脚方向类型默认值说明
Constant Velocity Meters Per Second输入Vector0.000000,0.000000,0.000000Steady wind velocity in the world frame, m/s (the direction the air moves).
Gust Standard Deviation Meters Per Second输入Vector0.000000,0.000000,0.000000Standard deviation of the gusts per world axis, m/s. Zero turns gusts off.
Gust Correlation Time Seconds输入Float2.0Typical duration of a gust, s. Longer is smoother.
Seed输入Integer0Seed of the gust pattern.
UBot Wind Settings输出UBot Wind Settings结构体