mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/SPATZ.git
synced 2025-09-29 05:17:33 +00:00
Updated sensors and added empty logger for speedup
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from spatz.simulations.rocketpy import RocketPyCSV
|
@@ -20,6 +20,9 @@ class DataSource(Advanceable):
|
||||
speed = np.linalg.norm(self.get_velocity('global'))
|
||||
|
||||
return speed / self.get_speed_of_sound()
|
||||
|
||||
def get_temperature(self) -> float:
|
||||
return Atmosphere(self.get_altitude()).temperature
|
||||
|
||||
@abstractmethod
|
||||
def get_length(self) -> float:
|
||||
@@ -57,10 +60,6 @@ class DataSource(Advanceable):
|
||||
def get_static_pressure(self) -> float:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_temperature(self) -> float:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_longitude(self) -> float:
|
||||
pass
|
||||
|
@@ -72,9 +72,6 @@ class RocketPyCSV(CSVSource):
|
||||
def get_static_pressure(self) -> float:
|
||||
return self.fetch_value(' Pressure (Pa)')
|
||||
|
||||
def get_temperature(self) -> float:
|
||||
raise NotImplementedError()
|
||||
|
||||
def get_longitude(self) -> float:
|
||||
return self.fetch_value(' Longitude (°)')
|
||||
|
||||
|
Reference in New Issue
Block a user