Trees | Indices | Help |
---|
|
This is a concrete class that provides all the functionality needed to send messages to a pololu controller over a "pololu bus". This protocol follows the specifications provided by the Pololu Maestro Documentation found at: http://www.pololu.com/docs/0J40/all
For use with the Pololu Maestro 12pin, Firmware Version1.1
It is meant to mimic the can.Protocol class, except for the pololu device rather than a CAN network
This converts CKBot Module-specific commands into Pololu equivalents, and maintains the state of the Pololu device and its handles to modules via fake heartbeats u WARNING: Current version has only been tested with the 12-pin Pololu Maestro Firmwarev1.1 and does NOT support Pololu-styled commands (supports only MiniSSC2 and Compact), support for Pololu-styled commands will be included in a future release perhaps
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
POLOLU_BYTE = 0xAA
|
|
|||
Inherited from |
|
Initialize a pololu.Protocol INPUT: bus -- pololu.Bus -- Serial bus used to communicate with Pololu Device nodes -- dictionary -- key:module node_id, value:pololu controller number ATTRIBUTES: heartbeats -- dictionary -- key:nid, value:(timestamp) msgs -- dictionary -- a fake representation of a dictionary message, used so the pololu.Protocol can "dock" onto existing Cluster interfaces (provides the Module version) pna -- dictionary -- table of NodeID to ProtocolNodeAdaptor mappings FUTURE: buses -- may be a list of buses (Protocol can communicate with multiple buses by changing servonums)
|
Sends command to the Pololu Maestro via the Bus. INPUTS: nid -- int -- Node ID to send the command to cmd -- tuple of ints -- tuple of integer command values to send cmd_type -- int -- Type of command (MiniSSC2, Pololu, and Compact types are supported) |
Specify which nodes to expect on the bus
|
Updates the pololu.Protocol state that mimics the behaviour of can.Protocol. It updates timestamps of heartbeats heard on the bus.
|
Generates a pololu.ProtocolNodeAdaptor, associating a pololu protocol with a specific node id and returns it
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jan 4 16:46:17 2018 | http://epydoc.sourceforge.net |