@@ -108,7 +108,7 @@ def parse(block_subtype: DataBlockSubtype, payload: bytes) -> DataBlock:
108
108
DataBlockSubtype .LIN_ACCEL_REL : RelativeLinearAccelerationDB ,
109
109
DataBlockSubtype .LIN_ACCEL_ABS : AbsoluteLinearAccelerationDB ,
110
110
DataBlockSubtype .ANGULAR_VELOCITY : AngularVelocityDB ,
111
- DataBlockSubtype .VOLTAGE : VoltageDB
111
+ DataBlockSubtype .VOLTAGE : VoltageDB ,
112
112
}
113
113
114
114
subtype = SUBTYPE_CLASSES .get (block_subtype )
@@ -438,6 +438,7 @@ def __iter__(self):
438
438
yield "mission_time" , self .mission_time
439
439
yield "angular_velocity" , {"x" : self .x_axis , "y" : self .y_axis , "z" : self .z_axis , "magnitude" : self .magnitude }
440
440
441
+
441
442
class VoltageDB (DataBlock ):
442
443
"""Represents a voltage data block"""
443
444
@@ -473,10 +474,11 @@ def __len__(self) -> int:
473
474
return 8
474
475
475
476
def __str__ (self ):
476
- return f"""{ self .__class__ .__name__ } -> time: { self .mission_time } ms, id: { self .id } , voltage: { self .voltage } mV"""
477
+ return (
478
+ f"""{ self .__class__ .__name__ } -> time: { self .mission_time } ms, id: { self .id } , voltage: { self .voltage } mV"""
479
+ )
477
480
478
481
def __iter__ (self ):
479
482
yield "mission_time" , self .mission_time
480
483
yield "id" , self .id
481
484
yield "voltage" , self .voltage
482
-
0 commit comments