Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
dynamixel
Commits
a4c3f268
Commit
a4c3f268
authored
Dec 10, 2020
by
Anders Blomdell
Browse files
Add Protocol-1 implementation
parent
3a43ddf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
dynamixel/channel/channel.py
View file @
a4c3f268
...
...
@@ -58,15 +58,12 @@ class Channel:
pass
class
Protocol1
:
pass
class
Protocol2
:
class
Protocol
:
def
__init__
(
self
,
port_handler
):
def
__init__
(
self
,
port_handler
,
packet_handler
):
self
.
port_handler
=
port_handler
self
.
packet_handler
=
sdk
.
P
acket
H
andler
(
2.0
)
self
.
packet_handler
=
p
acket
_h
andler
pass
def
read
(
self
,
servo
,
row
):
...
...
@@ -113,3 +110,19 @@ class Protocol2:
pass
class
Protocol1
(
Protocol
):
def
__init__
(
self
,
port_handler
):
super
(
Protocol1
,
self
).
__init__
(
port_handler
,
sdk
.
PacketHandler
(
1.0
))
pass
pass
class
Protocol2
(
Protocol
):
def
__init__
(
self
,
port_handler
):
super
(
Protocol2
,
self
).
__init__
(
port_handler
,
sdk
.
PacketHandler
(
2.0
))
pass
pass
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment