Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix visualization example #144

Merged
merged 6 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ Alternatively to the default `paseos.PowerDeviceType.SolarPanel` you can also us

Note that at the moment only one power device is supported. Adding another will override the existing one.

You can check the battery's state of charge and level in Ws with:

```py
print(my_actor.state_of_charge)
print(my_actor.battery_level_in_Ws)
```

#### Thermal Modelling

To model thermal constraints on spacecraft we utilize a model inspired by the one-node model described in [Martínez - Spacecraft Thermal Modelling and Test](http://imartinez.etsiae.upm.es/~isidoro/tc3/Spacecraft%20Thermal%20Modelling%20and%20Testing.pdf). Thus, we model the change in temperature as
Expand Down
3 changes: 2 additions & 1 deletion paseos/visualization/space_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def _plot_actors(self) -> None:
obj.plot.trajectory.set_3d_properties(data[-n_points:, 2].T)

# update satellite position
obj.plot.point.set_data_3d(data[-1, :])
data_point = list(map(lambda el: [el], data[-1, :]))
obj.plot.point.set_data_3d(data_point)

# update text box
actor_info = self._populate_textbox(obj.actor)
Expand Down