Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
Diff: blobConfig.cpp
- Revision:
- 47:2312a8dc9658
- Parent:
- 46:90516893793a
- Child:
- 48:7633d8e7b0d3
--- a/blobConfig.cpp Tue Apr 01 11:34:37 2014 +0000 +++ b/blobConfig.cpp Tue Apr 01 14:57:37 2014 +0000 @@ -142,10 +142,10 @@ IO.setLaserLockinPower(1); } -void blobConfig::showParameters() { +void blobConfig::printParameters() { for (int i=0; i<blobArray.size(); i++) { pc.printf("Blob n.%d\n", i); - blobArray[i]->showParameters(); // a blob that is in stand-by mode may send data (good for testing with a fixed loop) + blobArray[i]->printParameters(); // a blob that is in stand-by mode may send data (good for testing with a fixed loop) } } @@ -229,10 +229,10 @@ pBlob->createBlob(blobArray.size(), SPOT_BOUNCING_FACTOR, initpos, initspeed); // (We can use here methods of the child class, even if these are not declared virtual on the base class, because we are doing this BEFORE // adding this to the blobArray as a pointer). This is good to set parameters... - pBlob->gravity.set(0,3.0); + pBlob->gravity.set(0,3.5); pBlob->centerMass.dampMotion = 0.002; pBlob->factorBouncingForce=0;//0.003; // this is because we will use a force on the central mass (not used in SPOT_BOUNCING_FACTOR) - pBlob->factorAbsorptionShock=0.8; // coef elastic bouncing + pBlob->factorAbsorptionShock=0.9; // coef elastic bouncing // add this relaxing loop to the present config: blobArray.push_back(pBlob);