mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/SPATZ.git
synced 2025-06-10 18:15:59 +00:00
Transformed GPS output to degrees
This commit is contained in:
parent
bf715a3f31
commit
537f462601
@ -1,3 +1,4 @@
|
|||||||
|
import math
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from typing import Any, List
|
from typing import Any, List
|
||||||
@ -34,4 +35,7 @@ class GPS(Sensor):
|
|||||||
x = self._dataset.fetch_values(['latitude', 'longitude', 'altitude'])
|
x = self._dataset.fetch_values(['latitude', 'longitude', 'altitude'])
|
||||||
x = self._sensor_specific_effects(x)
|
x = self._sensor_specific_effects(x)
|
||||||
|
|
||||||
|
# Convert to degrees.
|
||||||
|
x * 180 / math.pi
|
||||||
|
|
||||||
return x
|
return x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user