/* * TrainingResult registerTrainingResult() * { * return TrainingResult( * id = null, * trained = Date(), * score = this.calcActiveness(), * trainingTime = Date(), * activenesses = NpodApplication.app.nfb.activenesses, * start = NpodApplication.app.meta.measured, * end = NpodApplication.app.stopMeasured * ) * * }*/ //List static public void Start(BrainDataFeedbacker.Type _type = BrainDataFeedbacker.Type.NEURO) { if (Hot2gApplication.eMode.Connecting <= Hot2gApplication.Instance.mode) { Hot2gApplication.Instance.StartRecieve(_type); } isupdateActivenessesBuffer = new List <bool>(); }
// 受信開始 public void StartRecieve(BrainDataFeedbacker.Type _type) { dataStore = new DataStore(); m_nfb = new BrainDataFeedbacker(dataStore); m_nfb.start(_type); if (isOnLogging) { m_Logger = new DataLogger(); m_DebugLogCount = 0; } /* ゲイン調整 */ m_gc = new GainController(); this.m_Mode = eMode.Waiting; //this.m_Mode = eMode.GainSetting; m_API.setMeasureDataEventHandler(OnMeasureDataEvent); m_API.startMeasure(); StartCoroutine(GainSetDeray()); }