From 15285dc29161669dcae48eb743667ece30332a85 Mon Sep 17 00:00:00 2001 From: Dworkowski Florian Date: Wed, 2 Dec 2015 08:52:44 +0100 Subject: [PATCH] Startup --- plugins/Microscope.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/Microscope.java b/plugins/Microscope.java index 1661085..7ac3b17 100644 --- a/plugins/Microscope.java +++ b/plugins/Microscope.java @@ -2,7 +2,8 @@ * Copyright (c) 2014 Paul Scherrer Institute. All rights reserved. */ -import ch.psi.pshell.device.Motor; + +import ch.psi.pshell.device.Positionable; import ch.psi.pshell.imaging.Overlay; import ch.psi.pshell.imaging.Overlays; import ch.psi.pshell.imaging.Pen; @@ -253,7 +254,7 @@ public class Microscope extends Panel { private void button0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button0ActionPerformed try{ - ((Motor)getDevice("omega")).moveAsync(0.0); + ((Positionable)getDevice("omega")).moveAsync(0.0); } catch (Exception ex){ showException(ex); } @@ -261,7 +262,7 @@ public class Microscope extends Panel { private void button90ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button90ActionPerformed try{ - ((Motor)getDevice("omega")).moveAsync(90.0); + ((Positionable)getDevice("omega")).moveAsync(90.0); } catch (Exception ex){ showException(ex); } @@ -269,7 +270,7 @@ public class Microscope extends Panel { private void button180ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button180ActionPerformed try{ - ((Motor)getDevice("omega")).moveAsync(180.0); + ((Positionable)getDevice("omega")).moveAsync(180.0); } catch (Exception ex){ showException(ex); } @@ -277,7 +278,7 @@ public class Microscope extends Panel { private void button270ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button270ActionPerformed try{ - ((Motor)getDevice("omega")).moveAsync(270.0); + ((Positionable)getDevice("omega")).moveAsync(270.0); } catch (Exception ex){ showException(ex); }