|
18 | 18 |
|
19 | 19 | Created on 27 Oct 2020 |
20 | 20 |
|
21 | | -:author: semuadmin |
22 | | -:copyright: SEMU Consulting © 2020 |
| 21 | +:author: semuadmin (Steve Smith) |
| 22 | +:copyright: semuadmin © 2020 |
23 | 23 | :license: BSD 3-Clause |
24 | 24 | """ |
25 | 25 |
|
@@ -128,14 +128,16 @@ def run(self): |
128 | 128 | ) |
129 | 129 | elif isinstance(msg, NMEAMessage): |
130 | 130 | if msg.msgID in ("GGA",): |
131 | | - self.write_gpx_trkpnt(outfile, |
| 131 | + self.write_gpx_trkpnt( |
| 132 | + outfile, |
132 | 133 | msg.lat, |
133 | 134 | msg.lon, |
134 | 135 | ele=msg.alt, |
135 | 136 | time=self.nmeatime2utc(msg.time), |
136 | 137 | ) |
137 | 138 | elif msg.msgID in ("RMC", "GLL"): |
138 | | - self.write_gpx_trkpnt(outfile, |
| 139 | + self.write_gpx_trkpnt( |
| 140 | + outfile, |
139 | 141 | msg.lat, |
140 | 142 | msg.lon, |
141 | 143 | time=self.nmeatime2utc(msg.time), |
@@ -235,11 +237,14 @@ def main(): |
235 | 237 |
|
236 | 238 | ap = ArgumentParser() |
237 | 239 | ap.add_argument("-I", "--infile", required=True, help="Input gnss file", type=str) |
238 | | - ap.add_argument("-O", "--outpath", required=False, help="Output path",default=".", type=str) |
| 240 | + ap.add_argument( |
| 241 | + "-O", "--outpath", required=False, help="Output path", default=".", type=str |
| 242 | + ) |
239 | 243 | args = ap.parse_args() |
240 | 244 |
|
241 | 245 | UBXTracker(args.infile, args.outpath).run() |
242 | 246 |
|
| 247 | + |
243 | 248 | if __name__ == "__main__": |
244 | 249 |
|
245 | 250 | main() |
0 commit comments