Update of /cvsroot/firebug/fireboard/fireboard/apps/TestTaos
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26632
Modified Files:
testtaosM.nc
Log Message:
Sampling interval is now set and sampling started
from the test application. Sampling intervals of 500 ms appear
to be too fast for the device to respond, so default is set to
2000 ms, and the app was tested at 2500 and 4000 ms.
Index: testtaosM.nc
===================================================================
RCS file: /cvsroot/firebug/fireboard/fireboard/apps/TestTaos/testtaosM.nc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** testtaosM.nc 5 Jan 2004 21:03:27 -0000 1.1.1.1
--- testtaosM.nc 22 Jan 2004 21:53:40 -0000 1.2
***************
*** 30,34 ****
command result_t StdControl.init() {
-
init_debug();
call Leds.init();
--- 30,33 ----
***************
*** 37,41 ****
command result_t StdControl.start() {
! call TAOS.powerOn();
return SUCCESS;
}
--- 36,42 ----
command result_t StdControl.start() {
!
! call TAOS.setSamplingInterval(2500);
! call TAOS.startSampling();
return SUCCESS;
}
***************
*** 73,77 ****
call Leds.greenToggle();
! SODbg(DBG_USR2, "Taos Ch%i data: %i Cord: %i Step: %i ADC Counts: %i Light(lux): %i \n", channel, taos_data,cord,step,adc,(int)lux);
--- 74,78 ----
call Leds.greenToggle();
! SODbg(DBG_USR2, "Taos Ch%i data: %i Cord: %i Step: %i ADC Counts: %i Light(lux): %i \r\n", channel, taos_data,cord,step,adc,(int)lux);
***************
*** 80,86 ****
! event result_t TAOS.error(uint16_t error_code) {
! SODbg(DBG_USR2, "OVERFLOW\n");
return SUCCESS;
}
--- 81,87 ----
! async event result_t TAOS.error(uint16_t error_code) {
! SODbg(DBG_USR2, "OVERFLOW\r\n");
return SUCCESS;
}
|