Switch to unified view

a b/Application/Examples/Squat/Model/LeftArmDrivers.any
1
2
3
  // ************************************
4
  // Drivers for the left arm
5
  // ************************************
6
  
7
  
8
  #if BM_ARM_SHOULDER_RHYTHM == 0
9
  //Sterno clavicular joint driver
10
  AnyKinEqSimpleDriver SCDriverLeft ={
11
    AnyKinMeasure& ref1 =...BodyModel.Interface.Left.SternoClavicularProtraction;
12
    AnyKinMeasure& ref2 =...BodyModel.Interface.Left.SternoClavicularElevation;
13
    
14
    DriverPos = pi/180*{
15
      .JntPos.Left.SternoClavicularProtraction,
16
      .JntPos.Left.SternoClavicularElevation
17
    };
18
    
19
    DriverVel = pi/180*{
20
      .JntVel.Left.SternoClavicularProtraction,
21
      .JntVel.Left.SternoClavicularElevation
22
    };
23
24
    Reaction.Type={Off,Off};
25
  };
26
  #endif
27
  
28
  AnyKinEqSimpleDriver GHDriverLeft=
29
  {
30
    AnyKinMeasure& ref1 =...BodyModel.Interface.Left.GlenohumeralAbduction;
31
    AnyKinMeasure& ref2 =...BodyModel.Interface.Left.GlenohumeralFlexion;
32
    AnyKinMeasure& ref3 =...BodyModel.Interface.Left.GlenohumeralExternalRotation;
33
    DriverPos=pi/180*{
34
      .JntPos.Left.GlenohumeralAbduction, 
35
      .JntPos.Left.GlenohumeralFlexion,  
36
      .JntPos.Left.GlenohumeralExternalRotation  
37
    };    
38
    DriverVel = pi/180*{
39
      .JntVel.Left.GlenohumeralAbduction, 
40
      .JntVel.Left.GlenohumeralFlexion,  
41
      .JntVel.Left.GlenohumeralExternalRotation  
42
    };    
43
    Reaction.Type={Off, Off, Off};
44
  };
45
46
  AnyKinEqSimpleDriver ElbowFEDriverLeft=
47
  {
48
    AnyKinMeasureOrg  &Elbow =...BodyModel.Interface.Left.ElbowFlexion;
49
    DriverPos=pi/180*{.JntPos.Left.ElbowFlexion};  
50
    DriverVel = pi/180*{.JntVel.Left.ElbowFlexion};  
51
    Reaction.Type={Off};
52
  };
53
54
  AnyKinEqSimpleDriver ElbowPSDriverLeft=
55
  {
56
    AnyKinMeasure& Elbow =...BodyModel.Interface.Left.ElbowPronation;
57
    DriverPos= pi/180*{.JntPos.Left.ElbowPronation };  
58
    DriverVel = pi/180*{.JntVel.Left.ElbowPronation };  
59
    Reaction.Type={Off};
60
  };
61
  
62
  AnyKinEqSimpleDriver WristDriverLeft =
63
  {
64
    AnyKinMeasure& ref1 =...BodyModel.Interface.Left.WristFlexion;
65
    AnyKinMeasure& ref2 =...BodyModel.Interface.Left.WristAbduction;
66
    DriverPos = pi/180*
67
    {
68
      .JntPos.Left.WristFlexion,
69
      .JntPos.Left.WristAbduction
70
    };
71
    DriverVel = pi/180*
72
    {
73
      .JntVel.Left.WristFlexion,
74
      .JntVel.Left.WristAbduction
75
    };
76
    Reaction.Type={Off,Off};
77
  };  
78
  
79
80
  
81
82
83