misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-03-09 12:08:19 +01:00
parent 5d7c8933fa
commit e22ce22716
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 27 additions and 22 deletions

View file

@ -21,8 +21,6 @@ import (
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/packets"
"github.com/adrianmo/go-nmea"
"github.com/evilsocket/islazy/fs"
"github.com/evilsocket/islazy/log"
"github.com/evilsocket/islazy/ops"
@ -74,8 +72,13 @@ func (mm ModuleList) MarshalJSON() ([]byte, error) {
}
type GPS struct {
GNGGA nmea.GNGGA
GPGGA nmea.GPGGA
Latitude float64 // Latitude.
Longitude float64 // Longitude.
FixQuality string // Quality of fix.
NumSatellites int64 // Number of satellites in use.
HDOP float64 // Horizontal dilution of precision.
Altitude float64 // Altitude.
Separation float64 // Geoidal separation
}
type Session struct {