Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Absozero authored Sep 9, 2023
1 parent 621544a commit dea6d9a
Show file tree
Hide file tree
Showing 11 changed files with 3,545 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VEX_2023-24.v5code
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"title":"VEX_2023-24","description":"Empty V5 C++ Project","icon":"USER921x.bmp","version":"22.03.0110","sdk":"20220215_18_00_00","language":"cpp","competition":false,"files":[{"name":"include/robot-config.h","type":"File","specialType":"device_config"},{"name":"include/vex.h","type":"File","specialType":""},{"name":"makefile","type":"File","specialType":""},{"name":"src/main.cpp","type":"File","specialType":""},{"name":"src/robot-config.cpp","type":"File","specialType":"device_config"},{"name":"vex/mkenv.mk","type":"File","specialType":""},{"name":"vex/mkrules.mk","type":"File","specialType":""},{"name":"include","type":"Directory"},{"name":"src","type":"Directory"},{"name":"vex","type":"Directory"}],"device":{"slot":1,"uid":"276-4810","options":{}},"isExpertMode":false,"isExpertModeRC":false,"isVexFileImport":false,"robotconfig":[{"port":[1],"name":"LeftFront","customName":true,"deviceType":"Motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[2],"name":"RightFront","customName":true,"deviceType":"Motor","setting":{"reversed":"true","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[3],"name":"LeftBack","customName":true,"deviceType":"Motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[4],"name":"RightBack","customName":true,"deviceType":"Motor","setting":{"reversed":"true","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[],"name":"Controller1","customName":false,"deviceType":"Controller","setting":{"left":"","leftDir":"false","right":"","rightDir":"false","upDown":"","upDownDir":"false","xB":"","xBDir":"false","drive":"none","id":"primary"}}]}
{"title":"VEX_2023-24","description":"Empty V5 C++ Project","icon":"USER921x.bmp","version":"22.03.0110","sdk":"20220215_18_00_00","language":"cpp","competition":false,"files":[{"name":"include/robot-config.h","type":"File","specialType":"device_config"},{"name":"include/vex.h","type":"File","specialType":""},{"name":"makefile","type":"File","specialType":""},{"name":"src/main.cpp","type":"File","specialType":""},{"name":"src/robot-config.cpp","type":"File","specialType":"device_config"},{"name":"vex/mkenv.mk","type":"File","specialType":""},{"name":"vex/mkrules.mk","type":"File","specialType":""},{"name":"include","type":"Directory"},{"name":"src","type":"Directory"},{"name":"vex","type":"Directory"}],"device":{"slot":1,"uid":"276-4810","options":{}},"isExpertMode":true,"isExpertModeRC":true,"isVexFileImport":false,"robotconfig":[],"neverUpdate":null}
Binary file added build/VEX202324.bin
Binary file not shown.
Binary file added build/VEX202324.elf
Binary file not shown.
3,534 changes: 3,534 additions & 0 deletions build/VEX202324.map

Large diffs are not rendered by default.

Binary file added build/src/auton.o
Binary file not shown.
Binary file added build/src/main.o
Binary file not shown.
Binary file added build/src/robot-config.o
Binary file not shown.
1 change: 1 addition & 0 deletions include/robot-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extern controller Controller1;
extern motor LeftMid;
extern motor RightMid;
extern motor Catapult;
extern motor Elevation;
extern motor IntakeLeft;
extern motor IntakeRight;

Expand Down
Empty file added src/auton.cpp
Empty file.
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ void usercontrol(void) {
cat = 0;
}

//Elevation
if (Controller1.ButtonX.pressing()) {
Elevation.spin(vex::directionType::fwd, 140, vex::velocityUnits::pct);
} else {
Elevation.spin(vex::directionType::fwd, 0, vex::velocityUnits::pct);
}

//Intake
int intake;
if (Controller1.ButtonB.pressing()) {
Expand Down
3 changes: 2 additions & 1 deletion src/robot-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ motor RightFront = motor(PORT2, ratio18_1, true);
motor LeftBack = motor(PORT3, ratio18_1, false);
motor RightBack = motor(PORT4, ratio18_1, true);
controller Controller1 = controller(primary);
motor LeftMid = motor(PORT5, ratio18_1, false);
motor LeftMid = motor(PORT10, ratio18_1, false);
motor Elevation = motor(PORT20, ratio18_1, true);
motor RightMid = motor(PORT6, ratio18_1, true);
motor Catapult = motor(PORT7, ratio18_1, false);
motor IntakeLeft = motor(PORT8, ratio18_1, false);
Expand Down

0 comments on commit dea6d9a

Please sign in to comment.