예제 #1
0
 /// <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++;
 }
예제 #2
0
 protected virtual void OnFrameConfigDataReceived(FrameConfigDataModel e)
 {
     if (FrameConfigDataReceived != null)
     {
         FrameConfigDataReceived(this, e);
     }
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
 public void SendConfigFrame(FrameConfigDataModel configData)
 {
     Pss.SendConfigFrame(configData);
 }