Fixed algorithm of motion recognition