Skip to content
Snippets Groups Projects
Commit 03a5b873 authored by Robin.Mueller's avatar Robin.Mueller
Browse files

added gyro

parent c0f9755e
Branches
No related tags found
No related merge requests found
......@@ -138,7 +138,17 @@ class Service3TM(PusTelemetry):
self.validity_buffer = self._tm_data[13:]
def handle_gyro_hk_data(self):
pass
self.numberOfParameters = 3
if len(self._tm_data) < 21:
LOGGER.error("Format of thermal sensor HK data might be invalid!")
return
self.hkHeader = ["AngVel X", "Ang Vel Y", "AngVel Z"]
angular_velocity_x = struct.unpack('!f', self._tm_data[8:12])[0]
angular_velocity_y = struct.unpack('!f', self._tm_data[12:16])[0]
angular_velocity_z = struct.unpack('!f', self._tm_data[16:20])[0]
self.hkContent = [angular_velocity_x, angular_velocity_y, angular_velocity_z]
self.validity_buffer = self._tm_data[20:]
Service3TM: Type[PusTelemetry]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment