Example #1
0
 public void logCurrMotion(int id)
 {
     if (movingDetect.isMoving())
     {
         Data.Motion motion = new Data.Motion();
         motion.formMotion(record, movingDetect.getStartIndex(), record.getIndex());
         motion.output("Track/track" + randomNumber + "_.txt", currMotion, id);
     }
 }
Example #2
0
    public void timeOut()
    {
        recordedMotion = new Data.Motion();
        recordedMotion.formMotion(record, startIndex, record.getIndex());
        recordedMotion.ts();
        int  startIndexTmp = -1, endIndexTmp = -1;
        bool ok = recordedMotion.segmentCheck(out startIndexTmp, out endIndexTmp);

        if (ok)
        {
            errorScreen.color = Color.green;
            errorScreen.text  = "ok";
        }
        else
        {
            errorScreen.color = Color.red;
            errorScreen.text  = "error";
        }
    }