Fix chopper frequency modification.
This commit is contained in:
@ -91,7 +91,7 @@ driver astrium_chopper = {
|
||||
set rhs "[string trim [lindex ${lst} 1]]"
|
||||
sct "attr_${lhs}" "${rhs}"
|
||||
set base [pathname [sct]]
|
||||
switch [string toupper [string trim ${node}]] {
|
||||
switch [string toupper ${lhs}] {
|
||||
"ASPEED" {
|
||||
if [string is double "${rhs}"] {
|
||||
set freq [expr "${rhs}" / 60.0]
|
||||
@ -100,7 +100,7 @@ driver astrium_chopper = {
|
||||
}
|
||||
}
|
||||
}
|
||||
"RSPEED" "APHASE" "RPHASE" "MASTER" {
|
||||
"RSPEED" - "APHASE" - "RPHASE" - "MASTER" {
|
||||
if { "[hval ${base}/${node}]" != "${rhs}" } {
|
||||
hset ${base}/${node} "${rhs}"
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ proc ::scobj::astrium_chopper::readState {tc_root} {
|
||||
set rhs "[string trim [lindex ${lst} 1]]"
|
||||
sct "attr_${lhs}" "${rhs}"
|
||||
set base [pathname [sct]]
|
||||
switch [string toupper [string trim ${node}]] {
|
||||
switch [string toupper ${lhs}] {
|
||||
"ASPEED" {
|
||||
if [string is double "${rhs}"] {
|
||||
set freq [expr "${rhs}" / 60.0]
|
||||
@ -183,7 +183,7 @@ proc ::scobj::astrium_chopper::readState {tc_root} {
|
||||
}
|
||||
}
|
||||
}
|
||||
"RSPEED" "APHASE" "RPHASE" "MASTER" {
|
||||
"RSPEED" - "APHASE" - "RPHASE" - "MASTER" {
|
||||
if { "[hval ${base}/${node}]" != "${rhs}" } {
|
||||
hset ${base}/${node} "${rhs}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user