Skip to content

Commit

Permalink
Jack N-pod fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabinvic committed Dec 4, 2024
1 parent 17d5169 commit 4f9d96d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/competition/opcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ void opcontrol()

conveyor_button.pressed([]() {
conveyor.spin(vex::directionType::fwd, 12, vex::volt);
intake();
});

rev_conveyor_button.pressed([]() {
Expand All @@ -47,7 +48,7 @@ void opcontrol()
});

while (true) {
if(!intake_button.pressing() && !outtake_button.pressing()) {
if(!intake_button.pressing() && !outtake_button.pressing() && !conveyor_button.pressing()) {
intake_roller.stop();
intake_ramp.stop();
}
Expand Down
6 changes: 3 additions & 3 deletions src/robot-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ CustomEncoder left_enc{Brain.ThreeWirePort.C, 2048};
CustomEncoder right_enc{Brain.ThreeWirePort.E, 2048};
CustomEncoder front_enc{Brain.ThreeWirePort.G, 2048};

tracking_wheel_cfg_t left_enc_cfg{-0.0625, 3.625, 0, 0.9};
tracking_wheel_cfg_t right_enc_cfg{-0.0625, -3.625, M_PI, 0.9};
tracking_wheel_cfg_t front_enc_cfg{4.5, -0.375, (3 * M_PI/2), 0.9};
tracking_wheel_cfg_t left_enc_cfg{-0.0625, 3.625, M_PI, 1.0625};
tracking_wheel_cfg_t right_enc_cfg{-0.0625, -3.625, 0, 1.0625};
tracking_wheel_cfg_t front_enc_cfg{4.5, -0.375, (M_PI/2), 1.0625};

// ================ OUTPUTS ================
// Motors
Expand Down

0 comments on commit 4f9d96d

Please sign in to comment.