Merge pull request 'enum' (#145) from kranz_another_enum into main

Reviewed-on: #145
Reviewed-by: Robin Müller <muellerr@irs.uni-stuttgart.de>
This commit is contained in:
Robin Müller 2023-03-02 13:52:16 +01:00
commit e46f685607
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
@author J. Meier
@date 25.03.2021
"""
import enum
import logging
import struct
from typing import List
@ -46,7 +47,7 @@ class OpCode:
NEG_Z_SELF_TEST = "self_test_neg_z"
class ImtqSetId:
class ImtqSetId(enum.IntEnum):
ENG_HK_NO_TORQUE = 1
RAW_MTM_NO_TORQUE = 2
ENG_HK_SET_WITH_TORQUE = 3