コード例 #1
0
ファイル: MainMyoListenner.cs プロジェクト: VLbest/RD_Sources
        public List <MyoData> GetSyncdData()
        {
            MyoSigne       myosigne  = synchronizer.SyncData(collectorLeft, collectorRight);
            List <MyoData> dataLeft  = myosigne.LeftMyoData;
            List <MyoData> dataRight = myosigne.RightMyoData;

            return(dataLeft);
        }
コード例 #2
0
ファイル: MyoDataSync.cs プロジェクト: VLbest/RD_Sources
        public MyoSigne SyncData(DataCollector inputLeft, DataCollector inputRight, Int32?limit = null)
        {
            // ooohh, there's some stories to tell about this stuff... but let's pray it will work fine
            List <MyoData> LeftMyoData  = SyncCollectedData(inputLeft);
            List <MyoData> RightMyoData = SyncCollectedData(inputRight);
            MyoSigne       signe        = SyncTwoArm(LeftMyoData, RightMyoData);

            return(signe);
        }
コード例 #3
0
ファイル: MainMyoListenner.cs プロジェクト: VLbest/RD_Sources
        public void SaveRecodedData()
        {
            Debug.WriteLine("save start");

            MyoSigne myosigne = synchronizer.SyncData(collectorLeft, collectorRight);

            //create model classes
            List <MyoData> dataLeft  = myosigne.LeftMyoData;
            List <MyoData> dataRight = myosigne.RightMyoData;

            /*
             * Signe signe = new Signe();
             * Geste gesteRight = new Geste();
             * Geste gesteLeft = new Geste();
             * gesteRight.MyoDatas = myosigne.RightMyoData;
             * gesteRight.Main = "R";
             * gesteLeft.MyoDatas = myosigne.LeftMyoData;
             * gesteLeft.Main = "L";
             *
             * signe.Gestes.Add(gesteRight);
             * signe.Gestes.Add(gesteLeft);
             * signe.ID_Personne = personne.ID;
             * signe.ID_Mot = mot.ID;
             *
             * model.Signes.Add(signe);
             * Debug.WriteLine("save bdd");
             * string dbAnswer = "";
             * try
             * {
             *  int savedDataCount = model.SaveChanges();
             *  dbAnswer = savedDataCount.ToString() + " Modifications";
             * }
             * catch (Exception ex)
             * {
             *  dbAnswer = "ERROR: " + ex.Message;
             * }
             *
             * Debug.WriteLine("retour base = " + dbAnswer);
             */
        }