bno055.connectors.uart module
- class bno055.connectors.uart.UART(node: rclpy.node.Node, baudrate, port, timeout)
Bases:
Connector
Connector implementation for serial UART connection to the sensor.
- CONNECTIONTYPE_UART = 'uart'
- connect()
Connect to the sensor.
- Returns:
- read(reg_addr, length)
Read data from sensor via UART.
- Parameters:
reg_addr – The register address
length – The data length
- Returns:
- write(reg_addr, length, data: bytes)
Transmit data packages to the sensor.
- Parameters:
reg_addr – The register address
length – The data length
- Returns: