Exemple #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="m1">第1関節</param>
 /// <param name="r1">第1関節反転フラグ</param>
 /// <param name="m2">第2関節</param>
 /// <param name="r2">第2関節反転フラグ</param>
 /// <param name="m3">第3関節</param>
 /// <param name="r3">第3関節反転フラグ</param>
 public LegBase(IMyMotorStator m1, bool r1, IMyMotorStator m2, bool r2, IMyMotorStator m3, bool r3)
 {
     LegStatus    = Utilty.PartsMoveEnum.off;
     myMotorThigh = new motorBase(m1, r1, 0, 0);
     myMotorKnee  = new motorBase(m2, r2, 0, 0);
     myMotorAnkle = new motorBase(m3, r3, 0, 0);
 }
Exemple #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="m1">第1関節</param>
 /// <param name="r1">第1関節反転フラグ</param>
 /// <param name="m2">第2関節</param>
 /// <param name="r2">第2関節反転フラグ</param>
 /// <param name="m3">第3関節</param>
 /// <param name="r3">第3関節反転フラグ</param>
 public ArmBase(IMyMotorStator m1, bool r1, IMyMotorStator m2, bool r2, IMyMotorStator m3, bool r3, IMyMotorStator m4, bool r4)
 {
     LegStatus = Utilty.PartsMoveEnum.off;
     myMotor1  = new motorBase(m1, r1, 0, 0);
     myMotor2  = new motorBase(m2, r2, 0, 0);
     myMotor3  = new motorBase(m3, r3, 0, 0);
     myMotor4  = new motorBase(m4, r4, 0, 0);
 }