Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################
- zda_nmea_regex_str = r'''[$!](?P<talker>[A-Z][A-Z])(?P<sentence>ZDA),
- (?P<time_utc>(?P<hours>\d\d)(?P<minutes>\d\d)(?P<seconds>\d\d\.\d\d*))?,
- (?P<day>\d\d)?,
- (?P<month>\d\d)?,
- (?P<year>\d{4})?,
- (?P<zone_hrs>[+-]?(\d\d))?,
- (?P<zone_min>(\d\d))?,?
- \*(?P<checksum>[0-9A-F][0-9A-F])'''
- '''
- $--ZDA,hhmmss.ss,xx,xx,xxxx,xx,xx*hh<CR><LF>
- | | | | | |
- | | | | | +--Local zone minutes description, same sign as local hours
- | | | | +-----Local zone description [1], 00 to +-13 hrs
- | | | +---------Year
- | | +-------------Month, 01 to 12
- | +----------------Day , 01 to 31
- +------------------------UTC'''
- regex_dict['zda'] = re.compile(zda_nmea_regex_str, re.VERBOSE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement