Package me.autobot.code.mechanisms
Class LIDAR.WSLidarSensorConnection
java.lang.Object
me.autobot.lib.hardware.Connection
me.autobot.lib.hardware.ws.WSSensorConnection
me.autobot.code.mechanisms.LIDAR.WSLidarSensorConnection
- Enclosing class:
- LIDAR
The serial connection for the lidar sensor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResponse for the LIDAR sensor. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.autobot.lib.hardware.Connection
write
-
Constructor Details
-
WSLidarSensorConnection
public WSLidarSensorConnection()Creates a new WSLidarSensorConnection.
-
-
Method Details
-
onUpdate
public void onUpdate(int[] data) Called when the LIDAR sensor has new data.- Overrides:
onUpdatein classWSSensorConnection- Parameters:
data- The data from the LIDAR sensor.
-
addResponse
Adds a response to the LIDAR sensor.- Parameters:
response- The response to add.
-
getId
public int getId()Gets the ID of the sensor.- Overrides:
getIdin classWSSensorConnection- Returns:
- The ID of the sensor.
-