generated from StuyPulse/Phil
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into se/coral-mech
- Loading branch information
Showing
28 changed files
with
1,325 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"keyboardJoysticks": [ | ||
{ | ||
"axisConfig": [ | ||
{ | ||
"decKey": 65, | ||
"incKey": 68 | ||
}, | ||
{ | ||
"decKey": 87, | ||
"incKey": 83 | ||
}, | ||
{ | ||
"decKey": 69, | ||
"decayRate": 0.0, | ||
"incKey": 82, | ||
"keyRate": 0.009999999776482582 | ||
} | ||
], | ||
"axisCount": 3, | ||
"buttonCount": 4, | ||
"buttonKeys": [ | ||
90, | ||
88, | ||
67, | ||
86 | ||
], | ||
"povConfig": [ | ||
{ | ||
"key0": 328, | ||
"key135": 323, | ||
"key180": 322, | ||
"key225": 321, | ||
"key270": 324, | ||
"key315": 327, | ||
"key45": 329, | ||
"key90": 326 | ||
} | ||
], | ||
"povCount": 1 | ||
}, | ||
{ | ||
"axisConfig": [ | ||
{ | ||
"decKey": 74, | ||
"incKey": 76 | ||
}, | ||
{ | ||
"decKey": 73, | ||
"incKey": 75 | ||
} | ||
], | ||
"axisCount": 2, | ||
"buttonCount": 4, | ||
"buttonKeys": [ | ||
77, | ||
44, | ||
46, | ||
47 | ||
], | ||
"povCount": 0 | ||
}, | ||
{ | ||
"axisConfig": [ | ||
{ | ||
"decKey": 263, | ||
"incKey": 262 | ||
}, | ||
{ | ||
"decKey": 265, | ||
"incKey": 264 | ||
} | ||
], | ||
"axisCount": 2, | ||
"buttonCount": 6, | ||
"buttonKeys": [ | ||
260, | ||
268, | ||
266, | ||
261, | ||
269, | ||
267 | ||
], | ||
"povCount": 0 | ||
}, | ||
{ | ||
"axisCount": 0, | ||
"buttonCount": 0, | ||
"povCount": 0 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"HALProvider": { | ||
"Encoders": { | ||
"window": { | ||
"visible": true | ||
} | ||
}, | ||
"PWM Outputs": { | ||
"window": { | ||
"visible": true | ||
} | ||
} | ||
}, | ||
"NTProvider": { | ||
"types": { | ||
"/FMSInfo": "FMSInfo", | ||
"/SmartDashboard/Autonomous": "String Chooser", | ||
"/SmartDashboard/Visualizers/Elevator": "Mechanism2d" | ||
}, | ||
"windows": { | ||
"/SmartDashboard/Visualizers/Elevator": { | ||
"/SmartDashboard/algae": "Mechanism2d" | ||
}, | ||
"windows": { | ||
"/SmartDashboard/algae": { | ||
"window": { | ||
"visible": true | ||
} | ||
} | ||
} | ||
}, | ||
"NetworkTables": { | ||
"transitory": { | ||
"FMSInfo": { | ||
"open": true | ||
}, | ||
"LiveWindow": { | ||
"open": true | ||
}, | ||
"Shuffleboard": { | ||
"open": true | ||
}, | ||
"SmartDashboard": { | ||
"Elevator": { | ||
|
||
"algae": { | ||
|
||
"open": true | ||
}, | ||
"open": true | ||
} | ||
} | ||
}, | ||
"NetworkTables Info": { | ||
"Clients": { | ||
"open": true | ||
}, | ||
"Server": { | ||
|
||
"Publishers": { | ||
"open": true | ||
}, | ||
"Subscribers": { | ||
"open": true | ||
} | ||
}, | ||
"visible": true | ||
}, | ||
"NetworkTables View": { | ||
"visible": false | ||
|
||
"open": true | ||
}, | ||
"visible": true | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/main/java/com/stuypulse/robot/commands/Elevator/ElevatorToBottom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.stuypulse.robot.commands.Elevator; | ||
|
||
import com.stuypulse.robot.constants.Settings.Elevator; | ||
|
||
public class ElevatorToBottom extends ElevatorToHeight { | ||
|
||
public ElevatorToBottom() { | ||
super(Elevator.MIN_HEIGHT); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/stuypulse/robot/commands/Elevator/ElevatorToHeight.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.stuypulse.robot.commands.Elevator; | ||
|
||
import com.stuypulse.robot.subsystems.Elevator.Elevator; | ||
|
||
import edu.wpi.first.wpilibj2.command.InstantCommand; | ||
|
||
public class ElevatorToHeight extends InstantCommand { | ||
private final Elevator elevator; | ||
private final double targetHeight; | ||
|
||
public ElevatorToHeight(double targetHeight){ | ||
elevator = Elevator.getInstance(); | ||
this.targetHeight = targetHeight; | ||
|
||
addRequirements(elevator); | ||
} | ||
|
||
public void initialize(){ | ||
elevator.setTargetHeight(targetHeight); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/stuypulse/robot/commands/Elevator/ElevatorToLvl1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.stuypulse.robot.commands.Elevator; | ||
|
||
import com.stuypulse.robot.constants.Settings.Elevator; | ||
|
||
public class ElevatorToLvl1 extends ElevatorToHeight{ | ||
public ElevatorToLvl1(){ | ||
super(Elevator.L1); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/stuypulse/robot/commands/Elevator/ElevatorToLvl2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.stuypulse.robot.commands.Elevator; | ||
|
||
import com.stuypulse.robot.constants.Settings.Elevator; | ||
|
||
public class ElevatorToLvl2 extends ElevatorToHeight { | ||
public ElevatorToLvl2(){ | ||
super(Elevator.L2); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/stuypulse/robot/commands/Elevator/ElevatorToLvl3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.stuypulse.robot.commands.Elevator; | ||
|
||
import com.stuypulse.robot.constants.Settings.Elevator; | ||
|
||
public class ElevatorToLvl3 extends ElevatorToHeight { | ||
public ElevatorToLvl3(){ | ||
super(Elevator.L3); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/stuypulse/robot/commands/Elevator/ElevatorToLvl4.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.stuypulse.robot.commands.Elevator; | ||
|
||
import com.stuypulse.robot.constants.Settings.Elevator; | ||
|
||
public class ElevatorToLvl4 extends ElevatorToHeight{ | ||
public ElevatorToLvl4(){ | ||
super(Elevator.L4); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/stuypulse/robot/commands/algae/AlgaeGroundPickup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.stuypulse.robot.commands.algae; | ||
|
||
import com.stuypulse.robot.constants.Settings; | ||
|
||
public class AlgaeGroundPickup extends AlgaeSetPivot { | ||
|
||
public AlgaeGroundPickup(){ | ||
super(Settings.Algae.GROUND_PICKUP_ANGLE); | ||
algae.acquireUnder(); | ||
} | ||
public void initialize(){ | ||
super.initialize(); | ||
} | ||
|
||
} |
Oops, something went wrong.