home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / sphinx / examples / other / cyberman.c__ < prev    next >
Encoding:
Text File  |  1994-06-24  |  846 b   |  42 lines

  1. /*
  2.     CYBERMAN.C--
  3. */
  4.  
  5. ?include "WRITE.H--"
  6. ?include "DOS.H--"
  7. ?include "CYBERMAN.H--"
  8.  
  9.  
  10. void main ()
  11. {
  12. IF( cyberman_installed() != TRUE )
  13.     {WRITESTR("Cyberman and Driver not installed!\n");
  14.     EXIT(1);
  15.     }
  16.  
  17. CYBERMAN_FEEDBACK(100,100,10);  // test the tactile feed back motor
  18.  
  19. do {
  20.     GET_CYBERMAN();   // query cyberman values.
  21.     WRITEINT(cyberman_xpos);
  22.     WRITE(' ');
  23.     WRITEINT(cyberman_ypos);
  24.     WRITE(' ');
  25.     WRITEINT(cyberman_zpos);
  26.     WRITE(' ');
  27.     WRITEINT(cyberman_yawvalue);
  28.     WRITE(' ');
  29.     WRITEINT(cyberman_pitchvalue);
  30.     WRITE(' ');
  31.     WRITEINT(cyberman_rollvalue);
  32.     WRITE(' ');
  33.     WRITEINT(cyberman_buttons);
  34.     WRITELN();
  35.     } while( cyberman_buttons & 5 == 0 );
  36.                 // press left or right button to quit.
  37.  
  38. EXIT(0);
  39. }
  40.  
  41.  
  42. /* end of CYBERMAN.C-- */