Skip to content

Commit

Permalink
Updated to 2.1, added default_exit_conditions() to initialize.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssejrog committed Jan 19, 2022
1 parent 60d7160 commit 42ef902
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Binary file renamed [email protected][email protected]
Binary file not shown.
Binary file modified firmware/EZ-Template.a
Binary file not shown.
14 changes: 7 additions & 7 deletions project.pros
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
"target": "v5",
"templates": {
"EZ-Template": {
"location": "C:\\Users\\union\\AppData\\Roaming\\PROS\\templates\\[email protected].0",
"location": "C:\\Users\\union\\AppData\\Roaming\\PROS\\templates\\[email protected].1",
"metadata": {
"origin": "local"
},
"name": "EZ-Template",
"py/object": "pros.conductor.templates.local_template.LocalTemplate",
"supported_kernels": "^3.5.4",
"system_files": [
"include\\EZ-Template\\auton_selector.hpp",
"include\\EZ-Template\\sdcard.hpp",
"include\\EZ-Template\\auton.hpp",
"firmware\\EZ-Template.a",
"include\\EZ-Template\\PID.hpp",
"include\\EZ-Template\\api.hpp",
"include\\EZ-Template\\util.hpp",
"include\\EZ-Template\\auton_selector.hpp",
"include\\EZ-Template\\api.hpp",
"include\\EZ-Template\\PID.hpp",
"include\\EZ-Template\\auton.hpp",
"include\\EZ-Template\\sdcard.hpp",
"include\\EZ-Template\\drive\\drive.hpp"
],
"target": "v5",
"user_files": [],
"version": "2.1.0"
"version": "2.1.1"
},
"kernel": {
"location": "C:\\Users\\union\\AppData\\Roaming\\PROS\\templates\\[email protected]",
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void initialize() {
chassis.set_active_brake(0); // Sets the active brake kP. We recommend 0.1.
chassis.set_curve_default(0, 0); // Defaults for curve. If using tank, only the first parameter is used. (Comment this line out if you have an SD card!)
default_constants(); // Set the drive to your own constants from autons.cpp!
exit_condition_defaults(); // Set the exit conditions to your own constants from autons.cpp!

// These are already defaulted to these buttons, but you can change the left/right curve buttons here!
// chassis.set_left_curve_buttons (pros::E_CONTROLLER_DIGITAL_LEFT, pros::E_CONTROLLER_DIGITAL_RIGHT); // If using tank, only the left side is used.
Expand Down

0 comments on commit 42ef902

Please sign in to comment.