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();
|
||||
}
|
||||
|
||||
SGP4::SGP4(const Tle& tle) {
|
||||
|
||||
SetTle(tle);
|
||||
}
|
||||
|
||||
SGP4::~SGP4(void) {
|
||||
}
|
||||
|
||||
|
|
1
SGP4.h
1
SGP4.h
|
@ -7,6 +7,7 @@
|
|||
class SGP4 {
|
||||
public:
|
||||
SGP4(void);
|
||||
SGP4(const Tle& tle);
|
||||
virtual ~SGP4(void);
|
||||
|
||||
void SetTle(const Tle& tle);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue