|
|
__init__(self,
device,
baud=38400,
readTimeout=None,
writeTimeout=None,
log=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
getError(self,
device=9,
message=True)
Get the error message or value stored in the Qik 2s9v1 hardware. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setDeviceID(self,
value,
device=9,
message=True)
Set the hardware device number. This is only needed if more that one
device is on the same serial buss. |
source code
|
|
|
|
|
|
|
setMotorShutdown(self,
value,
device=9,
message=True)
Set the motor shutdown on error status stored on the hardware device. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from qik.Qik:
close,
findConnectedDevices,
getConfigForDevice,
isCRC,
isCompactProtocol,
isOpen,
isPololuProtocol,
setCRC,
setCompactProtocol,
setPololuProtocol
Inherited from qik.Qik (private):
_genTimeoutList,
_getConfig,
_getDeviceID,
_getError,
_getFirmwareVersion,
_getMotorShutdown,
_getPWMFrequency,
_getSerialTimeout,
_setConfig,
_setDeviceID,
_setM0Speed,
_setM1Speed,
_setMotorShutdown,
_setPWMFrequency,
_setSerialTimeout,
_setSpeed,
_writeData
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
|
DEFAULT_DEVICE_ID = 9
|
|
|
DEFAULT_SERIAL_TIMEOUT = 0.262
|
|
|
_COMMAND = {'get-config': 3, 'get-error': 2, 'get-fw-version':...
|
|
|
_ERRORS = {0: 'OK', 1: 'Bit 0 Unused', 2: 'Bit 1 Unused', 4: '...
|
|
|
DEVICE_ID = 0
|
|
|
PWM_PARAM = 1
|
|
|
MOTOR_ERR_SHUTDOWN = 2
|
|
|
SERIAL_TIMEOUT = 3
|
|
|
_CONFIG_NUM = {0: 'Device ID', 1: 'PWM Parameter', 2: 'Shutdow...
|
|
|
_CONFIG_PWM = {0: (31500, '7-Bit, PWM Frequency 31.5kHz'), 1: ...
|
|
|
_CONFIG_PWM_TO_VALUE = {3900: 3, 7800: 2, 15700: 1, 31500: 0}
|
|
|