Skip to content

Commit

Permalink
Fixed parser error wenn name has line number
Browse files Browse the repository at this point in the history
  • Loading branch information
reed committed Jun 26, 2016
1 parent 69edace commit 3e37a89
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 0 deletions.
Binary file modified One_Sgp4.v12.suo
Binary file not shown.
4 changes: 4 additions & 0 deletions One_Sgp4/ParserTLE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ public static Tle parseTle(string tleLine1, string tleLine2,
{
tleName = startYear + startNumber + intDes;
}
if (tleName[0] == '0' && tleName[1] == ' ')
{
tleName = tleName.Remove(0, 2);
}

Tle ret = new Tle(tleName, noradId, (Enum.satClass)satCl, startYear, startNumber, intDes,
epochYear, epochDay, firstMeanMotion, secondMeanMotion, dragTerm,
Expand Down
Binary file modified One_Sgp4/bin/Debug/One_Sgp4.dll
Binary file not shown.
Binary file modified One_Sgp4/bin/Debug/One_Sgp4.pdb
Binary file not shown.
Binary file modified One_Sgp4/obj/Debug/One_Sgp4.dll
Binary file not shown.
Binary file modified One_Sgp4/obj/Debug/One_Sgp4.pdb
Binary file not shown.

0 comments on commit 3e37a89

Please sign in to comment.