roboglia.dynamixel.DynamixelAXBaudRateRegister¶
-
class
DynamixelAXBaudRateRegister
(**kwargs)[source]¶ Bases:
roboglia.base.register.BaseRegister
Implements a representation of a baud rate register for AX servos.
Defaults min to 1 and max to 207 and implements the mapping between the internal number and the real baud rates.
For AX Dynamixel the baud rate codes are:
Code
Baud rate
1
1000000
3
500000
4
400000
7
250000
9
200000
16
115200
34
57600
103
19200
207
9600
-
__str__
()¶ Representation of the register [name]: value.
-
property
access
¶ Register’s access mode.
-
property
address
¶ The register’s address in the device.
-
property
clone
¶ Indicates the register is a clone of another.
-
property
default
¶ The register’s default value in internal format.
-
property
device
¶ The device the register belongs to.
-
property
int_value
¶ Internal value of register, if a clone return the value of the main register.
-
property
max_ext
¶ The register’s maximum value in external format.
-
property
maxim
¶ The register’s maximum value in internal format.
-
property
min_ext
¶ The register’s minimum value in external format.
-
property
minim
¶ The register’s minimum value in internal format.
-
property
name
¶ Register’s name.
-
property
order
¶ Indicates the order of the data representartion; low-high (LH) or high-low (HL)
-
property
range
¶ Tuple with (minim, maxim) values in internal format.
-
property
range_ext
¶ Tuple with (minim, maxim) values in external format.
-
read
()¶ Performs the actual reading of the internal value of the register from the device. Calls the device’s method to read the value of register.
-
property
size
¶ The regster’s size in Bytes.
-
property
sync
¶ Register is subject to a sync loop update.
-
property
value
¶ Provides the value of the register in external format. If the register is not marked for
sync
then it requests the device to perform aread
in order to refresh the content of the register.- Returns
The value of the register in the external format. It invokes
value_to_external()
which can be overridden by subclasses to provide different representations of the register’s value (hence theany
return type).- Return type
any
-
property
word
¶ Indicates if the register is an 16 bit register (
True
) or an 8 bit register.
-
write
()¶ Performs the actual writing of the internal value of the register to the device. Calls the device’s method to write the value of register.
-