This commit is contained in:
2015-12-02 08:52:44 +01:00
parent d0c217d414
commit 15285dc291

View File

@@ -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);
}