brian.motors
- UNLIMITED_ACCELERATION
- UNLIMITED_TORQUE
- UNLIMITED_POWER
- MotorException
- MotorAlreadyClosedError
- MotorInitializationFailedError
- MotorPortAlreadyInUse
- MotorIsNotReadyError
- MotorIncompatibleTypeError
- MotorNotConnectedError
- get_wait_until_timeout_ms
- set_wait_until_timeout_ms
UNLIMITED_ACCELERATION
Maximum available acceleration limit (disables speed ramping)
UNLIMITED_TORQUE
Maximum available torque limit
UNLIMITED_POWER
Maximum available power limit
MotorException class objects
Default motor Exception
MotorAlreadyClosedError class objects
Thrown when trying to access closed Motor
MotorInitializationFailedError class objects
Thrown when motor initialization fails during init
MotorPortAlreadyInUse class objects
Thrown when trying to register motor or motor probe with port mode to already used port
MotorIsNotReadyError class objects
Thrown when trying to operate on a motor that is not ready.
This is the base class for motor readiness exceptions. Catching this exception will also catch MotorIncompatibleTypeError and MotorNotConnectedError.
MotorIncompatibleTypeError class objects
Thrown when a motor of a different type than expected is connected.
Catching this exception will also catch MotorNotConnectedError.
MotorNotConnectedError class objects
Thrown when no motor is connected to the specified port.
get_wait_until_timeout_ms
Get the current timeout value for waitUntilReady operations in milliseconds.
set_wait_until_timeout_ms
Set the default timeout value for waitUntilReady operations in milliseconds.
This timeout is used by all motor operations that internally wait for the motor to be ready (e.g., current_angle, coast, rotate, etc.).
Arguments:
timeout_ms- Timeout in milliseconds for internal wait-until-ready calls.- positive: wait up to that many milliseconds
- 0 or negative: return/raise immediately without waiting