document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include "qfixSoccerBoard.h"
  2.  
  3. #define SPEED1 150
  4.  
  5. SoccerBoard robot; // Klasse SoccerBoard initialisieren
  6.  
  7. int main()
  8. {
  9.     // Endlosschleife
  10.     while(1)
  11.     {
  12.         // Die Motoren drehen nur bei Tastendruck
  13.         if (robot.button(0))
  14.         {
  15.             robot.motor(0, SPEED1);
  16.             robot.motor(1, SPEED1);
  17.             robot.motor(2, SPEED1);
  18.         }
  19.         else
  20.         {
  21.             robot.motorsOff();
  22.         }
  23.     }
  24. }
');