Commit a4c3f268 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Add Protocol-1 implementation

parent 3a43ddf4
......@@ -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.PacketHandler(2.0)
self.packet_handler = packet_handler
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment