Add 'idle' subcommand to fermi motors.

This commit is contained in:
Ferdi Franceschini
2013-05-02 14:08:59 +10:00
parent ce78ec9b87
commit 68c45ff183

View File

@@ -546,6 +546,12 @@ namespace eval ::chopper {
return $SCode(OKOK) return $SCode(OKOK)
} }
proc idle {hpath node addr name} {
global SCode
hset $hpath/$node/control/idle_toggle 1
hsetprop $hpath/$node abort 1
return $SCode(OKOK)
}
} }
@@ -565,6 +571,7 @@ proc mkFSpeedMot {fmot hdbroot chnode addr lowlim uplim} {
permspd "::chopper::permSpd $hdbroot $chnode $addr"\ permspd "::chopper::permSpd $hdbroot $chnode $addr"\
start "::chopper::start $hdbroot $chnode $addr"\ start "::chopper::start $hdbroot $chnode $addr"\
stop "::chopper::Sstop $hdbroot $chnode $addr"\ stop "::chopper::Sstop $hdbroot $chnode $addr"\
idle "::chopper::idle $hdbroot $chnode $addr"\
}] }]
hsetprop $hdbroot/$chnode abort 0 hsetprop $hdbroot/$chnode abort 0
$fmot movecount 5000 $fmot movecount 5000