主要的Content

6DOF Wind (Quaternion)

Implement quaternion representation of six-degrees-of-freedom equations of motion with respect to wind axes

  • Library:
  • Aerospace Blockset / Equations of Motion / 6DOF

  • 6DOF风(四元)块

描述

The6DOF Wind (Quaternion)的旋转块认为wind-fixed coordinate frame (Xw, Yw, Zw)关于平坦的地球参考框架(Xe, Ye, Ze)。有关风固定坐标框架的更多信息,请参阅Algorithms

Aerospace Blabsset™使用使用标量优先惯例定义的四个四元素。

Limitations

The block assumes that the applied forces act at the center of gravity of the body, and that the mass and inertia are constant.

Ports

Input

展开全部

施加力,指定为三元素矢量。

数据类型:双倍的

应用的力矩,指定为三元素向量。

数据类型:双倍的

Output

展开全部

Velocity in the flat Earth reference frame, returned as a three-element vector.

数据类型:双倍的

Position in the flat Earth reference frame, returned as a three-element vector.

数据类型:双倍的

风转角[银行,飞行路径,标题],以三元素向量返回弧度。

数据类型:双倍的

Coordinate transformation from flat Earth axes to wind-fixed axes, returned as a 3-by-3 matrix.

数据类型:双倍的

风固定框架的速度,作为三元素向量返回。

数据类型:双倍的

攻击角度和侧滑角,以两元素向量返回,以弧度为单位。

数据类型:双倍的

攻击角度的变化速率和侧滑角变化速率,作为两元素向量返回,每秒弧度。

数据类型:双倍的

Angular rates in body-fixed axes, returned as a three-element vector.

数据类型:双倍的

人体固定轴的角加速度,以每秒平方为单位的三元素向量返回。

数据类型:双倍的

Accelerations in body-fixed axes with respect to body frame, returned as a three-element vector.

数据类型:双倍的

Accelerations in body-fixed axes with respect to inertial frame (flat Earth), returned as a three-element vector. You typically connect this signal to the accelerometer.

依赖性

To enable this point, selectInclude inertial acceleration

数据类型:双倍的

Parameters

展开全部

主要的

Input and output units, specified as公制(MK),英语(ft/s的速度), 或者英语(KTS的速度)

Units 军队 Moment Acceleration Velocity Position 大量的 惯性
公制(MK) Newton Newton-meter 每秒米squared 每秒米 仪表 公斤 千克仪表平方
英语(ft/s的速度) Foot-pound 每秒平方 每秒英尺 sl slfoot squared
英语(KTS的速度) Foot-pound 每秒平方 sl slfoot squared

Programmatic Use

Block Parameter:单位
Type:角色向量
值:公制(MK)|英语(ft/s的速度)|英语(KTS的速度)
Default:公制(MK)

大量的type, specified according to the following table.

The简单变量selection conforms to the previously described equations of motion.

Programmatic Use

Block Parameter:mtype
Type:角色向量
值:Fixed|简单变量|自定义变量
Default:简单变量

运动表示方程,根据下表指定。

Representation 描述

季节

Use quaternions within equations of motion.

风角

Use wind angles within equations of motion.

The季节selection conforms to the equations of motion inAlgorithms

Programmatic Use

Block Parameter:rep
Type:角色向量
值:风角|季节
Default:'Wind Angles'

身体在平坦的地球参考框架中的初始位置,指定为三元素矢量。

Programmatic Use

Block Parameter:xme_0
Type:角色向量
值:'[0 0 0]'|三元素向量
Default:'[0 0 0]'

Initial airspeed, angle of attack, and sideslip angle, specified as a three-element vector.

Programmatic Use

Block Parameter:Vm_0
Type:角色向量
值:'[0 0 0]'|三元素向量
Default:'[0 0 0]'

Initial wind angles [bank, flight path, and heading], specified as a three-element vector in radians.

Programmatic Use

Block Parameter:wind_0
Type:角色向量
值:'[0 0 0]'|三元素向量
Default:'[0 0 0]'

初始的身体固定角速率相对于NED框架,以每秒弧度为单位指定为三元素矢量。

Programmatic Use

Block Parameter:PM_0
Type:角色向量
值:'[0 0 0]'|三元素向量
Default:'[0 0 0]'

Initial mass of the rigid body, specified as a double scalar.

Programmatic Use

Block Parameter:mass_0
Type:角色向量
值:'1.0'|双倍的标量
Default:'1.0'

