From ef893dc9cc36f323d7c15dbdc2205e54adfa2a56 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Fri, 24 Feb 2017 15:52:50 +0100 Subject: [PATCH] --- config/plugins.properties | 2 +- .../usrapp/ForceDetection/ForceDetection.dtx | 3 +++ .../usr/usrapp/ForceDetection/comTcp.pgx | 12 +++++----- .../usrapp/ForceDetection/onCommandTcp.pgx | 3 ++- .../usrapp/ForceDetection/simulateEvents.pgx | 5 +++- .../usr/usrapp/ForceDetection/start.pgx | 2 +- script/RobotTCP.py | 23 ++++++++++--------- 7 files changed, 29 insertions(+), 21 deletions(-) diff --git a/config/plugins.properties b/config/plugins.properties index 10ac975..b758c0a 100644 --- a/config/plugins.properties +++ b/config/plugins.properties @@ -1,4 +1,4 @@ -MXSC-1.5.0.jar=enabled +MXSC-1.5.0.jar=disabled PuckDetection.java=disabled TestZMQ.java=disabled RobotModbus.java=disabled diff --git a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/ForceDetection.dtx b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/ForceDetection.dtx index 18d281e..42bd1f6 100644 --- a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/ForceDetection.dtx +++ b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/ForceDetection.dtx @@ -124,5 +124,8 @@ + + + \ No newline at end of file diff --git a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx index 876f3f1..9d0fbba 100644 --- a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx +++ b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx @@ -93,7 +93,7 @@ ex = "The variable does not exists" break case -2 - ex = "The variable library does not exists" + ex = "The variable library does not exist" break case -3 ex = "The index is out of range" @@ -130,7 +130,7 @@ return break case -2 - ex = "The variable library does not exists" + ex = "The variable library does not exist" return break case -3 @@ -147,10 +147,10 @@ endSwitch endFor break - case "get_str" - $exec("s = " + args[0]) - tx = s - break + //case "get_str" + // //$exec("s = " + args[0]) TODO: MAKES THE CONTROLLER TO CRASH! + // //tx = s + //break case "get_pnt" $exec("p = " + args[0]) $exec("t = " + args[0]) diff --git a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/onCommandTcp.pgx b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/onCommandTcp.pgx index 24be8be..df201ec 100644 --- a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/onCommandTcp.pgx +++ b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/onCommandTcp.pgx @@ -19,7 +19,8 @@ case "mount" toNum(args[0], puck, ok) toNum(args[1], sample, ok) - tx = "Mounting sample " + toString("", puck) + ":" + toString("", sample) + tx = "Mounting sample " + toString("", puck) + ":" + toString("", sample) + //taskCreate "mount",10,mount(puck, sample) break default ex = "Invalid command: " + cmd diff --git a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/simulateEvents.pgx b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/simulateEvents.pgx index 8af977a..bcbc273 100644 --- a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/simulateEvents.pgx +++ b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/simulateEvents.pgx @@ -1,12 +1,15 @@  + + +