diff --git a/analyse_serial_gps_info/v.py b/analyse_serial_gps_info/v.py new file mode 100644 index 0000000..b0a38ee --- /dev/null +++ b/analyse_serial_gps_info/v.py @@ -0,0 +1,17 @@ + +def match(s): + return s.find('qxwz_response') > -1 + +def sub(s): + pos = s.find('$') + if pos < 0: + return '' + return s[pos + 1:] + +def split(s): + return list(s.strip().split(',')) + +if __name__ == '__main__': + for line in open('1fps.txt'): + if match(line): + print(split(sub(line)))