|
@@ -111,7 +111,8 @@ namespace monitor
|
111
|
111
|
InvalidAnswer,
|
112
|
112
|
Busy,
|
113
|
113
|
CommunicationLostWithRobot,
|
114
|
|
- CommunicationLostWithServer
|
|
114
|
+ CommunicationLostWithServer,
|
|
115
|
+ CommunicationError
|
115
|
116
|
}
|
116
|
117
|
|
117
|
118
|
public struct Point {
|
|
@@ -259,6 +260,8 @@ namespace monitor
|
259
|
260
|
if (answer.ToUpper().Contains(DestijlCommandList.ANSWER_NACK)) status = CommandStatus.Rejected;
|
260
|
261
|
// if communication is lost with robot, return CommunicationLostWithRobot
|
261
|
262
|
else if (answer.ToUpper().Contains(DestijlCommandList.ANSWER_TIMEOUT)) status = CommandStatus.CommunicationLostWithRobot;
|
|
263
|
+
|
|
264
|
+ else if (answer.ToUpper().Contains(DestijlCommandList.ANSWER_COM_ERROR)) status = CommandStatus.CommunicationError;
|
262
|
265
|
// if answer is empty, communication with robot is lost
|
263
|
266
|
else if (answer.Length == 0) status = CommandStatus.CommunicationLostWithServer;
|
264
|
267
|
//else status = CommandStatus.InvalidAnswer;
|