Skip to content

v12.1.1#1297

Merged
thkruz merged 3 commits intomainfrom
develop
Apr 1, 2026
Merged

v12.1.1#1297
thkruz merged 3 commits intomainfrom
develop

Conversation

@thkruz
Copy link
Copy Markdown
Owner

@thkruz thkruz commented Apr 1, 2026

This pull request primarily updates the satellite sensor info box plugin to improve accuracy and robustness when displaying sensor and satellite data. It introduces more reliable methods for calculating satellite-sensor geometry, handles special cases for OEM satellites, and cleans up logic related to sensor disabling. Additionally, the version is bumped to 12.1.1, and a minor update is made to the short-term fences plugin.

Sensor Info Box Improvements:

  • Replaced direct calls to eci2rae and eci2lla with the SpaceObject.rae() and SpaceObject.lla() methods for more accurate, time-interpolated calculations of satellite-sensor geometry and location. Falls back to the old method if interpolation is unavailable. [1] [2]
  • Refactored the next pass calculation to a dedicated calculateNextPassText_ method, which now correctly handles OEM satellites (returns 'N/A (OEM)') and satellites beyond max sensor range (returns 'Beyond Max Range'). [1] [2]
  • Ensured that visual magnitude is shown as 'N/A' for OEM satellites in addition to missiles.

Logic and Cleanup:

  • Removed the check for settingsManager.isDisableSensors in sensor info display logic, so sensor info is now shown whenever a satellite and sensor are selected, regardless of the disable setting. [1] [2]
  • Removed unused import of eci2rae.

Version and Minor Plugin Updates:

  • Bumped version to 12.1.1 in both package.json and the version badge in README.md. [1] [2]
  • Added isVolumetric: true property to the short-term fences plugin configuration.

@thkruz thkruz self-assigned this Apr 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 23:10
@thkruz thkruz added the Bug label Apr 1, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying keeptrack-space with  Cloudflare Pages  Cloudflare Pages

Latest commit: 39f1326
Status: ✅  Deploy successful!
Preview URL: https://fa29d6da.keeptrack-space.pages.dev
Branch Preview URL: https://develop.keeptrack-space.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying keeptrack-space-embed with  Cloudflare Pages  Cloudflare Pages

Latest commit: 39f1326
Status: ✅  Deploy successful!
Preview URL: https://85d23631.keeptrack-space-embed.pages.dev
Branch Preview URL: https://develop.keeptrack-space-embed.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying celestrak-keeptrack with  Cloudflare Pages  Cloudflare Pages

Latest commit: 39f1326
Status: ✅  Deploy successful!
Preview URL: https://537f41d6.celestrak-keeptrack.pages.dev
Branch Preview URL: https://develop.celestrak-keeptrack.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the satellite sensor info box plugin to improve how sensor-related geometry and “next pass” information are computed/displayed (especially for OEM satellites), while also bumping the project version to 12.1.1 and making a small configuration tweak to the short-term fences plugin.

Changes:

  • Refactors OEM satellite look-angle/location handling to use SpaceObject.rae() / SpaceObject.lla() and adds OEM-specific “Next Pass”/VMAG display logic.
  • Extracts next-pass string generation into a dedicated helper and adjusts edge-case messaging (e.g., beyond max range).
  • Bumps version to 12.1.1 and marks STF sensors as volumetric.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/plugins/short-term-fences/short-term-fences.ts Marks STF-created sensors as volumetric via isVolumetric: true.
src/plugins/sat-info-box-sensor/sat-info-box-sensor.ts Improves sensor geometry/next-pass/VMAG handling, particularly for OEM satellites, and removes “disable sensors” gating from info visibility.
README.md Updates the version badge to 12.1.1.
package.json Bumps package version to 12.1.1.
package-lock.json Bumps lockfile package version to 12.1.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +300 to +309
// Use SpaceObject.rae() which properly interpolates the ephemeris at the exact time
const raeResult = obj.rae(sensor, timeManagerInstance.simulationTimeObj);

if (raeResult) {
rae = raeResult;
isInView = sensor.isRaeInFov(rae.az, rae.el, rae.rng);
} else {
rae = { az: 0, el: 0, rng: 0 };
isInView = false;
}
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When obj.rae(sensor, time) returns null for an OemSatellite, this code falls back to {az:0, el:0, rng:0} and forces isInView=false. This both diverges from the PR description (“falls back to the old method if interpolation is unavailable”) and can incorrectly mark an OEM sat out-of-view / hide range/az/el even when obj.position is available. Consider falling back to the legacy eci2rae(simTime, obj.position, sensor) (or another non-interpolated look-angle computation) when raeResult is null, similar to the lla() fallback below, or update the PR description if returning N/A is intentional.

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 1, 2026

@thkruz thkruz merged commit eab71e5 into main Apr 1, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants