Update of /cvsroot/playerstage/code/player/client_libs/libplayerc++
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9312/client_libs/libplayerc++
Modified Files:
playerc++.h ptzproxy.cc
Log Message:
added set_control_mode request to libplayerc and libplayerc++
Index: ptzproxy.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/ptzproxy.cc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ptzproxy.cc 24 Oct 2005 09:02:40 -0000 1.5
--- ptzproxy.cc 2 Aug 2006 16:43:15 -0000 1.6
***************
*** 83,86 ****
--- 83,94 ----
}
+ void PtzProxy::SelectControlMode(uint aMode)
+ {
+ boost::mutex::scoped_lock lock(mPc->mMutex);
+ if (0 != playerc_ptz_set_control_mode(mDevice, aMode))
+ throw PlayerError("PtzProxy::SelectControlMode()", "error setting control
mode");
+ return;
+ }
+
/** Specify new target velocities */
void PtzProxy::SetSpeed(double aPanSpeed, double aTiltSpeed, double
aZoomSpeed)
Index: playerc++.h
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc++/playerc++.h,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** playerc++.h 10 Jul 2006 16:55:37 -0000 1.67
--- playerc++.h 2 Aug 2006 16:43:15 -0000 1.68
***************
*** 1941,1947 ****
void SetSpeed(double aPanSpeed=0, double aTiltSpeed=0, double
aZoomSpeed=0);
! // Select new control mode. Use either PLAYER_PTZ_POSITION_CONTROL
! // or PLAYER_PTZ_VELOCITY_CONTROL.
! //void SelectControlMode(uint aMode);
/// Return Pan (rad)
--- 1941,1947 ----
void SetSpeed(double aPanSpeed=0, double aTiltSpeed=0, double
aZoomSpeed=0);
! /// Select new control mode. Use either @ref PLAYER_PTZ_POSITION_CONTROL
! /// or @ref PLAYER_PTZ_VELOCITY_CONTROL.
! void SelectControlMode(uint aMode);
/// Return Pan (rad)
-------------------------------------------------------------------------
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