Commit b9c7d8f9 authored by Xiaoying Pu's avatar Xiaoying Pu

now there's a lovely C script at 315 repo

parent 042ff909
......@@ -39,12 +39,14 @@ public class UDPController {
System.out.println("Step 1: wait for MouseTracker");
String aString = Integer.toString(INTERFACE_ID) + ","
+ Integer.toString(MESSAGE_ID) + ",WAITING";
System.out.println("target" + aString);
while (!message_received.equals(aString)) {
Object[] dataReceived = UDPHandler.receive(HOST, RECEIVE_PORT,
UDP_TIMEOUT, PACKET_LENGTH);
message_received = (String) dataReceived[0]; // May not be safe?
System.out.println((String) dataReceived[0]);
}
// "123,2,WAITING"
MESSAGE_ID++;
System.out.println("<<<" + message_received);
}
......
......@@ -100,7 +100,7 @@ public class Trial extends Thread {
System.out.println("TRIAL OBJ: Connecting to UDP");
// until this is done.....
//TODO this should later be a functional with param = actiontype
//actionQueue.add(new ShowDigitAction(ActionType.START_HWL_DIGIT));
actionQueue.add(new ShowDigitAction(ActionType.START_HWL_DIGIT));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment