Allow Tle to be passed into constructor of SGP4
parent
44f0e49a62
commit
6b024b0c06
5
SGP4.cpp
5
SGP4.cpp
|
@ -12,6 +12,11 @@ SGP4::SGP4(void) {
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SGP4::SGP4(const Tle& tle) {
|
||||||
|
|
||||||
|
SetTle(tle);
|
||||||
|
}
|
||||||
|
|
||||||
SGP4::~SGP4(void) {
|
SGP4::~SGP4(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
SGP4.h
1
SGP4.h
|
@ -7,6 +7,7 @@
|
||||||
class SGP4 {
|
class SGP4 {
|
||||||
public:
|
public:
|
||||||
SGP4(void);
|
SGP4(void);
|
||||||
|
SGP4(const Tle& tle);
|
||||||
virtual ~SGP4(void);
|
virtual ~SGP4(void);
|
||||||
|
|
||||||
void SetTle(const Tle& tle);
|
void SetTle(const Tle& tle);
|
||||||
|
|
|
@ -9,8 +9,7 @@ int main() {
|
||||||
Tle tle = Tle("ISS (ZARYA) ",
|
Tle tle = Tle("ISS (ZARYA) ",
|
||||||
"1 25544U 98067A 11146.36888985 .00025753 00000-0 16912-3 0 4201",
|
"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");
|
"2 25544 51.6504 272.6534 0003891 329.5510 71.2188 15.75539412717473");
|
||||||
SGP4 sgp4;
|
SGP4 sgp4(tle);
|
||||||
sgp4.SetTle(tle);
|
|
||||||
Eci eci;
|
Eci eci;
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
Loading…
Reference in New Issue