New ScreenPanel
This commit is contained in:
24
plugins/RotationReadback.java
Executable file
24
plugins/RotationReadback.java
Executable file
@@ -0,0 +1,24 @@
|
||||
|
||||
import ch.psi.pshell.device.AccessType;
|
||||
import ch.psi.pshell.epics.ChannelDouble;
|
||||
import ch.psi.utils.Convert;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 Paul Scherrer Institute. All rights reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class RotationReadback extends ChannelDouble {
|
||||
|
||||
public RotationReadback(String name, String channelName) {
|
||||
super(name, channelName);
|
||||
setAccessType(AccessType.Read);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Double convertFromRead(Double value) {
|
||||
return Convert.toDegrees0To360(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user