trainCommand(command) {
        let trainingSlotSize = this.state.trainingTime / 4;    //on 250 Hz, each 4 ms a sample is recorded
        sendTrainingCmd({command: command, slots: trainingSlotSize});    //after training phase - server saves past data to file
        // get next command
        let cmdindex = this.state.commands.indexOf(command);
        let nextcmd = cmdindex+1;
        let info = "done";
        if (nextcmd !== this.state.commands.length){
            info = this.state.commandpreinfos[nextcmd];
        }
        this.trainingPause(info); //gui: show training pause
    }
//training of command x (init on server)
training of command x (init on server)
training of command x ( init on server )
trainCommand(command) {
        let trainingSlotSize = this.state.trainingTime / 4;    
        sendTrainingCmd({command: command, slots: trainingSlotSize});    
        let cmdindex = this.state.commands.indexOf(command);
        let nextcmd = cmdindex+1;
        let info = "done";
        if (nextcmd !== this.state.commands.length){
            info = this.state.commandpreinfos[nextcmd];
        }
        this.trainingPause(info); 
    }
trainCommand ( command ) { let trainingSlotSize = this . state . trainingTime / 4 ; sendTrainingCmd ( { command : command , slots : trainingSlotSize } ) ; let cmdindex = this . state . commands . indexOf ( command ) ; let nextcmd = cmdindex + 1 ; let info = "done" ; if ( nextcmd !== this . state . commands . length ) { info = this . state . commandpreinfos [ nextcmd ] ; } this . trainingPause ( info ) ; }
training of command x (init on server)
training of command x ( init on server )
//on 250 Hz, each 4 ms a sample is recorded //after training phase - server saves past data to file // get next command //gui: show training pause