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

Added temperature_in_C #147

Merged
merged 1 commit into from
Feb 27, 2023
Merged
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
11 changes: 10 additions & 1 deletion paseos/actors/spacecraft_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,19 @@ def temperature_in_K(self) -> float:
"""Returns the current temperature of the actor in K.

Returns:
float: Temperature in Kelvin.
float: Actor temperature in Kelvin.
"""
return self._thermal_model.temperature_in_K

@property
def temperature_in_C(self) -> float:
"""Returns the current temperature of the actor in C.

Returns:
float: Actor temperature in Celsius.
"""
return self._thermal_model.temperature_in_K - 273.15

@property
def state_of_charge(self):
"""Get the current battery level as ratio of maximum.
Expand Down