Update of /cvsroot/playerstage/code/player/server/drivers/mixed/wbr/914
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10946/server/drivers/mixed/wbr/914
Modified Files:
.cvsignore wbr914.cc
Log Message:
applied Toby's patch to replace fixed-size arrays
Index: wbr914.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/mixed/wbr/914/wbr914.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** wbr914.cc 23 Aug 2007 19:58:46 -0000 1.9
--- wbr914.cc 1 Nov 2007 22:16:21 -0000 1.10
***************
*** 262,265 ****
--- 262,266 ----
// Set up the IR array geometry
_ir_geom.poses_count = NUM_IR_SENSORS;
+ _ir_geom.poses = new player_pose3d_t[_ir_geom.poses_count];
_ir_geom.poses[ 0 ].px = 0.030;
***************
*** 297,300 ****
--- 298,307 ----
_ir_geom.poses[ 7 ].py = 0.060;
_ir_geom.poses[ 7 ].pyaw = DTOR( 60 );
+
+ _data.ir.ranges_count = NUM_IR_SENSORS;
+ _data.ir.voltages_count = _data.ir.ranges_count;
+ _data.ir.ranges = new float [_data.ir.ranges_count];
+ _data.ir.voltages = new float [_data.ir.voltages_count];
+
}
***************
*** 307,310 ****
--- 314,321 ----
tcsetattr( this->_fd, TCSADRAIN, &_old_tio);
Shutdown();
+ delete [] _ir_geom.poses;
+ delete [] _data.ir.ranges;
+ delete [] _data.ir.voltages;
+
}
***************
*** 964,970 ****
// float mmPerVolt = (800.0-100.0)/(v80-v10);
- d->voltages_count = NUM_IR_SENSORS;
- d->ranges_count = d->voltages_count;
-
for (uint32_t i=0; i < d->ranges_count; i++)
{
--- 975,978 ----
Index: .cvsignore
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/mixed/wbr/914/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** .cvsignore 17 Sep 2007 02:18:55 -0000 1.2
--- .cvsignore 1 Nov 2007 22:16:21 -0000 1.3
***************
*** 3,4 ****
--- 3,6 ----
.deps
*.la
+ .libs
+ *.lo
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit