Skip to content

Commit

Permalink
Example works
Browse files Browse the repository at this point in the history
  • Loading branch information
ssejrog committed Jan 2, 2025
1 parent 219608e commit 6ce6c06
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ ez::Drive chassis(
* All other competition modes are blocked by initialize; it is recommended
* to keep execution time for this mode under a few seconds.
*/
ez::PID liftPID(0.45);
void initialize() {
// Print our branding over your terminal :D
ez::ez_template_print();

pros::delay(500); // Stop the user from doing anything while legacy ports configure

chassis.pid_tuner_add({"Lift PID", &liftPID.constants});

// Look at your horizontal tracking wheel and decide if it's in front of the midline of your robot or behind it
// - change `back` to `front` if the tracking wheel is in front of the midline
// - ignore this if you aren't using a horizontal tracker
Expand Down Expand Up @@ -250,10 +247,6 @@ void opcontrol() {
// Gives you some extras to make EZ-Template ezier
ez_template_extras();

if (master.get_digital_new_press(DIGITAL_R1)) {
chassis.pid_tuner_full_enable(!chassis.pid_tuner_full_enabled());
}

chassis.opcontrol_tank(); // Tank control
// chassis.opcontrol_arcade_standard(ez::SPLIT); // Standard split arcade
// chassis.opcontrol_arcade_standard(ez::SINGLE); // Standard single arcade
Expand Down

0 comments on commit 6ce6c06

Please sign in to comment.