[Tinyos-help] Help with ADC

2007-06-12 Thread [EMAIL PROTECTED]
Hi i use tinyos 1.1, and i have a question: in SenseToInt there is a part of code that i don't understand: void task outputTask() { uint16_t rCopy; atomic { rCopy = reading; } call IntOutput.output(rCopy 7); } why there is 7?? i try to use the code with the sensor of

[Tinyos-help] help for ADC interface

2006-03-15 Thread wassim znaidi
i'm using the ADC interface for a sample application that collecte temperature data but in tossim the function getdata return random number when simulating wuth tossim so i want to setADC value to control the input value so please can anyone help me how to setADCvalue using nesc languagethanks