Calback for scripts when change puck loading
This commit is contained in:
@@ -697,11 +697,12 @@ public class Controller {
|
||||
try {
|
||||
if (puckLoading) {
|
||||
getMainFrame().evalAsync(name + ".enable(); " + name + ".polling = 100", true).handle(errorHandler);
|
||||
currentDetection = basePlate.getDetection();
|
||||
currentDetection = basePlate.getDetection();
|
||||
} else if (getState().isInitialized()) {
|
||||
getMainFrame().evalAsync(name + ".polling = 0; " + name + ".disable()", true).handle(errorHandler);
|
||||
onPuckScanned(null);
|
||||
onPuckScanned(null);
|
||||
}
|
||||
getMainFrame().evalAsync("onPuckLoadingChange(" + (puckLoading ? "True" : "False") + ")");
|
||||
} catch (Exception ex) {
|
||||
errorHandler.apply(null, ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user