Skip to content

Commit

Permalink
Working first half of skills path
Browse files Browse the repository at this point in the history
  • Loading branch information
Brayden-RIT committed Dec 7, 2024
1 parent ba697a6 commit b2250ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/competition/autonomous.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class DebugCommand : public AutoCommand {

void skills() {
CommandController cc {
odom.SetPositionCmd({.x = 14, .y = 96, .rot = 0}),
odom.SetPositionCmd({.x = 12, .y = 96, .rot = 0}),

new Async(new FunctionCommand([]() {
while(true) {
Expand Down Expand Up @@ -141,7 +141,7 @@ void skills() {

// Fifth Ring
drive_sys.TurnToPointCmd(0, 144, vex::directionType::fwd, .6) -> withTimeout(1),
drive_sys.DriveToPointCmd({10, 134}, vex::forward, .8) -> withTimeout(1),
drive_sys.DriveToPointCmd({6, 138}, vex::forward, .8) -> withTimeout(1),

// Deposit First Stake
drive_sys.DriveForwardCmd(8, vex::directionType::rev, .6) -> withTimeout(.7),
Expand All @@ -156,8 +156,8 @@ void skills() {


//first ring second goal
drive_sys.TurnToHeadingCmd(0, .6) -> withTimeout(1),
drive_sys.DriveForwardCmd(72, vex::directionType::fwd, .6) -> withTimeout(2.5),
drive_sys.TurnToPointCmd(96, 120, vex::forward, .6) -> withTimeout(1),
drive_sys.DriveToPointCmd({96, 120}, vex::forward, .6) -> withTimeout(2.5),

//grab second goal
drive_sys.TurnToHeadingCmd(90, .6) -> withTimeout(1),
Expand Down

0 comments on commit b2250ed

Please sign in to comment.