Update of /cvsroot/playerstage/code/player/server/drivers/position/vfh
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21874
Modified Files:
vfh.cc
Log Message:
fixed int cast
Index: vfh.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/position/vfh/vfh.cc,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** vfh.cc 1 May 2006 22:52:29 -0000 1.73
--- vfh.cc 22 Sep 2006 20:16:07 -0000 1.74
***************
*** 542,546 ****
for(i = 0; i < 181; i++)
{
! unsigned int index = rint(i/db);
assert(index >= 0 && index < data.ranges_count);
this->laser_ranges[i*2][0] = data.ranges[index] * 1e3;
--- 542,546 ----
for(i = 0; i < 181; i++)
{
! unsigned int index = (int)rint(i/db);
assert(index >= 0 && index < data.ranges_count);
this->laser_ranges[i*2][0] = data.ranges[index] * 1e3;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit