Skip to content

Commit fb191bc

Browse files
committed
auton vision stuff changes
1 parent e839fcd commit fb191bc

File tree

15 files changed

+91
-80
lines changed

15 files changed

+91
-80
lines changed

src/main/deploy/pathplanner/paths/F_Load.path

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 6.2692826086956535,
12-
"y": 1.5998260869565217
11+
"x": 4.830908026069234,
12+
"y": 1.9518060929976624
1313
},
1414
"isLocked": false,
1515
"linkedName": "F"
@@ -20,8 +20,8 @@
2020
"y": 0.7151315789473688
2121
},
2222
"prevControl": {
23-
"x": 2.566518878718536,
24-
"y": 1.3681207093821506
23+
"x": 3.069619172428834,
24+
"y": 1.3063477775858439
2525
},
2626
"nextControl": null,
2727
"isLocked": false,
@@ -40,12 +40,12 @@
4040
}
4141
],
4242
"globalConstraints": {
43-
"maxVelocity": 3.5,
44-
"maxAcceleration": 3.5,
43+
"maxVelocity": 4.75,
44+
"maxAcceleration": 4.25,
4545
"maxAngularVelocity": 400.0,
4646
"maxAngularAcceleration": 600.0,
4747
"nominalVoltage": 12.0,
48-
"unlimited": true
48+
"unlimited": false
4949
},
5050
"goalEndState": {
5151
"velocity": 0,
@@ -57,5 +57,5 @@
5757
"velocity": 0,
5858
"rotation": -59.82647997035571
5959
},
60-
"useDefaultConstraints": true
60+
"useDefaultConstraints": false
6161
}

src/main/deploy/pathplanner/paths/G_GH-Algae.path

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"waypoints": [
44
{
55
"anchor": {
6-
"x": 6.63,
6+
"x": 6.2692499999999995,
77
"y": 3.966499999999999
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 8.12673913043478,
11+
"x": 7.76598913043478,
1212
"y": 3.87111956521739
1313
},
1414
"isLocked": false,

src/main/deploy/pathplanner/paths/G_LGr.path

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"waypoints": [
44
{
55
"anchor": {
6-
"x": 6.63,
6+
"x": 6.2692499999999995,
77
"y": 3.966499999999999
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 8.535065217391303,
11+
"x": 8.174315217391305,
1212
"y": 5.6906847826086935
1313
},
1414
"isLocked": false,

src/main/deploy/pathplanner/paths/G_RGr.path

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"waypoints": [
44
{
55
"anchor": {
6-
"x": 6.63,
6+
"x": 6.2692499999999995,
77
"y": 3.966499999999999
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 8.153543478260868,
11+
"x": 7.792793478260868,
1212
"y": 2.491771739130434
1313
},
1414
"isLocked": false,

src/main/deploy/pathplanner/paths/I_Load.path

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 6.222847826086958,
12-
"y": 6.526152173913043
11+
"x": 4.921869781764967,
12+
"y": 6.00718707747607
1313
},
1414
"isLocked": false,
1515
"linkedName": "I"
@@ -20,8 +20,8 @@
2020
"y": 7.3541118421052625
2121
},
2222
"prevControl": {
23-
"x": 3.0374057591185633,
24-
"y": 6.950586503581804
23+
"x": 3.226745198966955,
24+
"y": 6.6621220020961385
2525
},
2626
"nextControl": null,
2727
"isLocked": false,
@@ -33,12 +33,12 @@
3333
"pointTowardsZones": [],
3434
"eventMarkers": [],
3535
"globalConstraints": {
36-
"maxVelocity": 3.5,
37-
"maxAcceleration": 3.5,
36+
"maxVelocity": 4.75,
37+
"maxAcceleration": 4.25,
3838
"maxAngularVelocity": 400.0,
3939
"maxAngularAcceleration": 600.0,
4040
"nominalVoltage": 12.0,
41-
"unlimited": true
41+
"unlimited": false
4242
},
4343
"goalEndState": {
4444
"velocity": 0,
@@ -50,5 +50,5 @@
5050
"velocity": 0,
5151
"rotation": 59.966719564004734
5252
},
53-
"useDefaultConstraints": true
53+
"useDefaultConstraints": false
5454
}

src/main/deploy/pathplanner/paths/Start_G.path

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
},
1717
{
1818
"anchor": {
19-
"x": 6.63,
19+
"x": 6.2692499999999995,
2020
"y": 3.966499999999999
2121
},
2222
"prevControl": {
23-
"x": 7.323755078679089,
23+
"x": 6.963005078679089,
2424
"y": 3.963511937221352
2525
},
2626
"nextControl": null,

src/main/deploy/pathplanner/paths/Start_Mid_1.path

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
},
1717
{
1818
"anchor": {
19-
"x": 6.63,
19+
"x": 6.2692499999999995,
2020
"y": 3.966499999999999
2121
},
2222
"prevControl": {
23-
"x": 7.323755078679089,
23+
"x": 6.963005078679089,
2424
"y": 3.963511937221352
2525
},
2626
"nextControl": null,
@@ -33,10 +33,10 @@
3333
"pointTowardsZones": [],
3434
"eventMarkers": [],
3535
"globalConstraints": {
36-
"maxVelocity": 3.5,
37-
"maxAcceleration": 3.5,
38-
"maxAngularVelocity": 400.0,
39-
"maxAngularAcceleration": 600.0,
36+
"maxVelocity": 1.0,
37+
"maxAcceleration": 1.0,
38+
"maxAngularVelocity": 200.0,
39+
"maxAngularAcceleration": 300.0,
4040
"nominalVoltage": 12.0,
4141
"unlimited": false
4242
},
@@ -50,5 +50,5 @@
5050
"velocity": 0,
5151
"rotation": 0.0
5252
},
53-
"useDefaultConstraints": true
53+
"useDefaultConstraints": false
5454
}

src/main/java/frc/robot/RobotContainer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ public void setDefaultCommands() {
158158
// new ElevatorSubsystem.DefaultCommand(ElevatorSubsystem.getInstance(), operator::getElevatorOutput)
159159
// );
160160

161-
// ElevatorSubsystem.getInstance().setDefaultCommand(
162-
// new ElevatorSubsystem.zero()
163-
// );
164-
AlgaeSubsystem.getInstance().setDefaultCommand(
165-
new AlgaeSubsystem.DefaultCommand()
166-
);
167161
RushinatorPivot.getInstance().setDefaultCommand(
168162
new RushinatorPivot.DefaultCommand()
169163
);
164+
ElevatorSubsystem.getInstance().setDefaultCommand(
165+
new ElevatorSubsystem.zero()
166+
);
167+
AlgaeSubsystem.getInstance().setDefaultCommand(
168+
new AlgaeSubsystem.DefaultCommand()
169+
);
170170
RushinatorRollers.getInstance().setDefaultCommand(
171171
new RushinatorRollers.DefaultCommand()
172172
);

src/main/java/frc/robot/auton/AutonMaster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public AutonMaster() {
5656
try {
5757
var config = RobotConfig.fromGUISettings();
5858
AutoBuilder.configure(
59-
drivetrain::getPose, // Supplier of current robot pose
59+
() -> PoseEstimatorSubsystem.getInstance().getCurrentPose(), // Supplier of current robot pose
6060
drivetrain::resetPose, // Consumer for seeding pose against auto
6161
drivetrain::getRobotRelvativeSpeeds, // Supplier of current robot speeds
6262
// Consumer of ChassisSpeeds and feedforwards to drive the robot

src/main/java/frc/robot/commands/RobotCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ public static Command scoreCoralAutonL4(){
109109
return new SequentialCommandGroup(
110110
new ParallelRaceGroup(
111111
new SetElevatorState(ElevatorSubsystem.State.kCoralScoreL4),
112-
new SetArmState(RushinatorPivot.State.kScoreL4Auton),
112+
new SetArmState(RushinatorPivot.State.kScoreL4),
113113
new SetWristState(RushinatorWrist.State.kScoreL4RightWrist),
114-
new WaitCommand(0.35)
114+
new WaitCommand(0.4)
115115
),
116116
new ParallelRaceGroup(
117117
new SetArmState(RushinatorPivot.State.kStowTravel),

0 commit comments

Comments
 (0)