EZ-Robotics / EZ-Template

Simple plug-and-play PROS template that handles drive base functions for VEX robots.
https://ez-robotics.github.io/EZ-Template/
Mozilla Public License 2.0
73 stars 35 forks source link

Remove required function calls from initialize that should be hidden from the user #25

Closed ssejrog closed 2 years ago

ssejrog commented 2 years ago

Is your feature request related to a problem? Please describe.

The example projects initialize function has function calls in it that should be hidden from the user.

Describe the solution you'd like

pros::lcd::initialize();, ez::as::init_auton_selector();, ez::as::autoSelector.print_selected_auton();, pros::lcd::register_btn0_cb(ez::as::page_down); and pros::lcd::register_btn2_cb(ez::as::page_up); should all be condensed into one ez::as::initialize();.

The below should be hidden from the user and ran at the start of the ez_auton task.

  if (!ez::util::IS_SD_CARD) printf("No SD Card Found!\n");

  if (!chassis.imu_calibrate()) pros::lcd::set_text(7, "IMU failed to calibrate!");