about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--TLE.go14
-rw-r--r--convert.go6
2 files changed, 10 insertions, 10 deletions
diff --git a/TLE.go b/TLE.go
index 117a8a4..89257ed 100644
--- a/TLE.go
+++ b/TLE.go
@@ -24,7 +24,7 @@ type TitleLine struct {
 
 // LineOne defines the first line in the TLE
 type LineOne struct {
-	Linenumber int8 `json:"linenumber"`
+	Linenumber int `json:"linenumber"`
 
 	// Catalog number defined by USSPACECOM
 	// A "U" indicates an unclassified object
@@ -56,20 +56,20 @@ type LineOne struct {
 	BSTAR float64 `json:"BSTAR"`
 
 	// The number 0 (originally this should have been "Ephemeris type")
-	Numberzero int8 `json:"numberzero"`
+	Numberzero int `json:"numberzero"`
 
 	// Element set number. Incremented when a new TLE is generated for this object.
 	ElementSetNumber int `json:"elementesetnumber"`
 
 	// Checksum (modulo 10)
-	Checksum int8 `json:"checksum"`
+	Checksum int `json:"checksum"`
 }
 
 // InternationalDesignator stores information about the satellite such as when it launched
 type InternationalDesignator struct {
 
 	// Last two digits of launch year
-	Launchyear int8 `json:"launchyear"`
+	Launchyear int `json:"launchyear"`
 
 	// Launch number of the year
 	Launchnumber int `json:"launchnumber"`
@@ -82,14 +82,14 @@ type InternationalDesignator struct {
 type Epoch struct {
 
 	// Last two digits of the year
-	Year int8 `json:"year"`
+	Year int `json:"year"`
 
 	// day of the year and fractional portion of the day
 	Dayfraction float64 `json:"dayfraction"`
 }
 
 type LineTwo struct {
-	Linenumber int8 `json:"linenumber"`
+	Linenumber int `json:"linenumber"`
 
 	// Catalog number defined by USSPACECOM
 	Satellitenumber int `json:"satellitenumber"`
@@ -131,5 +131,5 @@ type LineTwo struct {
 	RevolutionNumberAtEpoch int `json:"revolutionnumberatepoch"`
 
 	// Checksum (modulo 10)
-	Checksum int8 `json:"checksum"`
+	Checksum int `json:"checksum"`
 }
diff --git a/convert.go b/convert.go
index e8e2def..e8000e6 100644
--- a/convert.go
+++ b/convert.go
@@ -108,16 +108,16 @@ func NewTLE(RawTLE string) (TLE, error) {
 			Satname: fmt.Sprintf("%-25s", SplitTLE[0][0:24]),
 		},
 		LineOne: LineOne{
-			Linenumber:      int8(LineOneLinenumber),
+			Linenumber:      LineOneLinenumber,
 			SatelliteNumber: SatelliteNumber,
 			Classification:  string(SplitTLE[1][7]),
 			InternationalDesignator: InternationalDesignator{
-				Launchyear:   int8(LaunchYear),
+				Launchyear:   LaunchYear,
 				Launchnumber: LaunchNumber,
 				Launchpiece:  string(SplitTLE[1][14]),
 			},
 			Epoch: Epoch{
-				Year:        int8(EpochYear),
+				Year:        EpochYear,
 				Dayfraction: EpochDayFraction,
 			},
 			Firstderiv:       FirstDeriv,