Skip to content

Commit

Permalink
fix: growing the predicted minutes's interval for the passes over fea…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
Thibault Camlane committed Jun 18, 2025
1 parent 0d0db8c commit 2bf0d91
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useSatelliteStore } from "@/lib/store";
import { predictFuturePositions } from "@/lib/convertSatrec";
const updateInterval = 50; // in ms
const deltaDegree = 1; // Delta degree to check if the satellite is over the location
const predictedMinutes = 100000; // Number of minutes to predict future positions

export default function SatellitePassOverTime() {
//Computation of the time before the satellite pass over the selected location
Expand All @@ -29,7 +30,10 @@ export default function SatellitePassOverTime() {
const satData = satNumToEntry[selectedSatellite];

if (satData && satData.satrec) {
const futurePoints = predictFuturePositions(satData.satrec, 10000);
const futurePoints = predictFuturePositions(
satData.satrec,
predictedMinutes,
);
const nextPass = futurePoints.find(
(point) =>
Math.abs(
Expand Down

0 comments on commit 2bf0d91

Please sign in to comment.