Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest by
Diff: main.cpp
- Revision:
- 27:1ce994629ffc
- Parent:
- 25:74cb85b85fd2
- Child:
- 28:44b7b6e35548
--- a/main.cpp Mon Jun 18 12:39:28 2012 +0000 +++ b/main.cpp Mon Jun 18 15:09:25 2012 +0000 @@ -376,6 +376,21 @@ } } +else if (!strcmp(address[0], "spot_fountain")) { + int value=data[0]; + if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data) + + timerForRendering.detach(); + // blobconf.computeBoundingBox(); + blobconf.clearConfig(); + + for (int i=0; i<value ; i++) blobconf.addOneRigidLoopFountain(); + + lsr.setConfigToRender(&blobconf); + timerForRendering.attach(&lsr, &simpleLaserSensingRenderer::laserRenderThread, RENDER_INTERVAL); + // timerForRendering.attach(&lsr, &simpleLaserSensingRenderer::laserRenderThreadONEBLOBONLY, RENDER_INTERVAL); + } + } else if (!strcmp(address[0], "spot_following")) { int value=data[0]; if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data)