ckbot :: pololu :: ProtocolNodeAdaptor :: Class ProtocolNodeAdaptor
[hide private]
[frames] | no frames]

Class ProtocolNodeAdaptor

source code


Utilizes the protocol along with nid to create an interface for a specific module

Instance Methods [hide private]
 
__init__(self, protocol, nid)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
go_slack(self) source code
 
set_pos(self, target)
Sends a command to the Pololu device over serial via the pololu.Protocol.send_cmd()
source code
 
get_typecode(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  MINISSC2_BYTE = 0xFF
  COMPACT_BYTE = 0x8F
  POLOLU_BYTE = 0xAA
  SLACK_MESSAGE = 0
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, protocol, nid)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

set_pos(self, target)

source code 

Sends a command to the Pololu device over serial via the pololu.Protocol.send_cmd()

INPUT: cmd_type -- int -- command type specified by the Pololu User Manual (see pololu.Protocol.send_cmd for more info.)

data -- int -- the payload data to send to the module