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

Commit1ba7dbc

Browse files
committed
alpha5
1 parent870861b commit1ba7dbc

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

‎src/c/SGP4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ typedef int bool;
2424
*/
2525
typedefstructElsetRec {
2626
intwhichconst;
27-
intsatnum;
27+
charsatid[6];
2828
intepochyr;
2929
intepochtynumrev;
3030
interror;

‎src/c/TLE.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ void parseLines(TLE *tle, char *line1, char *line2)
3333

3434
tle->rec.classification=line1[7];
3535

36-
tle->objectNum= (int)gd(line1,2,7);
36+
//tle->objectNum = (int)gd(line1,2,7);
37+
strncpy(tle->objectID,&line1[2],5);
38+
tle->objectID[5]=0;
3739

3840
tle->ndot=gdi(line1,35,44);
3941
if(line1[33]=='-')tle->ndot *=-1.0;
@@ -206,7 +208,8 @@ void setValsToRec(TLE *tle, ElsetRec *rec)
206208

207209
rec->elnum=tle->elnum;
208210
rec->revnum=tle->revnum;
209-
rec->satnum=tle->objectNum;
211+
strncpy(rec->satid,tle->objectID,5);
212+
//rec->satnum = tle->objectNum;
210213
rec->bstar=tle->bstar;
211214
rec->inclo=tle->incDeg*deg2rad;
212215
rec->nodeo=tle->raanDeg*deg2rad;

‎src/c/TLE.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ typedef struct TLE {
99
charline1[70];
1010
charline2[70];
1111
charintlid[12];
12-
intobjectNum;
12+
charobjectID[6];
1313
longepoch;
1414
doublendot;
1515
doublenddot;

‎src/c/TestSGP4.c

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