Exemplo n.º 1
0
 /**
  * Set running dynamics from array
  */
 private function setRunningDynamicsFromArray()
 {
     $groundContact = $this->TrainingObject->getArrayGroundContact();
     $oscillation = $this->TrainingObject->getArrayVerticalOscillation();
     if (!empty($groundContact) && max($groundContact) > 30) {
         $groundContact = array_filter($groundContact, 'ParserAbstract__ArrayFilterForLowEntries');
         $this->TrainingObject->setGroundContactTime(round(array_sum($groundContact) / count($groundContact)));
     }
     if (!empty($oscillation) && max($oscillation) > 30) {
         $oscillation = array_filter($oscillation);
         $this->TrainingObject->setVerticalOscillation(round(array_sum($oscillation) / count($oscillation)));
     }
 }