Skip to content

Commit

Permalink
Merge branch 'main' of github.com:StuyPulse/BigWang into se/kraken-time
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Mar 23, 2024
2 parents 1bbc687 + b301ed9 commit d5afd77
Show file tree
Hide file tree
Showing 70 changed files with 366 additions and 290 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.3.1"
id "edu.wpi.first.GradleRIO" version "2024.3.2"
id "com.diffplug.spotless" version "6.22.0"
}

Expand Down
Binary file added dslogs/2024_03_16 13_43_58 Sat.dsevents
Binary file not shown.
Binary file added dslogs/2024_03_16 13_43_58 Sat.dslog
Binary file not shown.
Binary file added dslogs/2024_03_16 13_44_45 Sat.dsevents
Binary file not shown.
Binary file added dslogs/2024_03_16 13_44_45 Sat.dslog
Binary file not shown.
Binary file added dslogs/2024_03_16 13_58_15 Sat.dsevents
Binary file not shown.
Binary file added dslogs/2024_03_16 13_58_15 Sat.dslog
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/autos/2 DE.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"type": "path",
"data": {
"pathName": "A To D"
"pathName": "Preload Shot to D"
}
},
{
Expand All @@ -26,7 +26,7 @@
{
"type": "path",
"data": {
"pathName": "E To Shoot"
"pathName": "E to Shoot"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions src/main/deploy/pathplanner/autos/3 ADE.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
{
"type": "path",
"data": {
"pathName": "First Piece To A"
"pathName": "Preload Shot to A"
}
},
{
"type": "path",
"data": {
"pathName": "A To D"
"pathName": "A to D"
}
},
{
Expand All @@ -32,7 +32,7 @@
{
"type": "path",
"data": {
"pathName": "E To Shoot"
"pathName": "E to Shoot"
}
}
]
Expand Down
31 changes: 0 additions & 31 deletions src/main/deploy/pathplanner/autos/4 CBA.auto

This file was deleted.

12 changes: 6 additions & 6 deletions src/main/deploy/pathplanner/autos/4 HGF.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,37 @@
{
"type": "path",
"data": {
"pathName": "Start To H (HGF)"
"pathName": "Start to H (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "H To HShoot (HGF)"
"pathName": "H to HShoot (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "HShoot To G (HGF)"
"pathName": "HShoot to G (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "G To Shoot (HGF)"
"pathName": "G to Shoot (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "GShoot To F (HGF)"
"pathName": "GShoot to F (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "F To Shoot (HGF)"
"pathName": "F to Shoot (HGF)"
}
}
]
Expand Down
10 changes: 5 additions & 5 deletions src/main/deploy/pathplanner/autos/5 CBAE Podium Forward.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@
{
"type": "path",
"data": {
"pathName": "Forward First Piece to C"
"pathName": "Close Preload to C"
}
},
{
"type": "path",
"data": {
"pathName": "C to B 2"
"pathName": "C to B Close"
}
},
{
"type": "path",
"data": {
"pathName": "B To A"
"pathName": "B to A"
}
},
{
"type": "path",
"data": {
"pathName": "A To E"
"pathName": "A to E"
}
},
{
"type": "path",
"data": {
"pathName": "E To Shoot"
"pathName": "E to Shoot"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/autos/5 CBAE Podium.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"type": "path",
"data": {
"pathName": "Blay First Piece To C"
"pathName": "Preload to C"
}
},
{
Expand All @@ -20,19 +20,19 @@
{
"type": "path",
"data": {
"pathName": "B To A"
"pathName": "B to A"
}
},
{
"type": "path",
"data": {
"pathName": "A To E"
"pathName": "A to E"
}
},
{
"type": "path",
"data": {
"pathName": "E To Shoot"
"pathName": "E to Shoot"
}
}
]
Expand Down
49 changes: 0 additions & 49 deletions src/main/deploy/pathplanner/autos/5 CBAE.auto

This file was deleted.

52 changes: 0 additions & 52 deletions src/main/deploy/pathplanner/paths/Start To C.path

This file was deleted.

6 changes: 5 additions & 1 deletion src/main/java/com/stuypulse/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import edu.wpi.first.wpilibj.DataLogManager;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
Expand Down Expand Up @@ -70,6 +69,11 @@ public void robotInit() {
@Override
public void robotPeriodic() {
scheduler.run();

SmartDashboard.putNumber("Total Power (W)", robot.pdp.getTotalPower());
SmartDashboard.putNumber("Total Current (A)", robot.pdp.getTotalCurrent());
SmartDashboard.putNumber("Battery Voltage (V)", robot.pdp.getVoltage());
SmartDashboard.putNumber("Calculated Resistance (R)", robot.pdp.getVoltage() / robot.pdp.getTotalCurrent());
}

public static boolean isBlue() {
Expand Down
Loading

0 comments on commit d5afd77

Please sign in to comment.