/**
  * Set GPS data
  */
 protected function setGPSarrays()
 {
     $this->removeInvalidEntriesFromGPSarrays();
     if (empty($this->gps['pace']) && !empty($this->gps['time_in_s']) && !empty($this->gps['km'])) {
         $this->setPaceFromDistanceAndTime();
     }
     $this->TrainingObject->setArrayTime($this->gps['time_in_s']);
     $this->TrainingObject->setArrayDistance($this->gps['km']);
     $this->TrainingObject->setArrayLatitude($this->gps['latitude']);
     $this->TrainingObject->setArrayLongitude($this->gps['longitude']);
     $this->TrainingObject->setArrayAltitude($this->gps['altitude']);
     $this->TrainingObject->setArrayHeartrate($this->gps['heartrate']);
     $this->TrainingObject->setArrayPace($this->gps['pace']);
     $this->TrainingObject->setArrayCadence($this->gps['rpm']);
     $this->TrainingObject->setArrayPower($this->gps['power']);
     $this->TrainingObject->setArrayTemperature($this->gps['temp']);
     $this->TrainingObject->setArrayGroundContact($this->gps['groundcontact']);
     $this->TrainingObject->setArrayVerticalOscillation($this->gps['oscillation']);
     $this->TrainingObject->setArrayHRV($this->gps['hrv']);
     $this->setValuesFromArraysIfEmpty();
 }