身体的惯性,指定为一个双标量。

Programmatic Use

Block Parameter:inertia
Type:角色向量
值:'eye(3)'|双倍的标量
Default:'eye(3)'

选择this check box to add an inertial acceleration port.

依赖性

To enable theAbeport, select this parameter.

Programmatic Use

Block Parameter:abi_flag
Type:角色向量
值:'off'|'on'
Default:off

状态属性

Assign a unique name to each state. You can use state names instead of block paths during linearization.

  • 要为单个状态分配名称,请在引号之间输入唯一名称,例如'velocity'

  • 要将名称分配给多个状态{'a','b','c'}。Each name must be unique.

  • 如果参数为空(''),未分配名称。

  • 状态名称仅适用于带有名称参数的选定块。

  • 国家数量必须平均分配在州名称的数量之间。

  • You can specify fewer names than states, but you cannot specify more names than states.

    例如,您可以在具有四个状态的系统中指定两个名称。名字适用于前两个状态,第二个名称适用于最后两个状态。

  • 为MATLAB中的变量分配状态名称®工作区,输入无引号的变量。变量可以是字符矢量,单元格数或结构。

Position state names, specified as a comma-separated list surrounded by braces.

Programmatic Use

Block Parameter:xme_statename
Type:角色向量
值:''|逗号分隔清单被牙套包围
Default:''

Velocity state names, specified as a character vector.

Programmatic Use

Block Parameter:Vm_statename
Type:角色向量
值:''|角色向量
Default:''

Incidence angle state name, specified as a character vector.

Programmatic Use

Block Parameter:alpha_statename
Type:角色向量
值:''
Default:''

Sideslip angle state name, specified as a character vector.

Programmatic Use

Block Parameter:Beta_stateName
Type:角色向量
值:''
Default:''

Wind orientation state names, specified as a comma-separated list surrounded by braces.

Programmatic Use

Block Parameter:wind_statename
Type:角色向量
值:''
Default:''

季节vector state names, specified as a comma-separated list surrounded by braces.

Programmatic Use

Block Parameter:quat_statename
Type:角色向量
值:''|逗号分隔清单被牙套包围
Default:''

身体旋转率状态名称,指定的逗号分隔列表被括号包围。

Programmatic Use

Block Parameter:pm_statename
Type:角色向量
值:''|逗号分隔清单被牙套包围
Default:''

大量的state name, specified as a character vector.

Programmatic Use

Block Parameter:mass_stateName
Type:角色向量
值:''|角色向量
Default:''

Algorithms

风固定坐标框的起源是人体的重心,假定身体是刚性的,这一假设消除了考虑在质量各个元素之间作用的力的需求。平坦的地球参考框架被认为是惯性的,这是一个出色的近似值,可以忽略地球相对于“固定恒星”而引起的力。

The translational motion of the wind-fixed coordinate frame is given below, where the applied forces [FxFyFz]Tare in the wind-fixed frame, and the mass of the bodymis assumed constant.

F ¯ w = [ F x F y F z ] = m ( V ¯ - w + ω ¯ w × V ¯ w ) A b e = D C M w b F ¯ w m V ¯ w = [ V 0 0 ] , ω ¯ w = [ p w q w r w ] = D M C w b [ p b - β - sin α q b - α - r b + β - cos α ] , ω ¯ b = [ p b q b r b ] A b b = [ u - b v - b w - b ] = D C M w b [ F ¯ w m - ω ¯ w × V ¯ w ]

The rotational dynamics of the body-fixed frame are given below, where the applied moments are [L M N]T, and the inertia tensorI是关于原点O。惯性张量I在身体固定框架中更容易定义。

M ¯ b = [ L M N ] = I ω ¯ - b + ω ¯ b × ( I ω ¯ b ) I = [ I x x - I x y - I x z - I y x I y y - I y z - I z x - I z y I z z ]

The integration of the rate of change of the quaternion vector is given below.

[ q - 0 q - 1 q - 2 q - 3 ] = - 1 2 [ 0 p q r - p 0 - r q - q r 0 - p - r - q p 0 ] [ q 0 q 1 q 2 q 3 ]

References

[1] Stevens, Brian, and Frank Lewis.飞机控制和模拟。纽约:约翰·威利(John Wiley&Sons),1992年。

扩展功能

C/C ++代码生成
使用Simulink®Coder™生成C和C ++代码。金宝app

Introduced in R2006a