Update of /cvsroot/playerstage/code/player/server/drivers/mixed/clodbuster
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1338/server/drivers/mixed/clodbuster

Modified Files:
        clodbuster.cc 
Log Message:
applied patch 1749747 to transition to 3d pose structures

Index: clodbuster.cc
===================================================================
RCS file: 
/cvsroot/playerstage/code/player/server/drivers/mixed/clodbuster/clodbuster.cc,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** clodbuster.cc       1 Mar 2007 20:41:46 -0000       1.12
--- clodbuster.cc       9 Jul 2007 17:18:00 -0000       1.13
***************
*** 273,282 ****
    if (Message::MatchMessage(hdr, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_GET_GEOM, device_addr))
    {
!     player_position2d_geom_t geom;
        
      // TODO : get values from somewhere.
      geom.pose.px = -0.1;//htons((short) (-100));
      geom.pose.py = 0;//htons((short) (0));
!     geom.pose.pa = 0;//htons((short) (0));
      geom.size.sw = 0.5;//htons((short) (2 * 250));
      geom.size.sl = 0.45;//htons((short) (2 * 225));
--- 273,282 ----
    if (Message::MatchMessage(hdr, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_GET_GEOM, device_addr))
    {
!     player_position2d_geom_t geom={{0}};
        
      // TODO : get values from somewhere.
      geom.pose.px = -0.1;//htons((short) (-100));
      geom.pose.py = 0;//htons((short) (0));
!     geom.pose.pyaw = 0;//htons((short) (0));
      geom.size.sw = 0.5;//htons((short) (2 * 250));
      geom.size.sl = 0.45;//htons((short) (2 * 225));
***************
*** 334,340 ****
        player_position2d_speed_pid_req_t & pid = 
*((player_position2d_speed_pid_req_t*)data);
                
!     kp = pid.kp;
!     ki = pid.ki;
!     kd = pid.kd;
  
      Publish(device_addr, resp_queue, PLAYER_MSGTYPE_RESP_ACK, 
PLAYER_POSITION2D_REQ_SPEED_PID);
--- 334,340 ----
        player_position2d_speed_pid_req_t & pid = 
*((player_position2d_speed_pid_req_t*)data);
                
!     kp = static_cast<int> (pid.kp);
!     ki = static_cast<int> (pid.ki);
!     kd = static_cast<int> (pid.kd);
  
      Publish(device_addr, resp_queue, PLAYER_MSGTYPE_RESP_ACK, 
PLAYER_POSITION2D_REQ_SPEED_PID);


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to