/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); list($val, $checksum) = $this->splitChecksum($parts[17]); $this->setValues(array('numberOfSentences' => $parts[1], 'sentence' => $parts[2], 'numberOfSatellites' => $parts[3], 'prn1' => $parts[4], 'elevation' => $parts[5], 'azimuth' => $parts[6], 'snr' => $parts[7], 'checksum' => $checksum)); }
/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); list($val, $checksum) = $this->splitChecksum($parts[14]); $this->setValues(array('fix' => $parts[1], 'latitud' => $parts[2] . ',' . $parts[3], 'longitud' => $parts[4] . ',' . $parts[5], 'fixQuality' => $parts[6], 'numSatellites' => $parts[7], 'horizontalDilution' => $parts[8], 'altitud' => $parts[9], 'altitudUnit' => $parts[10], 'geoidalSeparation' => $parts[11], 'geoidalSeparationUnit' => $parts[12], 'timeSinceLastUpdate' => $parts[13], 'dgpsStationId' => $val, 'checksum' => $checksum)); }
/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); list($val, $checksum) = $this->splitChecksum($parts[17]); $this->setValues(array('autoSelection' => $parts[1], '3dFix' => $parts[2], 'prn1' => $parts[3], 'prn2' => $parts[4], 'prn3' => $parts[5], 'prn4' => $parts[6], 'prn5' => $parts[7], 'prn6' => $parts[8], 'prn7' => $parts[9], 'prn8' => $parts[10], 'prn9' => $parts[11], 'prn10' => $parts[12], 'prn11' => $parts[13], 'prn12' => $parts[14], 'pdop' => $parts[15], 'hdop' => $parts[16], 'vdop' => $val, 'checksum' => $checksum)); }
/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); list($val, $checksum) = $this->splitChecksum($parts[11]); $this->setValues(array('fix' => $parts[1], 'status' => $parts[2], 'latitud' => $parts[3] . ',' . $parts[4], 'longitud' => $parts[5] . ',' . $parts[6], 'speed' => $parts[7], 'trackAngle' => $parts[8], 'date' => $parts[9], 'magneticVariation' => $parts[10] . ',' . $val, 'checksum' => $checksum)); }
/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); list($val, $checksum) = $this->splitChecksum($parts[12]); $this->setValues(array('fix' => $parts[1], 'latitudOfNextWaypoint' => $parts[2] . ',' . $parts[3], 'longitudOfNextWaypoint' => $parts[4] . ',' . $parts[5], 'trueTrackToWaypoint' => $parts[6], 'trueTrack' => $parts[7], 'magneticTrackToWaypoint' => $parts[8], 'magnecticTrack' => $parts[9], 'rangeToWaypoint' => $parts[10], 'rangeToWaypointUnit' => $parts[11], 'waypointId' => $val, 'checksum' => $checksum)); }
/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); $checksum = null; if (isset($parts[7])) { list($val, $checksum) = $this->splitChecksum($parts[7]); } $this->setValues(array('latitud' => $parts[1] . ',' . $parts[2], 'longitud' => $parts[3] . ',' . $parts[4], 'fix' => $parts[5], 'dataActive' => $parts[6])); if (null !== $checksum) { $this->setValue('checksum', $checksum); } }
/** * @param string $rawSentence */ public function setRawSentence($rawSentence) { parent::setRawSentence($rawSentence); $parts = explode(',', $rawSentence); $this->setValues(array('bearingTrue' => $parts[1] . ',' . $parts[2], 'bearingMagnetic' => $parts[3] . ',' . $parts[4], 'destinationWaypointId' => $parts[5], 'originWaypointId' => $parts[6])); }