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;
|
simulation_group = environment_simulation;
|
||||||
|
|
||||||
group = {
|
group = {
|
||||||
readable = 1;
|
priv = user;
|
||||||
var id = {
|
var id = {
|
||||||
type = text
|
readable = 10;
|
||||||
read_function = read_id; read_command = '0501';
|
type = text;
|
||||||
|
read_function = read_id;
|
||||||
|
read_command = '0501';
|
||||||
}
|
}
|
||||||
var distance = {
|
var distance = {
|
||||||
type = float
|
readable = 1;
|
||||||
read_function = read_mm; read_command = '0201C02030008001'; }
|
type = float;
|
||||||
|
read_function = read_mm;
|
||||||
|
read_command = '0201C02030008001';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
code getValue = {%%
|
code getValue = {%%
|
||||||
|
@ -228,7 +228,7 @@ proc ::scobj::omron_hldc::mkDriver { sct_controller name } {
|
|||||||
|
|
||||||
if {[string equal -nocase [SplitReply [environment_simulation]] "false"]} {
|
if {[string equal -nocase [SplitReply [environment_simulation]] "false"]} {
|
||||||
${sct_controller} poll ${scobj_hpath}/distance 1
|
${sct_controller} poll ${scobj_hpath}/distance 1
|
||||||
${sct_controller} poll ${scobj_hpath}/id 1
|
${sct_controller} poll ${scobj_hpath}/id 10
|
||||||
} else {
|
} else {
|
||||||
::scobj::omron_hldc::sics_log 9 "[environment_simulation] => No poll/write for omron_hldc"
|
::scobj::omron_hldc::sics_log 9 "[environment_simulation] => No poll/write for omron_hldc"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user