5
0
Fork 0
mirror of https://github.com/TheTesla/HengLongUDPclient.git synced 2025-06-29 03:46:08 +02:00

cam nul added - to let the camera look forward by pressing a button

This commit is contained in:
chch 2014-03-06 00:35:51 +01:00
parent a6429d3b76
commit a81f7afcf9
9 changed files with 44 additions and 20 deletions

View file

@ -69,3 +69,23 @@ int cam_ccw(char* ip)
{
return wvcamctrl(ip, 6);
}
int cam_nul(char* ip)
{
int i;
for(i=0;i<20;i++){
usleep(300000);
cam_down(ip);
}
for(i=0;i<80;i++){
usleep(300000);
cam_ccw(ip);
}
for(i=0;i<40;i++){
usleep(300000);
cam_cw(ip);
}
return 0;
}