From 42156869daff06428bb6fe3be13e827d8e3d386e Mon Sep 17 00:00:00 2001 From: William Brannon Date: Fri, 9 Feb 2024 13:16:14 -0700 Subject: [PATCH] Fix named tuple for integrity status fault --- .../fusion_engine_client/messages/fault_control.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/fusion_engine_client/messages/fault_control.py b/python/fusion_engine_client/messages/fault_control.py index 475bf67e..1a87d8f9 100644 --- a/python/fusion_engine_client/messages/fault_control.py +++ b/python/fusion_engine_client/messages/fault_control.py @@ -91,13 +91,13 @@ class CoComLimit(NamedTuple): "value" / AutoEnum(Int8ul, CoComType), ) - class IntegrityStatus(NamedTuple): + class IntegerVal(NamedTuple): """! - @brief Integrity status specifier. + @brief Integer value specifier. """ - value: Int8ul + value: int = 0 - IntegrityStatusConstruct = Struct( + UInt8Construct = Struct( "value" / Int8ul, ) @@ -174,8 +174,8 @@ class QuectelTest(_class_gen.Bool): """ pass - @_class_gen.create_payload_class(FaultType.INTEGRITY_STATUS, _class_gen.IntegrityStatusConstruct) - class IntegrityStatus(_class_gen.IntegrityStatus): + @_class_gen.create_payload_class(FaultType.INTEGRITY_STATUS, _class_gen.UInt8Construct) + class IntegrityStatus(_class_gen.IntegerVal): """! @brief Simulate a specified integrity status failure (intended for factory test purposes only). """