@@ -11,8 +11,8 @@ static void Main(string[] args)
11
11
{
12
12
//Parse three line element
13
13
Tle tleISS = ParserTLE . parseTle (
14
- "1 25544U 98067A 18336.26376507 .00001452 00000-0 29279-4 0 9992 " ,
15
- "2 25544 51.6401 261.1281 0005200 105.2271 353.1713 15.54045047144653 " ,
14
+ "1 25544U 98067A 19097.23063721 -.00000469 00000-0 00000+0 0 9999 " ,
15
+ "2 25544 51.6449 353.9503 0002279 151.1697 290.4275 15.52495932164239 " ,
16
16
"ISS 1" ) ;
17
17
18
18
//Parse tle from file
@@ -65,7 +65,7 @@ static void Main(string[] args)
65
65
//TESTING MIR
66
66
67
67
//TEST ECI
68
- EpochTime T_eciTime = new EpochTime ( 09 , 00 , 00 , 1995 , 10 , 1 ) ;
68
+ EpochTime T_eciTime = new EpochTime ( 09 , 00 , 00 , 1995 , 10 , 1 ) ;
69
69
//Test GMST
70
70
if ( T_eciTime . getLocalSiderealTime ( ) == 2.524218 )
71
71
{
@@ -87,26 +87,6 @@ static void Main(string[] args)
87
87
var r = t_cord . toECI ( t_time . getLocalSiderealTime ( ) ) ;
88
88
89
89
90
- //TESTING
91
-
92
-
93
- //Calculate SubPoint of Satellite on ground
94
- while ( true )
95
- {
96
- One_Sgp4 . EpochTime time = new EpochTime ( DateTime . UtcNow ) ;
97
- var test = time . getEpoch ( ) ;
98
- Console . Out . WriteLine ( test ) ;
99
-
100
- var satpos = One_Sgp4 . SatFunctions . getSatPositionAtTime ( tleISS , time , Sgp4 . wgsConstant . WGS_72 ) ;
101
-
102
- Coordinate newC = new Coordinate ( 48.853333 , 2.348611 ) ;
103
- var look = SatFunctions . calcSphericalCoordinate ( newC , time , satpos ) ;
104
- One_Sgp4 . Coordinate satOnGround = One_Sgp4 . SatFunctions . calcSatSubPoint ( time , satpos , Sgp4 . wgsConstant . WGS_72 ) ;
105
- Console . Out . WriteLine ( satOnGround . toString ( ) + " - Azimuth: " + look . y + " Elevation: " + look . z ) ;
106
- Thread . Sleep ( 1000 ) ;
107
- }
108
-
109
-
110
90
//Calculate if Satellite is Visible for a certain Observer on ground at certain timePoint
111
91
bool satelliteIsVisible = One_Sgp4 . SatFunctions . isSatVisible ( observer , 0.0 , startTime , resultDataList [ 0 ] ) ;
112
92
@@ -118,7 +98,7 @@ static void Main(string[] args)
118
98
//for a location, Satellite, StartTime, Accuracy in Seconds = 15sec, MaxNumber of Days = 5 Days, Wgs constant = WGS_84
119
99
//Returns pass with Location, StartTime of Pass, EndTime Of Pass, Max Elevation in Degrees
120
100
List < Pass > passes = One_Sgp4 . SatFunctions . CalculatePasses ( observer , tleISS , new EpochTime ( DateTime . UtcNow ) , 15 , 5 , Sgp4 . wgsConstant . WGS_84 ) ;
121
- foreach ( var p in passes )
101
+ foreach ( var p in passes )
122
102
{
123
103
Console . Out . WriteLine ( p . ToString ( ) ) ;
124
104
}
0 commit comments