just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Revision:
24:4e52031a495b
Parent:
22:d87317d7ca91
Child:
25:74cb85b85fd2
--- a/elasticLoop.cpp	Wed Jun 13 10:09:41 2012 +0000
+++ b/elasticLoop.cpp	Mon Jun 18 08:00:57 2012 +0000
@@ -416,6 +416,12 @@
     setRegionMotion(MIN_AD_MIRRORS, MIN_AD_MIRRORS, MAX_AD_MIRRORS, MAX_AD_MIRRORS);
 }
 
+void elasticLoop::speedFactor(float speedfactor) {
+  // This method is more appropiate for rigid loop, but we can "simulate" speed up in case of elastic loop by changing some parameters, even if the loop is not
+  // set in "contour following" mode. 
+  factorRecenteringLoopMass*=speedfactor;
+}
+
 void elasticLoop::initSizeBlob(int _numMasses) {
     // Iinitialize blob size (number of points for the loop, as well as other structures such as lsdTrajectory)
     numMasses=_numMasses;