跳转到内容

UBot Rotor Spec

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

多旋翼的一个旋翼:位置、旋向和电机参数。

字段类型蓝图说明
Position MetersPositionMetersVector读写旋翼轴心在机体系中的位置,单位 m(UE 坐标轴:X 向前,Y 向右,Z 向上)。
Spin DirectionSpinDirectionEUBot Rotor Spin Direction枚举读写从上方看的旋向。机体受到方向相反的反扭矩。
Thrust CoefficientThrustCoefficientFloat (double)读写推力系数,推力 = 系数 × 转速²,单位 N/(rad/s)²。默认 5.84e-6。
Torque CoefficientTorqueCoefficientFloat (double)读写扭矩系数,反扭矩 = 系数 × 转速²,单位 N·m/(rad/s)²。默认 9.344e-8。
Max Speed Radians Per SecondMaxSpeedRadiansPerSecondFloat (double)读写旋翼最大转速,单位 rad/s。默认 1100 rad/s。
Motor Time Constant SecondsMotorTimeConstantSecondsFloat (double)读写电机转速的一阶时间常数,单位 s。默认 0.02 s。

拆分结构体 · Break:FUBotRotorSpec

把 UBot Rotor Spec 拆成位置、旋向、推力系数、扭矩系数、最大转速和电机时间常数。

引脚方向类型说明
UBot Rotor Spec输入UBot Rotor Spec结构体
Position Meters输出VectorPosition of the rotor hub in the body frame, m (UE axes: X forward, Y right, Z up).
Spin Direction输出EUBot Rotor Spin Direction枚举Spin direction seen from above. The body feels the opposite reaction torque.
Thrust Coefficient高级输出Float (double)Thrust = this * speed², N/(rad/s)².
Torque Coefficient高级输出Float (double)Reaction torque = this * speed², N·m/(rad/s)².
Max Speed Radians Per Second高级输出Float (double)Largest rotor speed, rad/s.
Motor Time Constant Seconds高级输出Float (double)First-order time constant of the motor speed, s.

构造结构体 · Make:FUBotRotorSpec

用各字段组装一个 UBot Rotor Spec。

引脚方向类型默认值说明
Position Meters输入Vector0.000000,0.000000,0.000000Position of the rotor hub in the body frame, m (UE axes: X forward, Y right, Z up).
Spin Direction输入EUBot Rotor Spin Direction枚举ClockwiseSpin direction seen from above. The body feels the opposite reaction torque.
Thrust Coefficient高级输入Float (double)0.000006Thrust = this * speed², N/(rad/s)².
Torque Coefficient高级输入Float (double)0.0Reaction torque = this * speed², N·m/(rad/s)².
Max Speed Radians Per Second高级输入Float (double)1100.0Largest rotor speed, rad/s.
Motor Time Constant Seconds高级输入Float (double)0.02First-order time constant of the motor speed, s.
UBot Rotor Spec输出UBot Rotor Spec结构体