diff --git a/Tle.cpp b/Tle.cpp index 18e947e..5cb7fe8 100644 --- a/Tle.cpp +++ b/Tle.cpp @@ -130,6 +130,9 @@ void Tle::Initialize() { assert(!line_one_.empty()); assert(!line_two_.empty()); + assert(IsValidLine(line_one_, Tle::LINE_ONE)); + assert(IsValidLine(line_two_, Tle::LINE_TWO)); + /* * line 1 */ diff --git a/main.cpp b/main.cpp index 12a53a4..df50ab7 100644 --- a/main.cpp +++ b/main.cpp @@ -7,6 +7,7 @@ int main() { std::list tles; +#if 0 tles.push_back(Tle("ALSAT 1 ", "1 27559U 02054A 11083.20474426 .00000231 00000-0 46807-4 0 3956", "2 27559 97.8504 306.7237 0024736 97.8736 262.5269 14.69492531444449")); @@ -41,7 +42,10 @@ int main() { "1 35683U 09041C 11083.19129526 .00000128 00000-0 29890-4 0 8539", "2 35683 98.0774 342.2478 0001262 104.0560 256.0776 14.69410764 88426")); - +#endif + tles.push_back(Tle("SGP4 Test", + "1 88888U 80275.98708465 .00073094 13844-3 66816-4 0 8", + "2 88888 72.8435 115.9689 0086731 52.6988 110.5714 16.05824518 105")); std::list::iterator itr; Julian jul;