ckbot :: ckmodule :: MissingModule :: Class MissingModule
[hide private]
[frames] | no frames]

Class MissingModule

source code


Concrete class representing required modules that were not discovered during the call to Cluster.populate

Instances of this class "fake" servo and motor modules, and implement the MemIx interface.

The .msg attribute may contain a callable. If present, this callable will be called with messages describing any API calls made on the MissingModule. Typically, one may set: m.msg = ckbot.logical.progress

Instance Methods [hide private]
 
__init__(self, nid, name, pna=None)
Concrete constructor.
source code
 
get_od(self)
get_od is not supported on MissingModule-s
source code
 
mem_read(self, addr) source code
 
mem_write(self, addr, val) source code
 
go_slack(self) source code
 
is_slack(self) source code
 
set_pos(self, val) source code
 
set_speed(self, val) source code
 
set_torque(self, val) source code
 
get_pos(self) source code
 
get_speed(self) source code

Inherited from Module: iterattr, iterhwaddr, iterprop, reset, start, stop

Inherited from Module (private): _getAttrProperty, _getModAttrOfClp

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

Class Methods [hide private]

Inherited from Module: newFromDiscovery

Class Variables [hide private]
  TYPECODE = "<<missing>>"

Inherited from Module: Types

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, nid, name, pna=None)
(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)

get_od(self)

source code 

get_od is not supported on MissingModule-s

Overrides: Module.get_od