VISCA Camera Control Instructions
DOC-USR-0115-01 DRAFT
___________________________________________________________________________________________
Z3 Technology, LLC
♦
100 N 8
th
ST, STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
13
serv_addr.sin_port = htons(portno);
if (connect(s,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)
{
printf("ERROR connecting\n");
return -3;
}
printf("connected!\n");
}
if (s != INVALID_SOCKET) {
help();
while ( 1) {
ch = _getch();
if (ch == 'i' || ch == 'I')
{
printf("Zoom In\n");
visca_send(s, cmdVisca[0]);
visca_receive(s,buf,sizeof(buf), 1);
}
if (ch == 'o' || ch == 'O')
{
printf("Zoom Out\n");
visca_send(s, cmdVisca[1]);
visca_receive(s,buf,sizeof(buf), 1);
}
if (ch == 67) //Right
{
//printf("Right\n");
}
if (ch == 68) //Left
{
//printf("Left\n");
}
if (ch == 86 || ch == 118 )
{
printf("Version Inq\n");
visca_send(s, cmdVisca[3]);