diff options
Diffstat (limited to 'TLE.go')
-rw-r--r-- | TLE.go | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/TLE.go b/TLE.go index 7bdb0f0..4c57928 100644 --- a/TLE.go +++ b/TLE.go @@ -22,10 +22,15 @@ type TitleLine struct { Satname string `json:"satname"` } +// LineOne defines the first line in the TLE type LineOne struct { - Linenumber int8 `json:"linenumber"` - Satellitenumber int `json:"satellitenumber"` - Classification rune `json:"classification"` + Linenumber int8 `json:"linenumber"` + + // Catalog number defined by USSPACECOM + // A "U" indicates an unclassified object + SatelliteNumber int `json:"satellitenumber"` + Classification rune `json:"classification"` + InternationalDesignator InternationalDesignator `json:"internationaldesignator"` Epoch Epoch `json:"epoch"` Firstderiv float64 `json:"firstderiv"` @@ -36,10 +41,17 @@ type LineOne struct { Checksum int8 `json:"checksum"` } +// InternationalDesignator stores information about the satellite such as when it launched type InternationalDesignator struct { - Launchyear int8 `json:"launchyear"` - Launchnumber int `json:"launchnumber"` - Launchpiece rune `json:"launchpiece"` + + // Last two digits of launch year + Launchyear int8 `json:"launchyear"` + + // Launch number of the year + Launchnumber int `json:"launchnumber"` + + // Piece of the launch + Launchpiece rune `json:"launchpiece"` } type Epoch struct { |