跳转到内容

UBot Multirotor Airframe

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

多旋翼的质量、转动惯量、旋翼和阻力。默认是一架 1.5 kg、轴距 450 mm 的四旋翼 X。

字段类型蓝图说明
Mass KilogramsMassKilogramsFloat (double)读写质量,单位 kg。默认 1.5 kg。
Inertia Kilogram Square MetersInertiaKilogramSquareMetersVector读写绕机体 X、Y、Z 轴的主转动惯量,单位 kg·m²。默认 (0.029, 0.029, 0.055)。
RotorsRotorsUBot Rotor Spec结构体数组读写旋翼列表,按电机顺序排列,电机指令使用同样的顺序。
Linear Drag CoefficientsLinearDragCoefficientsVector读写沿机体各轴的线性阻力系数,单位 N/(m/s),速度是相对空气的速度。默认 (0.25, 0.25, 0.30)。
Quadratic Drag CoefficientsQuadraticDragCoefficientsVector读写沿机体各轴的平方阻力系数,单位 N/(m/s)²,速度是相对空气的速度。默认 (0.03, 0.03, 0.05)。
Angular Drag CoefficientsAngularDragCoefficientsVector读写绕机体各轴的旋转阻力系数,单位 N·m/(rad/s)。默认 (0.003, 0.003, 0.005)。
Motor Command MappingMotorCommandMappingEUBot Motor Command Mapping枚举读写归一化电机指令到旋翼转速的映射方式。

拆分结构体 · Break:FUBotMultirotorAirframe

把 UBot Multirotor Airframe 拆成质量、转动惯量、旋翼、三组阻力系数和电机指令映射。

引脚方向类型说明
UBot Multirotor Airframe输入UBot Multirotor Airframe结构体
Mass Kilograms输出Float (double)Mass, kg.
Inertia Kilogram Square Meters输出VectorPrincipal moments of inertia about the body X, Y and Z axes, kg·m².
Rotors高级输出UBot Rotor Spec结构体数组The rotors, in motor order (motor commands use this order).
Linear Drag Coefficients高级输出VectorLinear drag along the body axes, N per m/s of air-relative speed.
Quadratic Drag Coefficients高级输出VectorQuadratic drag along the body axes, N per (m/s)² of air-relative speed.
Angular Drag Coefficients高级输出VectorRotational drag about the body axes, N·m per rad/s.
Motor Command Mapping高级输出EUBot Motor Command Mapping枚举How a normalized motor command maps to rotor speed.

构造结构体 · Make:FUBotMultirotorAirframe

用各字段组装一个 UBot Multirotor Airframe。

引脚方向类型默认值说明
Mass Kilograms输入Float (double)1.5Mass, kg.
Inertia Kilogram Square Meters输入Vector0.029000,0.029000,0.055000Principal moments of inertia about the body X, Y and Z axes, kg·m².
Rotors高级输入UBot Rotor Spec结构体数组The rotors, in motor order (motor commands use this order).
Linear Drag Coefficients高级输入Vector0.250000,0.250000,0.300000Linear drag along the body axes, N per m/s of air-relative speed.
Quadratic Drag Coefficients高级输入Vector0.030000,0.030000,0.050000Quadratic drag along the body axes, N per (m/s)² of air-relative speed.
Angular Drag Coefficients高级输入Vector0.003000,0.003000,0.005000Rotational drag about the body axes, N·m per rad/s.
Motor Command Mapping高级输入EUBot Motor Command Mapping枚举ThrustHow a normalized motor command maps to rotor speed.
UBot Multirotor Airframe输出UBot Multirotor Airframe结构体