Skip to content

Commit

Permalink
fix animation
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed Mar 6, 2024
1 parent 8dd364b commit 85d73a1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion animation/geostationary.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ arc_of_ascending_nodes = 360.0
eccentricity = 0.0

[[ground_station]]
name = "TU Berlin"
name = "TUBerlin"
lat = 52.51499
long = 13.32674
2 changes: 1 addition & 1 deletion animation/iridium.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ arc_of_ascending_nodes = 180.0
eccentricity = 0.0

[[ground_station]]
name = "TU Berlin"
name = "TUBerlin"
lat = 52.51499
long = 13.32674
2 changes: 1 addition & 1 deletion animation/kuiper.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ arc_of_ascending_nodes = 360.0
eccentricity = 0.0

[[ground_station]]
name = "TU Berlin"
name = "TUBerlin"
lat = 52.51499
long = 13.32674
2 changes: 1 addition & 1 deletion animation/oneweb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ arc_of_ascending_nodes = 360.0
eccentricity = 0.0

[[ground_station]]
name = "TU Berlin"
name = "TUBerlin"
lat = 52.51499
long = 13.32674
2 changes: 1 addition & 1 deletion animation/starlink.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ arc_of_ascending_nodes = 360.0
eccentricity = 0.0

[[ground_station]]
name = "TU Berlin"
name = "TUBerlin"
lat = 52.51499
long = 13.32674
8 changes: 5 additions & 3 deletions celestial/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import typing

import celestial.config
import celestial.types
import celestial.shell

EARTH_RADIUS_M = 6371000 # radius of Earth in meters

Expand Down Expand Up @@ -539,9 +541,9 @@ def makeInactiveSatsActor(self, shell_no: int, shell_total_sats: int) -> None:

# initialize all the positions
for i in range(len(self.sat_positions[shell_no])):
self.shell_inactive_actors[shell_no].satPointIDs[
i
] = self.shell_inactive_actors[shell_no].satVtkPts.InsertNextPoint(0, 0, 0)
self.shell_inactive_actors[shell_no].satPointIDs[i] = (
self.shell_inactive_actors[shell_no].satVtkPts.InsertNextPoint(0, 0, 0)
)

self.shell_inactive_actors[shell_no].satVtkVerts.InsertNextCell(1)
self.shell_inactive_actors[shell_no].satVtkVerts.InsertCellPoint(
Expand Down

0 comments on commit 85d73a1

Please sign in to comment.