Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest by
Diff: main.cpp
- Revision:
- 8:5816bb17536b
- Parent:
- 7:0df17f3078bc
- Child:
- 9:3321170d157c
--- a/main.cpp Sat Apr 07 14:46:51 2012 +0000 +++ b/main.cpp Tue Apr 10 10:45:16 2012 +0000 @@ -105,10 +105,11 @@ // Tested modes: blobconf.clearConfig(); - blobconf.addOneElasticLoopContractCentral(); +// blobconf.addOneElasticLoopContractCentral(); // blobconf.addOneElasticContourFollowing(); -//blobconf.addOneRigidLoopBouncing(); +blobconf.addOneRigidLoopBouncing(); +blobconf.addOneRigidLoopBouncing(); // blobconf.addOneRigidLoopFollowing(); @@ -143,7 +144,7 @@ //NOTE: the updating period needs to be calculated as a function of the number of diplays points and the "refresh" rate of the laser. // THIS IS THE EQUICALENT OF "VERTICAL SYNCH"... - if (measureUpdatePeriod.read_ms()>3) { // 4 or 5 ms seems to be the minimum time required for performing one main loop (for a blob of 40 points) + if (measureUpdatePeriod.read_ms()>4) { // 4 or 5 ms seems to be the minimum time required for performing one main loop (for a blob of 40 points) // with laser rendering ISR every 110us (total loop time 4300us, 3100us of effective loop time, and each laser interrupt about 30us) measureUpdatePeriod.stop(); measureUpdatePeriod.reset();