PiInTheSky / pits

Pi In The Sky Telemetry Software
GNU General Public License v2.0
87 stars 49 forks source link

Time via GPS #8

Closed jrobinson-uk closed 9 years ago

jrobinson-uk commented 9 years ago

Can we update the system time via the GPS data ?

daveake commented 9 years ago

It does it already :-)

On 03/09/2015 15:52, James Robinson wrote:

Can we update the system time via the GPS data ?

— Reply to this email directly or view it on GitHub https://github.com/PiInTheSky/pits/issues/8.

jrobinson-uk commented 9 years ago

okay, thought you said it was in the pipeline, nevermind

On 3 September 2015 at 15:55, David Akerman notifications@github.com wrote:

It does it already :-)

On 03/09/2015 15:52, James Robinson wrote:

Can we update the system time via the GPS data ?

— Reply to this email directly or view it on GitHub https://github.com/PiInTheSky/pits/issues/8.

— Reply to this email directly or view it on GitHub https://github.com/PiInTheSky/pits/issues/8#issuecomment-137475934.

daveake commented 9 years ago

Yeah, it was added to the LoRa branch fairly recently, and now of course is in the main branch.

Dave

On 03/09/2015 16:03, James Robinson wrote:

okay, thought you said it was in the pipeline, nevermind

On 3 September 2015 at 15:55, David Akerman notifications@github.com wrote:

It does it already :-)

On 03/09/2015 15:52, James Robinson wrote:

Can we update the system time via the GPS data ?

— Reply to this email directly or view it on GitHub https://github.com/PiInTheSky/pits/issues/8.

— Reply to this email directly or view it on GitHub https://github.com/PiInTheSky/pits/issues/8#issuecomment-137475934.

— Reply to this email directly or view it on GitHub https://github.com/PiInTheSky/pits/issues/8#issuecomment-137477929.

PiInTheSky commented 9 years ago

Code is in gps.c. It sets the system time once a GPRMC sentence has been received with a valid time.