Skip to content

Commit

Permalink
feat(frontend): ✨ Update globe and stats every second
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Grøtan Gregusson committed Apr 10, 2024
1 parent 23095e2 commit 5346221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/homeComponents/homeGlobe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useSatelliteStore } from "@/lib/store";
import { convertSatrec } from "@/lib/convertSatrec";

const SAT_RADIUS = 5; // Relative size of the satellite for visualization
const UPDATE_INTERVAL_MS = 100; // Update interval in milliseconds
const UPDATE_INTERVAL_MS = 1000; // Update interval in milliseconds
const EARTH_RADIUS_KM = 6371; // Earth radius in kilometers

export default function SatelliteGlobe() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { convertSatrec, SatelliteInfo } from "@/lib/convertSatrec";
import { useSatelliteStore } from "@/lib/store";
import { flag } from "country-emoji";

const updateInterval = 50;
const updateInterval = 1000;

export default function SatelliteDataHome() {
const { satelliteData, fetchAndSetSatelliteData, selectedSatellite } =
Expand Down

0 comments on commit 5346221

Please sign in to comment.