Massage the mercury pressure card driver
This commit is contained in:
@ -24,7 +24,8 @@ driver mercury_pres = {
|
|||||||
@ scan [lindex [split "$data" ":"] end] "%s" data
|
@ scan [lindex [split "$data" ":"] end] "%s" data
|
||||||
}
|
}
|
||||||
|
|
||||||
code Write_function setPoint = {
|
code Write_function setPoint = {%%
|
||||||
}
|
# TODO: Check if we can/must put the "mB" on this line
|
||||||
|
%%}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,13 @@ proc ::scobj::mercury_pres::setPoint {tc_root nextState cmd_str} {
|
|||||||
}
|
}
|
||||||
set par [sct target]
|
set par [sct target]
|
||||||
set cmd "${cmd_str}${par}"
|
set cmd "${cmd_str}${par}"
|
||||||
# setPoint hook code goes here
|
# setPoint hook code starts
|
||||||
|
# TODO: Check if we can/must put the "mB" on this line
|
||||||
|
# setPoint hook code ends
|
||||||
|
if { [hpropexists [sct] geterror] } {
|
||||||
|
debug_log ${tc_root} 9 "[sct] error: [sct geterror]"
|
||||||
|
error "[sct geterror]"
|
||||||
|
}
|
||||||
if { [hpropexists [sct] driving] } {
|
if { [hpropexists [sct] driving] } {
|
||||||
if { [hpropexists [sct] writestatus] && [sct writestatus] == "start" } {
|
if { [hpropexists [sct] writestatus] && [sct writestatus] == "start" } {
|
||||||
sct driving 1
|
sct driving 1
|
||||||
|
Reference in New Issue
Block a user