Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2158cff

Browse files
committed
alpha5
1 parent1ba7dbc commit2158cff

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

‎src/cpp/SGP4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
typedefstructElsetRec {
2525
intwhichconst;
26-
intsatnum;
26+
charsatid[6];
2727
intepochyr;
2828
intepochtynumrev;
2929
interror;

‎src/cpp/TLE.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ void TLE::parseLines(char *line1, char *line2)
4444

4545
this->rec.classification=line1[7];
4646

47-
this->objectNum = (int)gd(line1,2,7);
47+
//this->objectNum = (int)gd(line1,2,7);
48+
strncpy(this->objectID,&line1[2],5);
4849

4950
this->ndot =gdi(line1,35,44);
5051
if(line1[33]=='-')this->ndot *= -1.0;
@@ -217,7 +218,8 @@ void setValsToRec(TLE *tle, ElsetRec *rec)
217218

218219
rec->elnum = tle->elnum;
219220
rec->revnum = tle->revnum;
220-
rec->satnum = tle->objectNum;
221+
//rec->satnum = tle->objectNum;
222+
strncpy(rec->satid,tle->objectID,5);
221223
rec->bstar = tle->bstar;
222224
rec->inclo = tle->incDeg*deg2rad;
223225
rec->nodeo = tle->raanDeg*deg2rad;

‎src/cpp/TLE.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TLE
1010
char line1[70];
1111
char line2[70];
1212
char intlid[12];
13-
int objectNum;
13+
char objectID[6];
1414
long epoch;
1515
double ndot;
1616
double nddot;

‎src/cpp/TestSGP4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void runVER(VERIN *verins, int cnt)
123123
cnt2++;
124124
if(rdist >1e-7 || vdist >1e-8)
125125
{
126-
printf("%d %lf %e %e\n",tle.objectNum,mins,rdist,vdist);
126+
printf("%s %lf %e %e\n",tle.objectID,mins,rdist,vdist);
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp