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
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
