UNCG-DAISY / Instagrain

A camera for measuring sediment grain sizes with edge ML
MIT License
20 stars 2 forks source link

GPS does not always work in the field... #38

Closed ebgoldstein closed 2 years ago

ebgoldstein commented 3 years ago

The GPS does not always provide a location, and i was having some issues with exceptions..

I adjusted the script slightly so -9999 is the default and new values write on top (i will link my commit to this issue), but i am not sure that gps.next() is the best way to make sure a position is returned... i know this is an old S.O. thread, but i wonder if it hints at a way to deal with it... https://stackoverflow.com/questions/6146131/python-gps-module-reading-latest-gps-data

ebgoldstein commented 3 years ago

adjusted lat long in this commit: https://github.com/UNCG-DAISY/SandCam/commit/d784dcee5307c3b061164cdf1716368632bcf696

jacobstasiewicz commented 3 years ago

Ill give this a look when I get the camera back

ebgoldstein commented 2 years ago

we are switching the GPS to https://www.adafruit.com/product/2324,

which has a tutorial here: https://learn.adafruit.com/adafruit-ultimate-gps-hat-for-raspberry-pi/

jacobstasiewicz commented 2 years ago

GPS working reliably now with gpsd package. Tested with and without fix