Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Programming Skills Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ish-08 committed Feb 29, 2024
1 parent e1135ab commit f987bf7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion src/autonomous.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,19 @@ void autonomous() {
chassis.moveToPose(-60 + 5, -24 + 24, 180, 2500, {.forwards = false, .chasePower = 8});
chassis.waitUntilDone();
chassis.setPose(-72 + 26.5, -29.25, 180); // X, Y, Heading (degrees)
chassis.moveToPose(-48, -48 + 8, 60, 2500, {.forwards = false, .chasePower = 8});
chassis.moveToPose(-48, -48 + 3, 70, 2500, {.forwards = false, .chasePower = 8 + 6});
chassis.waitUntilDone();
ToggleHorizontalPneumaticWings();
pros::delay(500);

//KickerMotor.move(127);
//pros::delay(30000);
//KickerMotor.brake();
pros::delay(500);
ToggleVerticalPneumaticWings();
pros::delay(500);
chassis.turnTo( -36, -47, 2500);
chassis.moveToPoint(-50, -47, 2500);
// chassis.moveToPose(-48 - 5, -48 + 8, 70, 2500, {.forwards = false, .chasePower = 8});
// TODO: Ishika, test line 192 (directly above) to see if it gets the bot closer to the match load position than line 191

Expand Down
4 changes: 2 additions & 2 deletions src/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pros::Motor_Group LMotors({BLMotor, MLMotor, FLMotor});
pros::Motor_Group RMotors({BRMotor, MRMotor, FRMotor});

// Initializes the kicker motor to port 12, reversed, with a red (torque) gearset
pros::Motor KickerMotor(-18, pros::E_MOTOR_GEAR_RED, pros::E_MOTOR_ENCODER_DEGREES);
pros::Motor KickerMotor(18, pros::E_MOTOR_GEAR_RED, pros::E_MOTOR_ENCODER_DEGREES);
pros::Motor IntakeMotor(7, pros::E_MOTOR_GEAR_BLUE);

// Initializes DigitalOut objects to control the pneumatic wings.
Expand Down Expand Up @@ -71,7 +71,7 @@ void ControllerDisplay() {
7: New Programming Skills
8: Old Programming Skills
*/
unsigned short int autonSelect = 7;
unsigned short int autonSelect = 3;

/*
Integer variable to represent the current game phase
Expand Down
2 changes: 1 addition & 1 deletion src/opcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void opcontrol()
else
IntakeMotor.brake();

if (false) {
if (true) {
// If the kicker is in manual control mode...
if(manualKicker) {
// Then when B is pressed...
Expand Down

0 comments on commit f987bf7

Please sign in to comment.