Allow Tle to be passed into constructor of SGP4

feature/19
Daniel Warner 2011-05-27 01:54:41 +01:00
parent 44f0e49a62
commit 6b024b0c06
3 changed files with 7 additions and 2 deletions

View File

@ -12,6 +12,11 @@ SGP4::SGP4(void) {
Reset();
}
SGP4::SGP4(const Tle& tle) {
SetTle(tle);
}
SGP4::~SGP4(void) {
}

1
SGP4.h
View File

@ -7,6 +7,7 @@
class SGP4 {
public:
SGP4(void);
SGP4(const Tle& tle);
virtual ~SGP4(void);
void SetTle(const Tle& tle);

View File

@ -9,8 +9,7 @@ int main() {
Tle tle = Tle("ISS (ZARYA) ",
"1 25544U 98067A 11146.36888985 .00025753 00000-0 16912-3 0 4201",
"2 25544 51.6504 272.6534 0003891 329.5510 71.2188 15.75539412717473");
SGP4 sgp4;
sgp4.SetTle(tle);
SGP4 sgp4(tle);
Eci eci;
while(1) {