Skip to content

Elevator code karena #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 166 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
05d7bd5
Hghhgn
FriedLongJohns Jan 15, 2025
97e63d2
bug fixes
timtogan Jan 18, 2025
ebf6128
Pathplannerstuff
Niosocket11 Jan 18, 2025
3d72d22
//BabyMode
Niosocket11 Jan 18, 2025
3d4ce23
kSlowNormalBaby Drive and Rot
Niosocket11 Jan 18, 2025
6add2e8
BabyMode un//
Niosocket11 Jan 18, 2025
e745c86
Create AlgaeEffectors subsystem
Niosocket11 Jan 20, 2025
7cf195d
More algae stuff
Niosocket11 Jan 20, 2025
d12fdb3
Moved
Niosocket11 Jan 20, 2025
ddb9ff8
Made command
KeremOlgun Jan 20, 2025
5b6d40a
update algae effector
sofiebudman Jan 20, 2025
4e7cadc
Merge branch 'DanielBranch' of https://github.com/DeepBlueRobotics/Ro…
sofiebudman Jan 20, 2025
d9bcafd
l
sofiebudman Jan 20, 2025
5bf7b09
semicolons
sofiebudman Jan 20, 2025
295dda6
Stuff
Niosocket11 Jan 20, 2025
489785e
move stuff
sofiebudman Jan 20, 2025
7361d0a
Merge branch 'DanielBranch' of https://github.com/DeepBlueRobotics/Ro…
sofiebudman Jan 20, 2025
02c34a8
push push!
sofiebudman Jan 20, 2025
f47ef06
import yay!
sofiebudman Jan 20, 2025
05d75ff
CookingStuff
Niosocket11 Jan 20, 2025
195fb80
l
sofiebudman Jan 20, 2025
27e3eaa
o
sofiebudman Jan 20, 2025
29b307e
RobotContainer
Niosocket11 Jan 20, 2025
aa0356e
Update RunAlgae.java
Niosocket11 Jan 20, 2025
a365b59
k
sofiebudman Jan 20, 2025
c44fc1e
yay it builds hooray!!
sofiebudman Jan 20, 2025
54f1b76
Got missing stuff added, plus overall cleaner code
Niosocket11 Jan 22, 2025
4d0dba2
did some of the coral effector
Rand0mAsianKid Jan 24, 2025
c36bef4
Updated commands and subsytems
Rand0mAsianKid Jan 25, 2025
c583b74
Comment
Niosocket11 Jan 25, 2025
1e55ae0
Fixed AHRS
Niosocket11 Jan 26, 2025
89fc78e
Adhit Das Commit: Fixed ~30 Drivetrain errors
DriverStationComputer Jan 29, 2025
eb02ca9
Made Elevator Subsystem
Niosocket11 Jan 29, 2025
fe81dcc
Config, pid and useful methods
Niosocket11 Jan 30, 2025
cc615f1
Enums added
Niosocket11 Jan 30, 2025
19d8cc5
More enum positions
Niosocket11 Jan 30, 2025
2dd92f7
Fixed follow
Niosocket11 Jan 31, 2025
a243e20
Commands created
Niosocket11 Jan 31, 2025
8e72de9
Added commands to elevator
Niosocket11 Jan 31, 2025
b4fa953
Fixed SysId and part of measure
Niosocket11 Feb 1, 2025
a6f55cb
Mutable Measure fixed
Niosocket11 Feb 1, 2025
ed1346f
Fixed Drivetrain Port for Gyro
Kenneth-Choothakan Feb 1, 2025
ed71b66
Merge branch 'drivetrain' of https://github.com/DeepBlueRobotics/Robo…
Kenneth-Choothakan Feb 1, 2025
47c642a
Fixed .per thing for time on Drivetrain
Kenneth-Choothakan Feb 1, 2025
aaa5e3f
mutable fully fixed
Niosocket11 Feb 1, 2025
a8ceeec
Merge branch 'drivetrain' of https://github.com/DeepBlueRobotics/Robo…
Niosocket11 Feb 1, 2025
419fb82
Update Drivetrain.java
Niosocket11 Feb 1, 2025
4533dcf
Port gyro fixed
Kenneth-Choothakan Feb 1, 2025
f02f32b
Fixed the .per timeunit line
Kenneth-Choothakan Feb 1, 2025
2f0fc06
Created limelighthelper subystem and rotateRelative command and added…
Kenneth-Choothakan Feb 1, 2025
397764b
Fixed some things in robot container
Kenneth-Choothakan Feb 1, 2025
bacfacc
Final fixes
Niosocket11 Feb 1, 2025
78b6ae7
Wheel base and trackwidth added
Niosocket11 Feb 1, 2025
fd16a13
added limit switch annd fixed alex's issues
Rand0mAsianKid Feb 1, 2025
691f43b
Merge branch 'MatthewCoral' of https://github.com/DeepBlueRobotics/Ro…
Rand0mAsianKid Feb 1, 2025
b5aa93e
Changed motors to new rev lib ones
DriverStationComputer Feb 1, 2025
2f141a8
Added temporary pid testing code to guess and check later
DriverStationComputer Feb 1, 2025
f736296
ClimbServo added
Niosocket11 Feb 1, 2025
c698f8d
Get height and update encoders added
Niosocket11 Feb 1, 2025
d657af0
Sparkflex to Sparkmax update
Niosocket11 Feb 1, 2025
451085c
Updated LimelightHelpers.
DriverStationComputer Feb 2, 2025
1cd5156
Limelight yeeted
Niosocket11 Feb 2, 2025
d746032
Merge branch 'drivetrain' of https://github.com/DeepBlueRobotics/Robo…
DriverStationComputer Feb 2, 2025
d69aa38
finished algae subsystem
Rand0mAsianKid Feb 2, 2025
1d0127a
finished up some last things
Rand0mAsianKid Feb 2, 2025
73b9766
finished algae commands without bindings
Feb 3, 2025
294ee6f
BIndings(for now)
Feb 3, 2025
a68d948
Changed pid c so it matches turn motor configuration
Kenneth-Choothakan Feb 5, 2025
0a564b3
added 4 pid controllers for turn in an array named turnPidControllers
Kenneth-Choothakan Feb 8, 2025
47a5fed
badcode -> goodcode
Niosocket11 Feb 8, 2025
dde5ab2
Aiken fixed a bunch of prs
Kenneth-Choothakan Feb 8, 2025
1d63093
Matthew we already did that stuff and more 💀💀💀
Kenneth-Choothakan Feb 8, 2025
e2ae207
Fixed some sim stuff found sum out Matthew is a sour trout🐟
Kenneth-Choothakan Feb 8, 2025
ca3859c
Corrected configs and added methods to check if shooting motors are u…
Niosocket11 Feb 8, 2025
ca9dabc
forgor to add
Niosocket11 Feb 8, 2025
908d91e
project year
sofiebudman Feb 9, 2025
ed14b0b
Switched around turn and drive ports
Kenneth-Choothakan Feb 12, 2025
adb181b
fixed ports
TuskAct2 Feb 12, 2025
97afeb5
Add constants
Niosocket11 Feb 12, 2025
cf2534d
lots of pid testing and stuffs that turn an angle just not the goal a…
Kenneth-Choothakan Feb 15, 2025
acc52a1
changed multiplying turngearing to dividing (this is the correct oper…
Kenneth-Choothakan Feb 15, 2025
42110be
changed turn ff constants in constants.java to 0 in case we end up te…
Kenneth-Choothakan Feb 15, 2025
3b9be01
pid no workee I call RYAAAAAAN
DriverStationComputer Feb 16, 2025
23982cd
Merge branch 'drivetrain' of https://github.com/DeepBlueRobotics/Robo…
DriverStationComputer Feb 16, 2025
1067659
pid has been restored back to normal operations
DriverStationComputer Feb 16, 2025
d1feaf6
pushing so we can test on Kenneth's laptop
DriverStationComputer Feb 16, 2025
c2d0a0d
trying module.move
Kenneth-Choothakan Feb 16, 2025
7d790d3
turned pid using module.move and found turn zeros
Kenneth-Choothakan Feb 17, 2025
2780b5c
got real zeros this time from testing
Kenneth-Choothakan Feb 17, 2025
4933849
updated kS values and drive inversion
Kenneth-Choothakan Feb 17, 2025
19fdba6
build.gradle fixed with propper capitlization on DeepBlueRobotics lin…
DriverStationComputer Feb 18, 2025
fafa90b
doin some sys id tests and also corrected turn zeros
Kenneth-Choothakan Feb 19, 2025
bcee079
fixed the optimization thingy where the module finds the shortest pat…
Kenneth-Choothakan Feb 19, 2025
85593a6
Changed build.grade implementation (line 88) to back 2025-SNAPSHOT si…
Kenneth-Choothakan Feb 19, 2025
9c42880
Updated Changes based off new design
Niosocket11 Feb 20, 2025
dba8187
Created a seperate branch for algae and added arm stuff
Niosocket11 Feb 20, 2025
80852e5
Fix errors
Niosocket11 Feb 20, 2025
400b2b0
modified variables in constants and set up commands and functions for…
AikenB Feb 21, 2025
1051602
Few mini fixes
Niosocket11 Feb 21, 2025
51be17b
Cleaner code plus added many constants
Niosocket11 Feb 21, 2025
0ac5a02
Bug fixes + finished defining encoder
Niosocket11 Feb 21, 2025
72187ad
Updated encoder reading
Niosocket11 Feb 21, 2025
ca5e020
Added method for getarmpos() pls check to see if it works I kind of c…
AikenB Feb 21, 2025
51071ef
added getArmVel() since it was in the 2024 arm code and it was used i…
AikenB Feb 21, 2025
0e2d6fd
added gear ratio in constants
AikenB Feb 22, 2025
2e995ce
All turn pid + ff values gotten, smartdashboard buttons changed to fi…
Kenneth-Choothakan Feb 22, 2025
d78acc4
Update to TBE, and bug fixes
Niosocket11 Feb 22, 2025
d54003e
Started working on intake command
Niosocket11 Feb 22, 2025
4feaabe
Updated drive pid, turn pid fixed, shakes a lot
DriverStationComputer Feb 23, 2025
702f9de
added intake and outtake commands
AikenB Feb 23, 2025
216dc42
rename some constants - make them upper
sofiebudman Feb 23, 2025
67a31d7
added trap profile
sofiebudman Feb 23, 2025
e730b2e
constants and trap profile
sofiebudman Feb 23, 2025
74f485e
fixed variable names in the commands since they were capitalized in c…
AikenB Feb 23, 2025
1232b58
added dealgafication command and made the code for the commands a bit…
AikenB Feb 23, 2025
230ced6
replaced setmotorspeed methods in commands since they dont use PID an…
AikenB Feb 23, 2025
5bbf102
Added Motor ID constants
AikenB Feb 23, 2025
56a79c1
fixed drive kP and inverted one of the motors to fix a bug. drivetrai…
DriverStationComputer Feb 23, 2025
03e8229
adjusting kP and reverted motor inversions to fix drivetrain again
DriverStationComputer Feb 23, 2025
adc2a22
fixed bunch of errors and added angle limits
DriverStationComputer Feb 23, 2025
259bd66
Added Bindings and some SmartDashboard Values
FriedLongJohns Feb 24, 2025
f73fb8d
added buttons for commands for smartdashboard
AikenB Feb 24, 2025
5e3a667
set variable armGoalAngle to the setArmPosition() input and simplifie…
AikenB Feb 24, 2025
9ca1011
Added magnetic limit switch, more smartdashboard values
Niosocket11 Feb 24, 2025
00291ee
update arm code, create arm to position
sofiebudman Feb 24, 2025
d457410
fixed variable names
sofiebudman Feb 24, 2025
3d4cd09
changes to constants
sofiebudman Feb 25, 2025
3850265
armToPos
sofiebudman Feb 26, 2025
64e2180
j
sofiebudman Feb 26, 2025
57cbf5e
comments
sofiebudman Feb 26, 2025
d70480f
Deleted useless variables and fixed setarmposition()
Kenneth-Choothakan Feb 26, 2025
07b8330
resolved merge conflict
Kenneth-Choothakan Feb 26, 2025
d48b4fc
merge
sofiebudman Feb 26, 2025
c03b2cb
fix issues with commads
sofiebudman Feb 26, 2025
bf206b1
Merge remote-tracking branch 'origin/drivetrain' into elevatorCodeKarena
TuskAct2 Feb 26, 2025
3b71d70
Constants added, tolerance added
Niosocket11 Feb 26, 2025
b449786
Constants update and cleanup
Niosocket11 Feb 26, 2025
d5c8347
Merge remote-tracking branch 'origin/AlgaeBranch' into elevatorCodeKa…
TuskAct2 Feb 26, 2025
1e9fa30
Solved Merge conflicts
TuskAct2 Feb 26, 2025
b094942
Merge branch 'elevatorCodeKarena' of https://github.com/DeepBlueRobot…
TuskAct2 Feb 26, 2025
7ba801e
added a fw and bw only drive when getting alge and placing coral
TuskAct2 Feb 26, 2025
7488800
Update Constants.java
Niosocket11 Mar 5, 2025
2298879
updated PositionConversionFactor to reflect real values
BrandonS09 Mar 6, 2025
44bb175
Changed Position Conversion Factor to Code Math
BrandonS09 Mar 6, 2025
4d5b5a7
Add sysid BUG ERROR
Niosocket11 Mar 7, 2025
87695bc
Bug error fixed!
Niosocket11 Mar 7, 2025
20e89f9
Deleted ElevatorL1-L4 Commmands. Changed to singular ElevatorLPos com…
FriedLongJohns Mar 8, 2025
a798ce4
ElevatorLPos now replaces all setGoal commands
FriedLongJohns Mar 8, 2025
b837f43
fix tests
FriedLongJohns Mar 8, 2025
74b469e
Merge branch 'elevatorCodeKarena' of https://github.com/DeepBlueRobot…
FriedLongJohns Mar 8, 2025
fe452cb
Changed constants to follow master config | Added (i think a limit on…
FriedLongJohns Mar 8, 2025
fd73c06
added teleopElevator based off last years arm
FriedLongJohns Mar 8, 2025
d520427
Added teleopelevator default command and fixed more magic numbers
FriedLongJohns Mar 8, 2025
3ef9ca2
Synced into meters
Niosocket11 Mar 9, 2025
c9a35cf
uses lib199 to create motors; gear ratio and inversion constants
stwiggy Mar 9, 2025
5eac507
fixed constants (hopefully)
DriverStationComputer Mar 9, 2025
59079c8
updated sysid code by adding buttons for shuffleboard for quasistatic…
DriverStationComputer Mar 9, 2025
ba926b7
Error fixing
Niosocket11 Mar 10, 2025
140192c
added safety limits for max height and velocity of the elevator for s…
DriverStationComputer Mar 11, 2025
121fe9b
adjusted stuff
DriverStationComputer Mar 11, 2025
28abf55
fixed errors and violated robot container
DriverStationComputer Mar 11, 2025
605b2bf
Feedforward Values!!!!!! :))))))
BrandonS09 Mar 11, 2025
dcc0e4e
daniel look at this pls
BrandonS09 Mar 11, 2025
8f5837f
cooketh thy 199 - daniel
BrandonS09 Mar 11, 2025
2bd4dc2
maybe goToGoal Fix
BrandonS09 Mar 11, 2025
6b1bc82
Good Constants, elevator moves to goal consistently with no oscillations
DriverStationComputer Mar 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deploy {
// or from command line. If not found an exception will be thrown.
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
// want to store a team number in this file.
team = project.frc.getTeamNumber()
team = project.frc.getTeamOrDefault(199)
debug = project.frc.getDebugOrDefault(false)

artifacts {
Expand Down
62 changes: 62 additions & 0 deletions src/main/java/org/carlmontrobotics/Constants.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.carlmontrobotics;

import com.revrobotics.spark.config.SparkBaseConfig.IdleMode;

public final class Constants {
// public static final class Drivetrain {
// public static final double MAX_SPEED_MPS = 2;
Expand All @@ -12,4 +14,64 @@ public static final class Manipulator {
public static final int port = 1;
}
}
public static final class Elevatorc {
//ports
public static final int masterPort = 20;
public static final int followerPort = 21;
public static final int elevatorTopLimitSwitchPort = 1;
public static final int elevatorBottomLimitSwitchPort = 2;


//Config
//TODO figure these parts out
public static final IdleMode masterIdleMode = IdleMode.kBrake;
public static final IdleMode followerIdleMode = IdleMode.kBrake;
public static final boolean masterInverted = true;
public static final boolean followerInverted = true;
public static final double masterPositionConversionFactor = 1000;
public static final double followerPositionConversionFactor = 1000;
public static final double masterVelocityConversionFactor = 1000;
public static final double followerVelocityConversionFactor = 1000;
public static final double maxElevatorHeightInches = 0;
public static final double minElevatorHeightInches = 0;

//PID
public static final double kP = 1;
public static final double kI = 0;
public static final double kD = 0;
//Positions
public static final double downPos = 0;
public static final double l1 = 0;
public static final double l2 = 0;
public static final double l3 = 0;
public static final double l4 = 0;
public static final double net = 0;
public static final double processor = 0;
public static final double bottomAlgaeRemoval = 0;
public static final double uppperAlgaeRemoval = 0;
//ScoreENUM
public enum ElevatorPos {
DOWN(downPos),
L1(l1),
L2(l2),
L3(l3),
L4(l4),
NET(net),
PROCESSOR(processor),
BOTTOMALGAE(bottomAlgaeRemoval),
UPPERALGAE(uppperAlgaeRemoval);

public final double positionInches;
ElevatorPos(double positionInches) {
this.positionInches = positionInches;
}

public double getPosition() {
return positionInches;
}
}
//Tolerance
public static final double elevatorTolerance = 0.4;

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorBottomAlgaeRemoval extends Command {
Elevator elevator;

public ElevatorBottomAlgaeRemoval(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.BOTTOMALGAE);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
31 changes: 31 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorDown.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorDown extends Command {
Elevator elevator;

public ElevatorDown(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.DOWN);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
31 changes: 31 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorL1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorL1 extends Command {
Elevator elevator;

public ElevatorL1(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.L1);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
31 changes: 31 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorL2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorL2 extends Command {
Elevator elevator;

public ElevatorL2(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.L2);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
31 changes: 31 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorL3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorL3 extends Command {
Elevator elevator;

public ElevatorL3(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.L3);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
31 changes: 31 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorL4.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorL4 extends Command {
Elevator elevator;

public ElevatorL4(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.L4);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
31 changes: 31 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorNet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorNet extends Command {
Elevator elevator;

public ElevatorNet(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.NET);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
30 changes: 30 additions & 0 deletions src/main/java/org/carlmontrobotics/commands/ElevatorProcessor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;
import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;

public class ElevatorProcessor extends Command {
private final Elevator elevator;
public ElevatorProcessor(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.PROCESSOR);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.carlmontrobotics.commands;

import org.carlmontrobotics.Constants.Elevatorc.ElevatorPos;
import org.carlmontrobotics.subsystems.Elevator;

import edu.wpi.first.wpilibj2.command.Command;

public class ElevatorUpperAlgaeRemoval extends Command {
Elevator elevator;

public ElevatorUpperAlgaeRemoval(Elevator elevator) {
addRequirements(this.elevator = elevator);
}
@Override
public void initialize() {

}

@Override
public void execute() {
elevator.setGoal(ElevatorPos.UPPERALGAE);
}
@Override
public void end(boolean interrupted) {

}
@Override
public boolean isFinished() {
return false;
}
}
Loading