Update of /cvsroot/libphidget/libphidget/src/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv15013/examples
Modified Files:
phidget_c.c
Log Message:
I think I figured out how to not use the HID at all. Removing what I added yesterday to start supporting HID.
Index: phidget_c.c
===================================================================
RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_c.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** phidget_c.c 13 Dec 2002 05:01:09 -0000 1.6
--- phidget_c.c 13 Dec 2002 16:42:17 -0000 1.7
***************
*** 27,31 ****
// Initialize libphiget, here is where the devices are actually retrieved by the library
// We want the library to handle signals (passing it 1)
! if (phidgetInit (1) != LPE_NONE)
{
printf("error - %s\n",phidgetErrorString(phidgetLastError()));
--- 27,31 ----
// Initialize libphiget, here is where the devices are actually retrieved by the library
// We want the library to handle signals (passing it 1)
! if (phidgetInit(1) != LPE_NONE)
{
printf("error - %s\n",phidgetErrorString(phidgetLastError()));
***************
*** 75,82 ****
{
int i;
// 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()));
--- 75,83 ----
{
int i;
+ printf ("%f\n",k);
// Move a single servo (will move servo 0 of a 1 or 4 servo controller)
! //if (phidget8Servo (dev, k,0,.1,.1)<0)
! if (phidgetSingleServo (dev, k)<0)
{
printf("error - %s\n",phidgetErrorString(phidgetLastError()));
***************
*** 91,94 ****
--- 92,96 ----
}
}
+ phidgetEvents ();
// Close the phidget
|