about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-08-19 15:11:13 +0200
committerEmile <hanemile@protonmail.com>2019-08-19 15:11:13 +0200
commit8b85088c511cad21d39ed50b824ba3221a0eca68 (patch)
tree1b2a52b4f0b8553aa054a2f19336bd37d8ee4bb5
parentc701a93258287a358408f77bc17f3067a0f2aeb9 (diff)
Commented the first line
-rw-r--r--TLE.go24
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 {