[Libphidget-cvs-commits] CVS: libphidget/src/examples phidget_c.c,1.5,1.6 phidget_cpp.cc,1.6,1.7
Status: Alpha
Brought to you by:
jstrohm
From: Jack S. <js...@us...> - 2002-12-13 05:01:13
|
Update of /cvsroot/libphidget/libphidget/src/examples In directory sc8-pr-cvs1:/tmp/cvs-serv16527/src/examples Modified Files: phidget_c.c phidget_cpp.cc Log Message: Has some changes for supporting soft phidgets but that code is commented out. Also fixed some problems in the example code. Index: phidget_c.c =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_c.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** phidget_c.c 16 Sep 2002 06:45:42 -0000 1.5 --- phidget_c.c 13 Dec 2002 05:01:09 -0000 1.6 *************** *** 77,81 **** // Move a single servo (will move servo 0 of a 1 or 4 servo controller) ! if (phidgetSingleServo (dev, k)<0) { printf("error - %s\n",phidgetErrorString(phidgetLastError())); --- 77,82 ---- // Move a single servo (will move servo 0 of a 1 or 4 servo controller) ! //if (phidgetSingleServo (dev, k)<0) ! if (phidget8Servo (dev, k,0,.1,.1)<0) { printf("error - %s\n",phidgetErrorString(phidgetLastError())); Index: phidget_cpp.cc =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_cpp.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** phidget_cpp.cc 17 Sep 2002 01:40:31 -0000 1.6 --- phidget_cpp.cc 13 Dec 2002 05:01:09 -0000 1.7 *************** *** 231,235 **** else { ! printf("%8d Unsupported Phidget\n", uid.serial()); } } --- 231,235 ---- else { ! printf("%8d %32s Unsupported\n", uid.serial(),"unknown device"); } } |