[Tinyos-2-commits] CVS: tinyos-2.x-contrib/tunit/tests/tinyos-2.x/tos/chips/cc2420/TestLplDefaultPeriodicDelivery TestRadioP.nc, 1.2, 1.3

David Moss mossmoss at users.sourceforge.net
Thu Oct 25 10:49:27 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x-contrib/tunit/tests/tinyos-2.x/tos/chips/cc2420/TestLplDefaultPeriodicDelivery
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14576/TestLplDefaultPeriodicDelivery

Modified Files:
	TestRadioP.nc 
Log Message:
Added Statistics buffering via FifoQueue. Removed the logDone() event from Statistics interface.  Fixed some Statistics wiring issues, and updated all tests to be compatible with the newest Statistics interface.  Added a Statistics test to make sure our statistics work on the embedded side.

Index: TestRadioP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x-contrib/tunit/tests/tinyos-2.x/tos/chips/cc2420/TestLplDefaultPeriodicDelivery/TestRadioP.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestRadioP.nc	30 Aug 2007 15:30:26 -0000	1.2
--- TestRadioP.nc	25 Oct 2007 17:48:52 -0000	1.3
***************
*** 188,191 ****
--- 188,193 ----
      
      call AveragePktStats.log("[Avg # Pkt Rx]", average);
+     call DetectRateStats.log("[Detects/Attempts %]", (float) (((float) (detects * 100)) / (float) attempts));
+     call TestPeriodicDelivery.done();
    }
    
***************
*** 196,208 ****
    
    /***************** Other Events ****************/
-   event void AveragePktStats.logDone() {
-     call DetectRateStats.log("[Detects/Attempts %]", (float) (((float) (detects * 100)) / (float) attempts));
-   }
-   
-   event void DetectRateStats.logDone() {
-     // Now that our stats are logged, we're done!
-     call TestPeriodicDelivery.done();
-   }
-   
    async event void ActiveMessageAddress.changed() {
    }
--- 198,201 ----



More information about the Tinyos-2-commits mailing list