Trees | Indices | Help |
---|
|
ServoModule Class has the basic functionality of ServoModules, with some exceptions listed below: - Pololu Modules cannot get_pos or is_slack - The Pololu Device allows for: - servo parameter settings - set speed - set neutral and various options for setting positions. We currently only use absolute positions however. For more information refer to the Pololu User Manual on p.6
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
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
|
Returns a correctly scaled module position INPUT: angle -- int -- between 9000 to -9000, in 100ths of degrees, 0 is neutral OUTPUT: corrected_angle -- int -- scaled between 0 and 255, 127 is neutral |
Returns true if the module is slack, none if go_slack has not been called yet. WARNING: This function does NOT actually read states from the pololu device, returns an attribute that is updated by calls to set_pos and go_slack. If any external communications fail, then this function may report incorrect states
|
Returns the 'believed' position of the module, none if set_pos has not been called yet. WARNING: This function does NOT actually read states from the pololu device, returns an attribute that is updated by calls to set_pos and go_slack. If any external communications fail, then this function may report incorrect states
|
Equivalent of setting a ServoModule slack. This is referred to as "off" as specified in the Pololu User Manual under the Command 0
|
Sets the position of a pololu module. Uses the Pololu Set Absolute Position (Command 4) specified by the Pololu User Manual INPUT: pos -- int -- the desired position of the module, value between 9000 and -9000
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jan 4 16:46:17 2018 | http://epydoc.sourceforge.net |