meetjestad / mjs_firmware

8 stars 4 forks source link

Slight modification to the GPS submission logic #14

Closed ketilmo closed 5 years ago

ketilmo commented 5 years ago

If unable to acquire a valid GPS fix, the station will now use the previous values instead.

ketilmo commented 5 years ago

@matthijskooijman This modification is a simple attempt to mitigate the loss of position after a failed GPS refresh. Whenever the station is able to get valid coordinates, it will overwrite the old ones with the new ones. If the station is unable to get GPS fix, it will leave the previous coordinates untouched.

matthijskooijman commented 5 years ago

Thanks for your PR, nice!

Looking at it, I have two remarks:

ketilmo commented 5 years ago

Hi @matthijskooijman,

Thanks for your prompt feedback!

ketilmo commented 5 years ago

I was unable to update this pull request, so I have created a new one: #15. This can be closed.

matthijskooijman commented 5 years ago

You could have done a force push to your branch, which would have updated this PR automatically.

ketilmo commented 5 years ago

@matthijskooijman I deleted my branch, and I think this caused the problems unfortunately.