Ligne 2 : |
Ligne 2 : |
| | | |
| == class ServoJoint == | | == class ServoJoint == |
− | """ Define a joint/articulation (into a member) and associate it to a servo """
| + | ENG: Define a joint/articulation (into a member) and associate it to a servo. It also remember the angle of the joint. |
| | | |
− | def inverted( self, value=True ):
| + | FR: Definit un joint/articulation (dans un membre) et l'associe à un servo moteur. Il se souvient également de l'angle de la jointure. |
− | """ Indicate if the Joint must be inverted. So position of +90 & -90 are echanged... and control inverted """
| |
| | | |
| + | === __init__( self, owner, servoindex, ctrlindex=0) === |
| | | |
− | def set( self, degree=0 ):
| + | * '''servoindex''' |
− | """ set the joint degree between +90° in front/forward AND -90° for backward """
| + | ** ENG: Numerical number of the servo motor on the servo controler. |
| + | ** FR: Numéro du servo moteur sur le contrôleur de servo. |
| + | * '''ctrlindex''' |
| + | ** ENG: indicate the index of the servo controleur (if many are used) |
| + | ** FR: Indique le numéro d'index du controleur (si vous utilisez plusieurs contrôleurs) |
| + | |
| + | === angle === |
| + | ENG: Property where is stored the set() joint's angle. READ ONLY. |
| + | |
| + | FR: Propriété où est stocké l'angle de la jointure, angle fixé par la fonction set(). LECTURE SEULE. |
| + | |
| + | === inverted( self, value=True ) === |
| + | ENG: Indicates to the Joint must be inverted. So position of +90 & -90 are exchanged... and the control of the motor is inverted |
| + | |
| + | FR: Indique au Joint qu'il doit fonctionner en mode Inversé. La position +90° et -90° sont échangés... et le contrôle du moteur est donc inversé. |
| + | |
| + | === def set( self, degree=0 ) === |
| + | ENG: Set the joint degree between +90° in front/forward AND -90° for backward. This value is remembered in la property {{fname|angle}}. |
| + | |
| + | FR: Fixe l'angle de la jointure (en degrés) entre +90° pour l'avant ET -90° pour l'arrière. Cette valeur est également stockée dans la propriété {{fname|angle}}. |
| | | |
| == class Member2DF() == | | == class Member2DF() == |