Tidy omron sct file, change id poll rate then regenerate

This commit is contained in:
Douglas Clowes
2014-06-17 14:24:49 +10:00
parent ed7c371080
commit 6ce8d3d577
2 changed files with 11 additions and 6 deletions

View File

@ -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 = {%%

View File

@ -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"
}