micropyGPS: a GPS parser for Micropython

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
inmcm
Posts: 7
Joined: Tue Dec 16, 2014 12:27 am

Re: micropyGPS: a GPS parser for Micropython

Post by inmcm » Sun Mar 01, 2015 9:59 pm

dhylands wrote:All interrupt errors (even syntax errors) are reported as MemoryErrors unless you do something like this:

Code: Select all

import micropython
micropython.alloc_emergency_exception_buf(100)
That's really handy to know. I tried it and, sure enough, you can see where it throws a stack locked exception on allocation during the interrupt. That should be the docs somewhere.

I've made some more clean ups to the parser and added GLL sentence parsing. I've also created a companion library MTK_Commands https://github.com/inmcm/MTK_commands that makes it easier to change the settings on my MTK3329 based GPS module. I was able to successfully run at 10Hz output rate (115200 baud rate) with all sentences parsing cleaning. See the following gist for howto: https://gist.github.com/inmcm/1a0e8b80f2d8faff832b

I'm working on two biggish features: logging to a file and target tracking. The logging will save either the raw NMEA data or parsed results to a file on the SD card. Target tracking will allow you specify some coordinates and using different methods, get distance to, course to and ETA based on your current telemetry.

Post Reply