/// <summary> /// Sends config frame. /// </summary> /// <param name="commandCode"> /// Command data to be sent. /// </param> public void SendConfigFrame(FrameConfigDataModel configData) { // TODO : ajouter la commande dans la FILE pour ACK + timer //SendByteArray(FrameConstruction.ConstructWriteConfigDataFrame(configData)); AddTrameOut(FrameConstruction.ConstructWriteConfigDataFrame(configData)); //FramesWrittenCounter.CommandFrames++; }
protected virtual void OnFrameConfigDataReceived(FrameConfigDataModel e) { if (FrameConfigDataReceived != null) { FrameConfigDataReceived(this, e); } }
public static FrameConfigDataModel VitesseNbrRepToFrame(ExerciceBaseConfig newExerciceConf) { FrameConfigDataModel _configFrame = new FrameConfigDataModel(); _configFrame.Address = ConfigAddresses.VitesseNbrsrep; _configFrame.Data1_2 = newExerciceConf.Vitesse; _configFrame.Data3_4 = newExerciceConf.NbrRep; return(_configFrame); }
public static FrameConfigDataModel RlatRlongToFrame(ExerciceBaseConfig newExerciceConf) { FrameConfigDataModel _configFrame = new FrameConfigDataModel(); _configFrame.Address = ConfigAddresses.KlatClong; _configFrame.Data1_2 = newExerciceConf.RaideurLat; _configFrame.Data3_4 = newExerciceConf.RaideurLong; return(_configFrame); }
internal static FrameConfigDataModel MasseViscoToFrame(ExerciceBaseConfig newExerciceConf) { FrameConfigDataModel _configFrame = new FrameConfigDataModel(); _configFrame.Address = ConfigAddresses.MasseVisco; _configFrame.Data1_2 = newExerciceConf.Masse; _configFrame.Data3_4 = newExerciceConf.Viscosite; return(_configFrame); }
public void SendConfigFrame(FrameConfigDataModel configData) { Pss.SendConfigFrame(configData); }