SHARE
TWEET

Untitled

a guest Feb 20th, 2020 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void blue_small_zone()
  2. {
  3.   drive.setMaxVelocity(80);
  4.   setIntake(127);
  5.   prof2.generatePath({Point{0_ft,0_ft,0_deg},Point{14_ft,0_ft,0_deg}}, "row1");
  6.   pros::delay(1000);
  7.   setIntake(-127);
  8.   prof2.setTarget("row1");
  9.   prof2.generatePath({Point{0_ft,0_ft,0_deg},Point{2.8_ft,0_ft,0_deg}}, "cube");
  10.   prof2.waitUntilSettled();
  11.   drive.turnAngle(90);
  12.   prof2.setTarget("cube");
  13.   prof2.waitUntilSettled();
  14.   drive.moveDistance(-10_in);
  15.   /*drive.turnAngle(90);
  16.   prof2.setTarget("back",true);
  17.   prof2.waitUntilSettled();*/
  18.   drive.turnAngle(-1100);
  19.   intakeLeft.set_brake_mode(MOTOR_BRAKE_COAST);
  20.   intakeRight.set_brake_mode(MOTOR_BRAKE_COAST);
  21.   intakeLeft.move_voltage(300);
  22.   intakeRight.move_voltage(300);
  23.   drive.moveDistance(86_in);
  24.   //drive.turnAngle(307_deg);
  25.   //drive.moveDistance(35_in);
  26.   stack_macro();
  27.   release_macro();
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top