Aded puck detection using Esera

This commit is contained in:
gac-S_Changer
2018-01-09 10:52:06 +01:00
parent ff1bfbe15c
commit c4ce826ae8
4 changed files with 91 additions and 76 deletions

View File

@@ -57,7 +57,6 @@ public class PuckDetection extends DeviceBase{
watchDog.start();
}
void subscriberTask(){
try{
setState(State.Ready);
@@ -68,9 +67,9 @@ public class PuckDetection extends DeviceBase{
try{
while (!Thread.currentThread().isInterrupted()) {
String type = subscriber.recvStr();
System.out.println(type);
//System.out.println(type);
String contents = subscriber.recvStr();
System.out.println(contents);
//System.out.println(contents);
processMessage(contents);
if (MainPanel.getInstance()!=null){
MainPanel.getInstance().repaint();