File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ describe("getGroundTracksSync", () => {
257
257
test ( "1" , ( ) => {
258
258
const coords = getGroundTracksSync ( {
259
259
tle : tleArr ,
260
- optionalTimeMS : 1501039265000
260
+ startTimeMS : 1501039265000
261
261
} ) ;
262
262
expect ( coords . length ) . toBe ( 3 ) ;
263
263
@@ -271,7 +271,7 @@ describe("getGroundTracksSync", () => {
271
271
const timestamp = 1620583838732 ;
272
272
const result = await getGroundTracksSync ( {
273
273
tle : proxima2 ,
274
- optionalTimeMS : timestamp
274
+ startTimeMS : timestamp
275
275
} ) ;
276
276
expect ( result [ 0 ] [ 0 ] [ 0 ] ) . toBeCloseTo ( - 179.65354 ) ;
277
277
expect ( result [ 0 ] [ 0 ] [ 1 ] ) . toBeCloseTo ( 84.57353 ) ;
Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ export function getGroundTracks({
620
620
export function getGroundTracksSync ( {
621
621
tle,
622
622
stepMS = 1000 ,
623
- optionalTimeMS = Date . now ( ) , // TODO: change to startTimeMS for consistency
623
+ startTimeMS = Date . now ( ) ,
624
624
isLngLatFormat = true
625
625
} ) {
626
626
const parsedTLE = parseTLE ( tle ) ;
@@ -629,7 +629,7 @@ export function getGroundTracksSync({
629
629
const orbitTimeMS = getAverageOrbitTimeMS ( tleArr ) ;
630
630
const curOrbitStartMS = getLastAntemeridianCrossingTimeMS (
631
631
parsedTLE ,
632
- optionalTimeMS
632
+ startTimeMS
633
633
) ;
634
634
635
635
const foundCrossing = curOrbitStartMS !== - 1 ;
@@ -638,7 +638,7 @@ export function getGroundTracksSync({
638
638
639
639
const partialGroundTrack = getOrbitTrackSync ( {
640
640
tle : parsedTLE ,
641
- startTimeMS : optionalTimeMS ,
641
+ startTimeMS : startTimeMS ,
642
642
stepMS : _MS_IN_A_MINUTE ,
643
643
maxTimeMS : _MS_IN_A_DAY / 4
644
644
} ) ;
You can’t perform that action at this time.
0 commit comments