Set fermi chopper direction when setting speed.
This commit is contained in:
@@ -60,7 +60,7 @@ namespace eval ::chopper {
|
||||
variable CW 0 CCW 1
|
||||
variable PROPGAIN 1 INTGAIN 2 PHGAIN 3
|
||||
variable POSDIR
|
||||
set POSDIR $CCW
|
||||
set POSDIR $CW
|
||||
|
||||
array set ch1_gains {
|
||||
24000 { 350 { 10 10 } { 10 10 } { 2.33 2.33 } }
|
||||
@@ -321,6 +321,7 @@ namespace eval ::chopper {
|
||||
set intGain [lindex $row 1 2 $dir]
|
||||
set phGain [lindex $row 1 3 $dir]
|
||||
|
||||
hset $hpath/$node/control/set_motor_dir $dir
|
||||
hset $hpath/$node/control/set_vetowin50 $vetowin
|
||||
hset $hpath/$node/control/set_prop_gain $propGain
|
||||
hset $hpath/$node/control/set_int_gain $intGain
|
||||
@@ -434,7 +435,7 @@ namespace eval ::chopper {
|
||||
hset $hpath/$node/control/stop 1
|
||||
hsetprop $hpath/$node abort 1
|
||||
}
|
||||
return $SCode(OKOK)
|
||||
return $SCode(OKOK)
|
||||
}
|
||||
|
||||
proc imot_SGetError {hpath node addr name} {
|
||||
|
||||
Reference in New Issue
Block a user