Make sure that a posit motor transitions back to IDLE if the motor it depends on has been first driven directly.

This commit is contained in:
Ferdi Franceschini
2013-09-10 14:13:50 +10:00
parent 83ae576551
commit 6c6f100c0f

View File

@@ -84,6 +84,7 @@ proc mkPosit {sct_controller name type motor klass table} {
hset /sics/$name/driving "false"
proc ${ns}::${motor}_MOTEND {} [subst -nocommands {
hset /sics/$name/driving "false"
if { [hval /sics/$name/status] == "BUSY"} {
hset /sics/$name/status "STOPPING"
}