Update of /cvsroot/playerstage/code/player/server/drivers/mixed/erratic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4812
Modified Files:
erratic.cc
Log Message:
Index: erratic.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/mixed/erratic/erratic.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** erratic.cc 16 Oct 2006 00:40:28 -0000 1.9
--- erratic.cc 18 Dec 2006 04:49:56 -0000 1.10
***************
*** 805,815 ****
erratic_data.ir.voltages_count =
RobotParams[this->param_idx]->NumIR;
erratic_data.ir.ranges_count = 2;
! for (unsigned int i_voltage = 0; i_voltage <
erratic_data.aio.voltages_count ;i_voltage++) {
! erratic_data.aio.voltages[i_voltage] =
(packet.packet[5+i_voltage*2]
! +
256*packet.packet[6+i_voltage*2]) * (1.0 / 1024.0) * CPU_VOLTAGE;
! erratic_data.ir.voltages[i_voltage] =
(packet.packet[5+i_voltage*2]
! +
256*packet.packet[6+i_voltage*2]) * (1.0 / 1024.0) * CPU_VOLTAGE;
! erratic_data.ir.ranges[i_voltage] =
IRRangeFromVoltage(erratic_data.ir.voltages[i_voltage]);
! }
PublishAIn();
PublishIR();
--- 805,817 ----
erratic_data.ir.voltages_count =
RobotParams[this->param_idx]->NumIR;
erratic_data.ir.ranges_count = 2;
! unsigned int i_voltage;
! for (i_voltage = 0; i_voltage <
erratic_data.aio.voltages_count ;i_voltage++)
! {
!
erratic_data.aio.voltages[i_voltage] = (packet.packet[5+i_voltage*2]
! +
256*packet.packet[6+i_voltage*2]) * (1.0 / 1024.0) * CPU_VOLTAGE;
!
erratic_data.ir.voltages[i_voltage] = (packet.packet[5+i_voltage*2]
! +
256*packet.packet[6+i_voltage*2]) * (1.0 / 1024.0) * CPU_VOLTAGE;
!
erratic_data.ir.ranges[i_voltage] =
IRRangeFromVoltage(erratic_data.ir.voltages[i_voltage]);
! }
PublishAIn();
PublishIR();
-------------------------------------------------------------------------
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