Skip to content

Commit

Permalink
Added temprature_in_C
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezzz committed Feb 23, 2023
1 parent badebf3 commit 87276b0
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit 87276b0

Please sign in to comment.