Revision: 7538
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7538&view=rev
Author:   thjc
Date:     2009-03-22 01:30:30 +0000 (Sun, 22 Mar 2009)

Log Message:
-----------
Fix for vfh minimum turnrate from Andreas Vogt

Modified Paths:
--------------
    
code/player/branches/release-2-1-patches/server/drivers/position/vfh/vfh_algorithm.cc

Modified: 
code/player/branches/release-2-1-patches/server/drivers/position/vfh/vfh_algorithm.cc
===================================================================
--- 
code/player/branches/release-2-1-patches/server/drivers/position/vfh/vfh_algorithm.cc
       2009-03-22 01:24:06 UTC (rev 7537)
+++ 
code/player/branches/release-2-1-patches/server/drivers/position/vfh/vfh_algorithm.cc
       2009-03-22 01:30:30 UTC (rev 7538)
@@ -1085,6 +1085,10 @@
 //        speed = 0;
 //      }
     }
+    //check min_turnrate
+    if(turnrate < 0 && turnrate > -MIN_TURNRATE){turnrate = 0;}
+    if(turnrate > 0 && turnrate <  MIN_TURNRATE){turnrate = 0;}
+
   }
 
 //  speed and turnrate have been set for the calling function -- return.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to