[Tinyos-2-commits]
CVS: tinyos-2.x/apps/MViz DemoSensorC.nc, 1.1.2.1,
1.1.2.2 MViz.h, 1.1.2.2, 1.1.2.3 MVizC.nc, 1.1.2.2, 1.1.2.3
Phil Levis
scipio at users.sourceforge.net
Sat Oct 28 00:27:06 PDT 2006
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/system ArbiterP.nc, 1.1.2.2,
1.1.2.3
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/java/net/tinyos/mviz
DDocument.java, 1.1.2.5, 1.1.2.6 DLayer.java, 1.1.2.4,
1.1.2.5 DMote.java, 1.1.2.2, 1.1.2.3 DNavigate.java, 1.1.2.4,
1.1.2.5 DShape.java, 1.1.2.3, 1.1.2.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/apps/MViz
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22339
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
DemoSensorC.nc MViz.h MVizC.nc
Log Message:
Tweaks for timing.
Index: DemoSensorC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/DemoSensorC.nc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** DemoSensorC.nc 25 Oct 2006 01:54:44 -0000 1.1.2.1
--- DemoSensorC.nc 28 Oct 2006 07:27:03 -0000 1.1.2.2
***************
*** 33,37 ****
task void readTask() {
float val = (float)counter;
! val = val / 100.0;
val = sin(val) * 4096.0;
val += 8192.0;
--- 33,37 ----
task void readTask() {
float val = (float)counter;
! val = val / 20.0;
val = sin(val) * 4096.0;
val += 8192.0;
Index: MViz.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/MViz.h,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** MViz.h 26 Oct 2006 00:37:22 -0000 1.1.2.2
--- MViz.h 28 Oct 2006 07:27:03 -0000 1.1.2.3
***************
*** 20,24 ****
enum {
/* Default sampling period. */
! DEFAULT_INTERVAL = 256,
AM_MVIZ_MSG = 0x93
};
--- 20,24 ----
enum {
/* Default sampling period. */
! DEFAULT_INTERVAL = 128,
AM_MVIZ_MSG = 0x93
};
Index: MVizC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MViz/Attic/MVizC.nc,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** MVizC.nc 26 Oct 2006 00:37:22 -0000 1.1.2.2
--- MVizC.nc 28 Oct 2006 07:27:03 -0000 1.1.2.3
***************
*** 176,179 ****
--- 176,183 ----
if (!sendbusy) {
mviz_msg_t *o = (mviz_msg_t *)call Send.getPayload(&sendbuf);
+ local.origin ^= 1;
+ if (local.origin == 1) {
+ local.reading = 13000 - local.reading;
+ }
memcpy(o, &local, sizeof(local));
if (call Send.send(&sendbuf, sizeof(local)) == SUCCESS)
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/system ArbiterP.nc, 1.1.2.2,
1.1.2.3
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/java/net/tinyos/mviz
DDocument.java, 1.1.2.5, 1.1.2.6 DLayer.java, 1.1.2.4,
1.1.2.5 DMote.java, 1.1.2.2, 1.1.2.3 DNavigate.java, 1.1.2.4,
1.1.2.5 DShape.java, 1.1.2.3, 1.1.2.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list