public class BNO055 extends java.lang.Object implements BNO055EventSensor
Modifier and Type | Field and Description |
---|---|
private static int |
DATA_RATE |
private java.io.BufferedReader |
input |
private java.util.List<BNO055Listener> |
listenerList |
private java.io.OutputStream |
output |
private BNO055Response |
response |
(package private) SerialPort |
serialPort |
private static int |
TIME_OUT |
private java.lang.String |
USBPort |
Constructor and Description |
---|
BNO055(java.lang.String USBPort) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(BNO055Listener listener) |
void |
close()
This should be called when you stop using the port.
|
BNO055Response |
getResponse() |
void |
init() |
void |
removeListener(BNO055Listener listener) |
void |
serialEvent(SerialPortEvent oEvent)
Handle an event on the serial port.
|
private void |
setPortProperty() |
private java.io.BufferedReader input
private java.io.OutputStream output
private static final int TIME_OUT
private static final int DATA_RATE
SerialPort serialPort
private final java.util.List<BNO055Listener> listenerList
private final java.lang.String USBPort
private BNO055Response response
private void setPortProperty()
public void init() throws SerialServiceException
init
in interface SerialSensor
SerialServiceException
public void close()
close
in interface SerialSensor
public void serialEvent(SerialPortEvent oEvent)
public BNO055Response getResponse()
public void addListener(BNO055Listener listener)
addListener
in interface BNO055EventSensor
public void removeListener(BNO055Listener listener)
removeListener
in interface BNO055EventSensor