Package ckbot :: Module hitec :: Class HitecModule
[hide private]
[frames] | no frames]

Class HitecModule

source code


Instance Methods [hide private]
 
__init__(self, node_id, typecode, pna, *argv, **kwarg)
Concrete constructor.
source code
 
getEEPROM(self)
Access the module's EEPROM.
source code
 
is_slack(self)
Returns true if the module is slack, none if go_slack has not been called yet.
source code
 
go_slack(self)
Sets *ALL* servos on the Bus slack
source code

Inherited from ckmodule.Module: get_od, iterattr, iterhwaddr, iterprop, reset, start, stop

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

Class Methods [hide private]

Inherited from ckmodule.Module: newFromDiscovery

Class Variables [hide private]

Inherited from ckmodule.Module: Types

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, node_id, typecode, pna, *argv, **kwarg)
(Constructor)

source code 

Concrete constructor. 

ATTRIBUTES:
  node_id -- 7 bit number to address a module uniquely
  typecode -- version number of module code 
  pna -- ProtocolNodeAdaptor -- specialized for this node_id

Overrides: object.__init__
(inherited documentation)

getEEPROM(self)

source code 

Access the module's EEPROM.

WARNING: can only be used when there is a SINGLE servo on bus

WARNING: data is only written when the .write() method is called
  on the .eeprom object. Without that, changes will be lost