[Tinyos-help] about the "PIR_THRESHOLD" value
campbell gao
campbellgao at gmail.com
Mon Jul 3 05:46:22 PDT 2006
hi ,
could i change the "PIR_THRESHOLD" value for MSP410??
now i refer the detect program(in /opt/MoteWorks/apps/xmesh/XMSP410) to
write a experiment program.
but i find that in the sensorboardApp.h(the same folder) and detect.nc ,
there is a "PIR_THRESHOLD" value .
This value is set to tell the mica processor : when the pir value is top of
"PIR_THRESHOLD"(?? or the difference between two samples is top of the
value??) , then the quad is detected ,right ??
and my question is how to change it or use it in my program ??( i need to
set the THRESHOLD in my program,too)
i search every folder (in /opt,especially the /tos folder) for this value,
but the result is none except in the sensorboardApp.h.
i try to change the value ,and use it like this in my .nc file :
# define PIR_THRESHOLD 150
but i am not exact sure whether this is right!?
and after the value change (from 736 in the sensorboardApp.h to 150 in my
program) , how will the result be changed??
best wishes
campbell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060703/27279b36/attachment-0001.html
More information about the Tinyos-help
mailing list