public static Trame ChangementBaudrate(ServoBaudrate baudrate) { byte[] tab = new byte[3]; tab[0] = (byte)Carte.RecIO; tab[1] = (byte)FonctionIO.ChangementBaudrateSerie; tab[2] = (byte)baudrate; return new Trame(tab); }
public Servomoteur(Carte carte, int id, ServoBaudrate baudrate) { this.carte = carte; this.id = id; this.baudrate = baudrate; connexion = Connexions.ConnexionParCarte[carte]; connexion.NouvelleTrameRecue += new ConnexionUDP.ReceptionDelegate(connexion_NouvelleTrame); }
public static Trame ServoEnvoiBaudrate(ServomoteurID servo, ServoBaudrate baud, Carte carte = Carte.RecIO) { byte[] tab = new byte[5]; tab[0] = (byte)carte; tab[1] = (byte)FonctionIO.CommandeServo; tab[2] = (byte)FonctionServo.EnvoiBaudrate; tab[3] = (byte)servo; tab[4] = (byte)baud; return new Trame(tab); }