Added test sgp4. Tle verifies format.

feature/19
Daniel Warner 2011-03-26 12:47:53 +00:00
parent 4a129cb20a
commit 9489131d8e
2 changed files with 8 additions and 1 deletions

View File

@ -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
*/

View File

@ -7,6 +7,7 @@
int main() {
std::list<Tle> 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<Tle>::iterator itr;
Julian jul;