mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/SPATZ.git
synced 2025-12-18 01:48:03 +00:00
bugfixes for GPS and updated demo project
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import numpy as np
|
||||
|
||||
from typing import Any, List
|
||||
from numpy.linalg import norm
|
||||
|
||||
@@ -27,7 +29,7 @@ class GPS(Sensor):
|
||||
|
||||
# TODO: At which speed do we assume that GPS becomes unreliable?
|
||||
if vel / self._dataset.get_mach_number() > 1:
|
||||
return NA
|
||||
return np.array([0, 0, 0])
|
||||
|
||||
x = self._dataset.fetch_values(['latitude', 'longitude', 'altitude'])
|
||||
x = self._sensor_specific_effects(x)
|
||||
|
||||
Reference in New Issue
Block a user