Update of /cvsroot/playerstage/code/player/client_libs/libplayerc
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15592/client_libs/libplayerc
Modified Files:
Tag: release-2-0-patches
dev_ptz.c playerc.h
Log Message:
added set_control_mode request to libplayerc and libplayerc++
Index: playerc.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/playerc.h,v
retrieving revision 1.185.2.1
retrieving revision 1.185.2.2
diff -C2 -d -r1.185.2.1 -r1.185.2.2
*** playerc.h 9 Jun 2006 18:13:47 -0000 1.185.2.1
--- playerc.h 2 Aug 2006 17:00:33 -0000 1.185.2.2
***************
*** 2385,2388 ****
--- 2385,2396 ----
double panspeed, double tiltspeed);
+ /** @brief Change control mode (select velocity or position control)
+
+ @param device Pointer to proxy object.
+ @param mode Desired mode (@ref PLAYER_PTZ_VELOCITY_CONTROL or @ref
PLAYER_PTZ_POSITION_CONTROL)
+
+ @returns 0 on success, -1 on error, -2 on NACK.
+ */
+ int playerc_ptz_set_control_mode(playerc_ptz_t *device, int mode);
/** @} */
Index: dev_ptz.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/dev_ptz.c,v
retrieving revision 1.13
retrieving revision 1.13.4.1
diff -C2 -d -r1.13 -r1.13.4.1
*** dev_ptz.c 20 Sep 2005 00:23:16 -0000 1.13
--- dev_ptz.c 2 Aug 2006 17:00:33 -0000 1.13.4.1
***************
*** 138,139 ****
--- 138,153 ----
}
+ // Change control mode
+ int
+ playerc_ptz_set_control_mode(playerc_ptz_t *device, int mode)
+ {
+ player_ptz_req_control_mode_t config;
+
+ config.mode = mode;
+
+ return(playerc_client_request(device->info.client,
+ &device->info,
+ PLAYER_PTZ_REQ_CONTROL_MODE,
+ &config, NULL, 0));
+ }
+
-------------------------------------------------------------------------
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