minor changes to make scripts work

This commit is contained in:
Keenan Lang
2016-09-14 16:56:51 -05:00
parent 12aed591cc
commit 09718c6e02
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -1,3 +1,4 @@
IdlePollPeriod = 1.00
MovingPollPeriod = 0.25
lastPos = 0
@@ -26,9 +27,14 @@ end
function poll()
local curr = epics.get(READBACK_PV)
local MRES = asyn.getDoubleParam( DRIVER, AXIS, "MOTOR_REC_RESOLUTION")
if (MRES == 0.0) then
return true
end
local curr = epics.get(READBACK_PV)
asyn.setDoubleParam( DRIVER, AXIS, "MOTOR_POSITION", curr / MRES)
local done = 0