Regenerate the affected drivers
This commit is contained in:
@@ -295,10 +295,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/alarm1 1
|
||||
${sct_controller} write ${scobj_hpath}/alarm1
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/alarm1 simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/alarm1 simulated true
|
||||
}
|
||||
|
||||
# Start of var: alarm2
|
||||
@@ -321,10 +321,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/alarm2 1
|
||||
${sct_controller} write ${scobj_hpath}/alarm2
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/alarm2 simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/alarm2 simulated true
|
||||
}
|
||||
|
||||
# Start of var: power
|
||||
@@ -343,10 +343,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/power 1
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/power simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/power simulated true
|
||||
}
|
||||
|
||||
# Start of var: powermax
|
||||
@@ -369,10 +369,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/powermax 1
|
||||
${sct_controller} write ${scobj_hpath}/powermax
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/powermax simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/powermax simulated true
|
||||
}
|
||||
|
||||
# Start of var: ramprate
|
||||
@@ -395,10 +395,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ramprate 1
|
||||
${sct_controller} write ${scobj_hpath}/ramprate
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ramprate simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ramprate simulated true
|
||||
}
|
||||
|
||||
# Start of var: sensor
|
||||
@@ -417,10 +417,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/sensor 1
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/sensor simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/sensor simulated true
|
||||
}
|
||||
|
||||
# Start of var: setpoint
|
||||
@@ -443,10 +443,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/setpoint 1
|
||||
${sct_controller} write ${scobj_hpath}/setpoint
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/setpoint simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/setpoint simulated true
|
||||
}
|
||||
|
||||
# Start of var: w_sp
|
||||
@@ -469,10 +469,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/w_sp 1
|
||||
${sct_controller} write ${scobj_hpath}/w_sp
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/w_sp simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/w_sp simulated true
|
||||
}
|
||||
|
||||
hsetprop ${scobj_hpath} data "true"
|
||||
@@ -499,10 +499,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/aux/decimal 2
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/aux/decimal simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/aux/decimal simulated true
|
||||
}
|
||||
|
||||
# Start of var: instatus
|
||||
@@ -520,10 +520,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/aux/instatus 2
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/aux/instatus simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/aux/instatus simulated true
|
||||
}
|
||||
|
||||
# Start of var: model
|
||||
@@ -541,10 +541,10 @@ proc ::scobj::west_6100::mkDriver { sct_controller name device_class simulation_
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/aux/model 2
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/aux/model simulated false
|
||||
} else {
|
||||
::scobj::west_6100::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for west_6100"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/aux/model simulated true
|
||||
}
|
||||
hsetprop ${scobj_hpath}/aux data "false"
|
||||
hsetprop ${scobj_hpath}/aux klass "@none"
|
||||
|
||||
Reference in New Issue
Block a user