massevorneclass.mbe
来自「用matlab描述的3个自由度的半车模型」· MBE 代码 · 共 40 行
MBE
40 行
""
RigidBodyMbs named: MassevorneClass.
port: #(GelenkPort) on: PairAtpMbs;
#(AufbauPort) on: PairAtpMbs;
output: #(posCenter) on: PositionAbsIcsMbs;
#(posGelenk) on: PositionAbsIcsMbs;
#(mcPosition_) on: PositionAbsIcsMbs;
#(mcOrientation_) on: QuaternionMbs;
auxiliar: #(frame1) on: VectorOdss size: 6;
#(frame2) on: VectorOdss size: 6;
#(frame3) on: VectorOdss size: 6;
#(mcFrame_) on: VectorOdss size: 6;
auxiliarEquation:
frame1 := #(0.5 0 -0.4 0 0 0);
frame2 := #(-1.0 0 0 0 0 0);
frame3 := #(0 0 0 0 0 0);
mcFrame_ := #(0 0 0 0 0 0);
portNamed:
GelenkPort value: frame2;
AufbauPort value: frame1;
posCenter value: frame3;
posGelenk value: frame2;
mcPosition_ value: mcFrame_;
mcOrientation_ value: mcFrame_;
mass: 430.0;
inertiaTensor: #(1 143.3 1 0 0 0 );
gravity: #(0 0 -9.81 );
position: #(0 0 0 );
orientation: #(0 0 0 1 );
velocity: #(0 0 0 );
angVelocity: #(0 0 0 );
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?