Ejemplo n.º 1
0
task main()
{
  while (true)
  {
    getJoystickSettings(joystick);
    motorControlProportional();
    buttonControl();
  }
}
task main()
{
  initializeRobot();


 // waitForStart();                 // wait for start of tele-op phase


  while (true)                    //infinite loop
  {
    getJoystickSettings(joystick);
    motorControlProportional();
    armControlProportional();
    buttonControl();
    Gyro_value=HTGYROreadRot(HTGYRO) - Gyro_offset;  //read the gyro sensor
    sum=HTDIRreadDCDir(S3);
    wait1Msec(10);
  }

}