403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/protocols/gps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyc
ó
[³XMc@s¨dZddlZddlmZddlmZd\ZZZZ	d\Z
Zd\ZZ
Zdefd„ƒYZd
efd„ƒYZdejfd„ƒYZdS(s¹NMEA 0183 implementation

Maintainer: Bob Ippolito

The following NMEA 0183 sentences are currently understood::
    GPGGA (fix)
    GPGLL (position)
    GPRMC (position and time)
    GPGSA (active satellites)
 
The following NMEA 0183 sentences require implementation::
    None really, the others aren't generally useful or implemented in most devices anyhow

Other desired features::
    - A NMEA 0183 producer to emulate GPS devices (?)
iÿÿÿÿN(tbasic(treduceiiiitAtMtInvalidSentencecBseZRS((t__name__t
__module__(((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyRstInvalidChecksumcBseZRS((RR(((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyR!stNMEAReceivercBs¾eZdZdZidd6dd6dd6dd	6d
d6dd
6dd6dd6dd6dd6dd6ZdZdZdZdZd„Z	d„Z
d„Zd„Zd„Z
d„Zd „ZRS(!s`This parses most common NMEA-0183 messages, presumably from a serial GPS device at 4800 bps
    s
tfixtGPGGAtpositiontGPGLLtactivesatellitestGPGSAtpositiontimetGPRMCtviewsatellitestGPGSVtcoursetGPVTGtalmanactGPALMtrangetGPGRStnoisetGPGSTtbeacontGPMSSttimetGPZDAiicCs˜|jdƒs2|jrdStd|fƒ‚n|djƒjdƒ\}}|jdƒ}|d|d}}|jj|dƒ}|r±|jr±td|fƒ‚n|j	s
t
|dƒttj
tt|ƒƒ}}||kr
td	||fƒ‚q
nt|d
|dƒ}t|d|dƒ}	|oH|oH|	sOdSy|	|Œ}
Wn,tk
r}td|||fƒ‚nX||
ŒS(
Nt$s%r does not begin with $it*t,issentencetype %risGiven 0x%02X != 0x%02Xs	handle_%ss	decode_%ss"%r is not a valid %s (%s) sentence(t
startswithtignore_invalid_sentenceRtstriptsplittdispatchtgettNonetignore_unknown_sentencetypestignore_checksum_mismatchtintRtoperatortxortmaptordRtgetattrt	Exception(tselftlinet
strmessagetchecksumtmessagetsentencetypeR&tcalculated_checksumthandlertdecodertdecodedte((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pytlineReceived>s.		+cCsX|j||||ƒ\}}|j|ƒ}|dkrBd}nd}||||fS(NRii(t_decode_latlont_decode_utc(R2tlatitudetnst	longitudetewtutctstatus((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pytdecode_positionZs	cCs4|j|ƒ}|j||||ƒ\}}|dkrHt|ƒ}nd}|dkrit|ƒ}nd}dt|	dd!ƒt|	dd!ƒt|	dd!ƒf}	|jrä|	ddkrä|	dd|	d	|	df}	n|
dkrÿt|
ƒ}
n|d
kr|
}
nd}
||||||	|
fS(NtiÐiiiiiiditW(R?R>tfloatR(R+tconvert_dates_before_y2k(R2RDRER@RARBRCtspeedRtutcdatetmagvartmagdir((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pytdecode_positiontimehs.:"
cCsDtt|d |dd!|dfƒ\}}}|d|d|S(Niig ¬@gN@(R.RI(R2RDtutc_hhtutc_mmtutc_ss((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyR?Œs0cCszt|d ƒt|dƒd}|dkr8|}nt|d ƒt|dƒd}|dkrp|}n||fS(NigN@tSiRH(RI(R2R@RARBRC((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyR>s"
"
cGs’|d tt|dƒ}\}}}g}x7|D]/}	|	rV|jt|	ƒƒq4|jdƒq4W|t|ƒf}
t|ƒ|
|||fS(Ni(R.RItappendR+R(ttuple(R2tmode1tmode2targst
satellitestpdopthdoptvdoptsatlisttntmode((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pytdecode_activesatellites™s'
	c	CsÐ|j||||ƒ\}}|j|ƒ}t|ƒ}t|ƒ}t|ƒ}t|	ƒ|
f}	|dkr„t|ƒ|f}nd}|
dkr«t|
ƒ|f}nd}|||||||	||f	S(NRG(R>R?R+RIR((R2RDR@RARBRCtposfixRYR[taltitudetaltitude_unitstgeoid_separationtgeoid_separation_unitstdgps_agetdgps_station_idtgeoidtdgps((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyt
decode_fix¯s*(RRt__doc__t	delimiterR&R#R*R)RJR=RFROR?R>R`Rj(((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyR$s2
			$				(iiii(RR(iii(RkR,ttwisted.protocolsRttwisted.python.compatRtPOSFIX_INVALIDt
POSFIX_SPStPOSFIX_DGPSt
POSFIX_PPSt	MODE_AUTOtMODE_FORCEDt
MODE_NOFIXtMODE_2DtMODE_3DR1RRtLineReceiverR(((s>/usr/lib/python2.7/dist-packages/twisted/protocols/gps/nmea.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit