Make sure spin flipper code in rfamp.c is initialised
Fixed drive bugs in lakeshore drivers. r3071 | ffr | 2011-02-25 18:27:31 +1100 (Fri, 25 Feb 2011) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
009fdbfc29
commit
7371a561d9
@@ -374,7 +374,6 @@ debug_log "setValue $dev:16:$cmd $par"
|
||||
hset $tc_root/device_control/target [sct target]
|
||||
hset $tc_root/device_control/previous_error [expr [sct target] - [hval $tc_root/samplesensor]]
|
||||
hset $tc_root/status "busy"
|
||||
hsetprop $tc_root/setpoint driving 1
|
||||
return idle
|
||||
}
|
||||
|
||||
@@ -442,6 +441,7 @@ debug_log "setPoint $dev:1016:$cmd $par"
|
||||
set lolimit [hval $tc_root/lowerlimit]
|
||||
set hilimit [hval $tc_root/upperlimit]
|
||||
if {$setpoint < $lolimit || $setpoint > $hilimit} {
|
||||
sct driving 0
|
||||
error "setpoint violates limits"
|
||||
}
|
||||
return OK
|
||||
|
||||
Reference in New Issue
Block a user