Skip to content

Commit 04b3937

Browse files
MGross21michal-milkowski
authored andcommitted
Refactor Command class constants to use ord() for numerical clarity (Valid for python 2/3)
1 parent 29f02eb commit 04b3937

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

rtde/rtde.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939

4040

4141
class Command:
42-
RTDE_REQUEST_PROTOCOL_VERSION = 86 # ascii V
43-
RTDE_GET_URCONTROL_VERSION = 118 # ascii v
44-
RTDE_TEXT_MESSAGE = 77 # ascii M
45-
RTDE_DATA_PACKAGE = 85 # ascii U
46-
RTDE_CONTROL_PACKAGE_SETUP_OUTPUTS = 79 # ascii O
47-
RTDE_CONTROL_PACKAGE_SETUP_INPUTS = 73 # ascii I
48-
RTDE_CONTROL_PACKAGE_START = 83 # ascii S
49-
RTDE_CONTROL_PACKAGE_PAUSE = 80 # ascii P
42+
RTDE_REQUEST_PROTOCOL_VERSION = ord('V') # V=86
43+
RTDE_GET_URCONTROL_VERSION = ord('v') # v=118
44+
RTDE_TEXT_MESSAGE = ord('M') # M=77
45+
RTDE_DATA_PACKAGE = ord('U') # U=85
46+
RTDE_CONTROL_PACKAGE_SETUP_OUTPUTS = ord('O') # O=79
47+
RTDE_CONTROL_PACKAGE_SETUP_INPUTS = ord('I') # I=73
48+
RTDE_CONTROL_PACKAGE_START = ord('S') # S=83
49+
RTDE_CONTROL_PACKAGE_PAUSE = ord('P') # P=80
5050

5151

5252
RTDE_PROTOCOL_VERSION_1 = 1

0 commit comments

Comments
 (0)