3 Commits

Author SHA1 Message Date
Martin Richter
221b560aa4 Added Accelerator to switch between the cameras. 2022-10-06 16:13:43 +02:00
Martin Richter
2b04b5b90c Update README.md
Fixed types.
2022-02-16 15:56:13 +01:00
Martin Richter
e229b7df3a Update README.md
Minor changes to the readme.
2022-02-16 15:51:21 +01:00
5 changed files with 27 additions and 19 deletions

1
.gitignore vendored
View File

@@ -7,5 +7,6 @@ PTZControl/PTZControl.vcxproj.filters
PTZControl/PTZControl.vcxproj.user PTZControl/PTZControl.vcxproj.user
PTZControl/PTZControlDEU.docx PTZControl/PTZControlDEU.docx
PTZControl/PTZControl.exe PTZControl/PTZControl.exe
PTZControl/PTZControl.aps
*.docx *.docx
*.bak *.bak

Binary file not shown.

Binary file not shown.

View File

@@ -16,42 +16,42 @@
#define IDC_CHECK1 1001 #define IDC_CHECK1 1001
#define IDC_CH_LOGITECHCONTROL 1001 #define IDC_CH_LOGITECHCONTROL 1001
#define IDC_BT_UP 1002 #define IDC_BT_UP 1002
#define IDC_ED_TOOLTIP_1_1 1002 #define IDC_ED_TOOLTIP_1_1 1002
#define IDC_BT_DOWN 1003 #define IDC_BT_DOWN 1003
#define IDC_ED_TOOLTIP_1_2 1003 #define IDC_ED_TOOLTIP_1_2 1003
#define IDC_BT_HOME 1004 #define IDC_BT_HOME 1004
#define IDC_ED_TOOLTIP_1_3 1004 #define IDC_ED_TOOLTIP_1_3 1004
#define IDC_BT_MEMORY 1005 #define IDC_BT_MEMORY 1005
#define IDC_ED_TOOLTIP_1_4 1005 #define IDC_ED_TOOLTIP_1_4 1005
#define IDC_BT_PRESET1 1006 #define IDC_BT_PRESET1 1006
#define IDC_ED_TOOLTIP_1_5 1006 #define IDC_ED_TOOLTIP_1_5 1006
#define IDC_BT_PRESET2 1007 #define IDC_BT_PRESET2 1007
#define IDC_ED_TOOLTIP_1_6 1007 #define IDC_ED_TOOLTIP_1_6 1007
#define IDC_BT_PRESET3 1008 #define IDC_BT_PRESET3 1008
#define IDC_ED_TOOLTIP_1_7 1008 #define IDC_ED_TOOLTIP_1_7 1008
#define IDC_BT_PRESET4 1009 #define IDC_BT_PRESET4 1009
#define IDC_ED_TOOLTIP_1_8 1009 #define IDC_ED_TOOLTIP_1_8 1009
#define IDC_BT_PRESET5 1010 #define IDC_BT_PRESET5 1010
#define IDC_ED_CAMERA 1010 #define IDC_ED_CAMERA 1010
#define IDC_BT_PRESET6 1011 #define IDC_BT_PRESET6 1011
#define IDC_EDIT1 1011 #define IDC_EDIT1 1011
#define IDC_ED_MOTORTIME 1011 #define IDC_ED_MOTORTIME 1011
#define IDC_BT_PRESET7 1012 #define IDC_BT_PRESET7 1012
#define IDC_ED_TOOLTIP_2_1 1012 #define IDC_ED_TOOLTIP_2_1 1012
#define IDC_BT_PRESET8 1013 #define IDC_BT_PRESET8 1013
#define IDC_ED_TOOLTIP_2_2 1013 #define IDC_ED_TOOLTIP_2_2 1013
#define IDC_BT_ZOOM_IN 1014 #define IDC_BT_ZOOM_IN 1014
#define IDC_ED_TOOLTIP_2_3 1014 #define IDC_ED_TOOLTIP_2_3 1014
#define IDC_BT_ZOOM_OUT 1015 #define IDC_BT_ZOOM_OUT 1015
#define IDC_ED_TOOLTIP_2_4 1015 #define IDC_ED_TOOLTIP_2_4 1015
#define IDC_BT_EXIT 1016 #define IDC_BT_EXIT 1016
#define IDC_ED_TOOLTIP_2_5 1016 #define IDC_ED_TOOLTIP_2_5 1016
#define IDC_BT_SETTINGS 1017 #define IDC_BT_SETTINGS 1017
#define IDC_ED_TOOLTIP_2_6 1017 #define IDC_ED_TOOLTIP_2_6 1017
#define IDC_BT_WEBCAM1 1018 #define IDC_BT_WEBCAM1 1018
#define IDC_ED_TOOLTIP_2_7 1018 #define IDC_ED_TOOLTIP_2_7 1018
#define IDC_BT_WEBCAM2 1019 #define IDC_BT_WEBCAM2 1019
#define IDC_ED_TOOLTIP_2_8 1019 #define IDC_ED_TOOLTIP_2_8 1019
#define DC_BT_SETTINGS 32791 #define DC_BT_SETTINGS 32791
// Next default values for new objects // Next default values for new objects
@@ -59,7 +59,7 @@
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS #ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 135 #define _APS_NEXT_RESOURCE_VALUE 135
#define _APS_NEXT_COMMAND_VALUE 32793 #define _APS_NEXT_COMMAND_VALUE 32799
#define _APS_NEXT_CONTROL_VALUE 1012 #define _APS_NEXT_CONTROL_VALUE 1012
#define _APS_NEXT_SYMED_VALUE 101 #define _APS_NEXT_SYMED_VALUE 101
#endif #endif

View File

@@ -2,9 +2,16 @@
## History ## History
This small program is designed to control a Logitech PTZ 2 Pro. The camera was purchased to stream our church services. This small program is designed to control a Logitech PTZ 2 Pro. The camera was purchased to stream our church services.
Unfortunately, it quickly turned out that the operation with the remote control is possible but cumbersome and inaccurate, since the camera was installed directly behind and above the video technician. So I made the decision to build a corresponding control program. Unfortunately, it quickly turned out that the operation with the remote control is possible but cumbersome and inaccurate. The camera was installed directly behind and above the video technician and always pointing back with the remote control was not comfortable.
Some month later we bought a second camera and the program was extended by the function to control another camera. A maximum of two cameras are supported. The control Logitech software shipped with the camera is completely worthless.
And finally I added support for the Logitech Rally. So, I made the decision to build a corresponding control program.
Some months later we bought a second camera, and the program was extended by the function to control another camera. A maximum of two cameras are supported.
And finally, I added support for the Logitech Rally.
### Where is the basic code from?
It wasn't easy to get code that shows how to control a PTZ camera.
Finally I contacted Lgoitech and I received download link to the `Logitech Collaboration Software Reference Kit` (Logitech CSRK)
I found some Lync remote control code in it, that gave me some hints and the guids and usage for the Logitect camera interface.
## Used interfaces ## Used interfaces
The program directly uses the camera media control via the Windows SDK (see links in the source code). The program directly uses the camera media control via the Windows SDK (see links in the source code).