Tidy omron sct file, change id poll rate then regenerate
This commit is contained in:
@ -8,14 +8,19 @@ driver omron_hldc = {
|
||||
simulation_group = environment_simulation;
|
||||
|
||||
group = {
|
||||
readable = 1;
|
||||
priv = user;
|
||||
var id = {
|
||||
type = text
|
||||
read_function = read_id; read_command = '0501';
|
||||
readable = 10;
|
||||
type = text;
|
||||
read_function = read_id;
|
||||
read_command = '0501';
|
||||
}
|
||||
var distance = {
|
||||
type = float
|
||||
read_function = read_mm; read_command = '0201C02030008001'; }
|
||||
readable = 1;
|
||||
type = float;
|
||||
read_function = read_mm;
|
||||
read_command = '0201C02030008001';
|
||||
}
|
||||
}
|
||||
|
||||
code getValue = {%%
|
||||
|
@ -228,7 +228,7 @@ proc ::scobj::omron_hldc::mkDriver { sct_controller name } {
|
||||
|
||||
if {[string equal -nocase [SplitReply [environment_simulation]] "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/distance 1
|
||||
${sct_controller} poll ${scobj_hpath}/id 1
|
||||
${sct_controller} poll ${scobj_hpath}/id 10
|
||||
} else {
|
||||
::scobj::omron_hldc::sics_log 9 "[environment_simulation] => No poll/write for omron_hldc"
|
||||
}
|
||||
|
Reference in New Issue
Block a user