Added t0_chopper_freq for Bilby.

This commit is contained in:
Ferdi Franceschini
2014-07-16 15:02:49 +10:00
parent 3d6488e254
commit 423244858e

View File

@ -36,3 +36,17 @@ if {$sim_mode == false} {
sicslist setatt t0_chopper_id klass NXdisk_chopper
sicslist setatt t0_chopper_id long_name t0_chopper_id
sicslist setatt t0_chopper_id mutable true
if [dict exists $::config_dict disk_chopper name] {
set ch_name [dict get $::config_dict disk_chopper name]
} else {
clientput ERROR: Chopper configuration is missing
}
::utility::macro::getset float t0_chopper_freq [subst { {chopper $ch_name} }] {
set cid [SplitReply [t0_chopper_id]]
set rpm [hval /instrument/$chopper/disk_$cid/aspeed]
return [expr $rpm / 60.0]
}
sicslist setatt t0_chopper_freq klass NXdisk_chopper
sicslist setatt t0_chopper_freq long_name t0_chopper_freq
sicslist setatt t0_chopper_freq mutable true