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.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)
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.