Skip to content

Commit

Permalink
Merge pull request #147 from aidotse/temp_in_celsiu
Browse files Browse the repository at this point in the history
Added temperature_in_C
  • Loading branch information
gomezzz committed Feb 27, 2023
2 parents ca2d72c + 87276b0 commit a8126c7
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 a8126c7

Please sign in to comment.