Exemplo n.º 1
0
        public List <MyoData> GetSyncdData()
        {
            MyoSigne       myosigne  = synchronizer.SyncData(collectorLeft, collectorRight);
            List <MyoData> dataLeft  = myosigne.LeftMyoData;
            List <MyoData> dataRight = myosigne.RightMyoData;

            return(dataLeft);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
             */
        }