diff --git a/README.md b/README.md index c72159fb..667c9753 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/paseos/visualization/space_animation.py b/paseos/visualization/space_animation.py index 86b122cd..da36ae74 100644 --- a/paseos/visualization/space_animation.py +++ b/paseos/visualization/space_animation.py @@ -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)