[Tinyos-2-commits] CVS: tinyos-2.x/apps/MViz MVizSensorC.nc, NONE, 1.1.2.1 MVizAppC.nc, 1.1.2.4, 1.1.2.5 README.txt, 1.1.2.2, 1.1.2.3

Phil Levis scipio at users.sourceforge.net
Sun Nov 5 11:55:09 PST 2006


Update of /cvsroot/tinyos/tinyos-2.x/apps/MViz
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24715

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	MVizAppC.nc README.txt 
Added Files:
      Tag: tinyos-2_0_devel-BRANCH
	MVizSensorC.nc 
Log Message:
Make the default sensor a sine wave.


--- NEW FILE: MVizSensorC.nc ---
/**
 * The default sensor for MViz is a simple sine wave.
 *
 * @author Philip Levis
 */

generic configuration MVizSensorC()
{
  provides interface Read<uint16_t>;
}
implementation
{
  components new SineSensorC() as DemoChannel;

  Read = DemoChannel;
}

Index: MVizAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/MVizAppC.nc,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** MVizAppC.nc	31 Oct 2006 01:26:34 -0000	1.1.2.4
--- MVizAppC.nc	5 Nov 2006 19:55:07 -0000	1.1.2.5
***************
*** 23,27 ****
  implementation {
    components MainC, MVizC, LedsC, new TimerMilliC(), 
!     new DemoSensorC() as Sensor, RandomC;
  
    //MainC.SoftwareInit -> Sensor;
--- 23,27 ----
  implementation {
    components MainC, MVizC, LedsC, new TimerMilliC(), 
!     new MVizSensorC() as Sensor, RandomC;
  
    //MainC.SoftwareInit -> Sensor;

Index: README.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/README.txt,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** README.txt	31 Oct 2006 01:26:34 -0000	1.1.2.2
--- README.txt	5 Nov 2006 19:55:07 -0000	1.1.2.3
***************
*** 17,21 ****
  This will cause the MViz java tool to parse the fields of MVizMsg and make
  them displayable. As nodes send readings to the base station, they will be
! displayed in the GUI. Please refer to the MViz tutorial for further information.
  
  Tools:
--- 17,26 ----
  This will cause the MViz java tool to parse the fields of MVizMsg and make
  them displayable. As nodes send readings to the base station, they will be
! displayed in the GUI. 
! 
! By default, the TinyOS program uses an artificial demonstration sensor that
! just generates a sine wave (MVizSensorC). To change the sensor that
! the MViz application uses, change the wiring in MVizAppC to your sensor
! of choice.
  
  Tools:



More information about the Tinyos-2-commits mailing list