Documentation ¶
Overview ¶
package gpstime ...
Index ¶
- func CheckSetClock(device string)
- func CheckSetClockD(dev *gpsfeed.GpsDevice)
- func CheckSetClockLocation(device string)
- func CheckSetClockLocationD(dev *gpsfeed.GpsDevice)
- func CheckSetClockOnce(device string)
- func CheckSetClockOnceD(dev *gpsfeed.GpsDevice)
- func GetTime(device string) time.Time
- func GetTimeD(dev *gpsfeed.GpsDevice) time.Time
- func Out(msg string)
- func WriteLocationFile(device string)
- func WriteLocationFileD(dev *gpsfeed.GpsDevice)
- func WriteLocationFileOnceD(dev *gpsfeed.GpsDevice)
- type Coord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSetClock ¶
func CheckSetClock(device string)
CheckSetClock anligns continusly the local system to to gpsDevice time
func CheckSetClockLocation ¶
func CheckSetClockLocation(device string)
CheckSetClockLocation updates the local system time to gpsDevice time and location env file ( when needed ) in a loop
func CheckSetClockLocationD ¶
CheckSetClockLocationD ...
func CheckSetClockOnce ¶
func CheckSetClockOnce(device string)
CheckSetClockOnce sets the clock to gpsDevice time and exists
func WriteLocationFile ¶
func WriteLocationFile(device string)
WriteLocationFile reads gps nmea frames from a gps device and writes the current location as unix shell env include
func WriteLocationFileOnceD ¶
WriteLocationFileOnceD ...
Types ¶
type Coord ¶
Coord is an gps coordinates point
func GetLocation ¶
GetLocation gets single location stamp (lat, long, elevation)
Click to show internal directories.
Click to hide internal directories.