Exemple #1
0
 /// <summary>
 /// Action concernant un servomoteur.
 /// Effectue lui-même le wait d'attente de fin de rotation
 /// </summary>
 public ActionServo(String description, AX12 servomoteur, ServoCommandTypes commandType, float angle)
     : base(description)
 {
     this.servomoteur = servomoteur;
     this.angle       = angle;
     this.commandType = commandType;
 }
 public ActionServoRotation(String description, AX12 servomoteur, speed vitesse, int duration)
     : base(description)
 {
     this.servomoteur = servomoteur;
     this.duration    = duration;
     this.vitesse     = (int)vitesse;
 }
 public ActionServoAbsolue(String description, AX12 servomoteur, int angle, int duration)
     : base(description)
 {
     this.servomoteur = servomoteur;
     this.angle       = angle;
     this.duration    = duration;
 }
Exemple #4
0
 public ActionServo BuildActionServo(AX12 servomoteur, ServoCommandTypes commandType, float angle)
 {
     return(new  ActionServo(description, servomoteur, commandType, angle));
 }
Exemple #5
0
 public ActionServoRotation BuildActionServoRotation(AX12 servomoteur, int vitesse, int duration)
 {
     return(new ActionServoRotation(description, servomoteur, vitesse, duration));
 }
Exemple #6
0
 public ActionServoRotation BuildActionServoRotation(AX12 servomoteur, speed direction, int duration)
 {
     return(new ActionServoRotation(description, servomoteur, direction, duration));
 }
Exemple #7
0
 public ActionServoAbsolue BuildActionServoAbsolue(AX12 servomoteur, int angle, int duration)
 {
     return(new ActionServoAbsolue(description, servomoteur, angle, duration));
 }