chore: update satellite.js to version 6.0.0 and improve position validation in calculations
This commit is contained in:
@ -66,7 +66,7 @@ export class SatelliteCalculator {
|
||||
|
||||
try {
|
||||
const positionAndVelocity = propagate(satrec, jsDate);
|
||||
if (typeof positionAndVelocity.position === 'boolean') {
|
||||
if (positionAndVelocity === null) {
|
||||
console.warn(`卫星 ${satelliteId} 在时间 ${jsDate} 位置计算失败或已衰减。`);
|
||||
continue; // 跳过这个时间点
|
||||
}
|
||||
|
Reference in New Issue
Block a user