Update of /cvsroot/playerstage/code/player/server/drivers/laser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15262/server/drivers/laser
Modified Files:
urglaserdriver.cc
Log Message:
added chatterbox driver, fixed build bug in libplayerc/dev_vectormap.c, fixed
shallow copy bug in libplayerc/dev_ir.c
Index: urglaserdriver.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/laser/urglaserdriver.cc,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** urglaserdriver.cc 1 Nov 2007 22:16:19 -0000 1.14
--- urglaserdriver.cc 7 Feb 2008 02:23:00 -0000 1.15
***************
*** 225,230 ****
// Solve the min/max angle problem
! min_i = static_cast<int> (round (384 + Conf.min_angle/Conf.resolution));
! max_i = static_cast<int> (round (384 + Conf.max_angle/Conf.resolution));
// For ancient firmware versions, set some hard limits on the min/max angle
capabilities
--- 225,230 ----
// Solve the min/max angle problem
! min_i = static_cast<int> (round (384.0 + Conf.min_angle/Conf.resolution));
! max_i = static_cast<int> (round (384.0 + Conf.max_angle/Conf.resolution));
// For ancient firmware versions, set some hard limits on the min/max angle
capabilities
***************
*** 234,239 ****
max_i = URG04_MAX_STEP;
! int user_min_i = static_cast<int> (round (384 +
user_min_angle/Conf.resolution));
! int user_max_i = static_cast<int> (round (384 +
user_max_angle/Conf.resolution));
if (user_min_i > user_max_i)
--- 234,239 ----
max_i = URG04_MAX_STEP;
! int user_min_i = static_cast<int> (round (384.0 +
user_min_angle/Conf.resolution));
! int user_max_i = static_cast<int> (round (384.0 +
user_max_angle/Conf.resolution));
if (user_min_i > user_max_i)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit