Skip to content

Commit

Permalink
updated template projects to newest version of maple-sim
Browse files Browse the repository at this point in the history
  • Loading branch information
catr1xLiu committed Dec 25, 2024
1 parent d894fd5 commit 91e690c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Pose3d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.XboxController;
Expand Down Expand Up @@ -167,7 +166,6 @@ public void displaySimFieldToAdvantageScope() {

Logger.recordOutput("FieldSimulation/RobotPosition", driveSimulation.getSimulatedDriveTrainPose());
Logger.recordOutput(
"FieldSimulation/Notes",
SimulatedArena.getInstance().getGamePiecesByType("Note").toArray(new Pose3d[0]));
"FieldSimulation/Notes", SimulatedArena.getInstance().getGamePiecesArrayByType("Note"));
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "maple-sim.json",
"name": "maplesim",
"version": "0.2.6",
"version": "0.2.7",
"frcYear": "2025",
"uuid": "c39481e8-4a63-4a4c-9df6-48d91e4da37b",
"mavenUrls": [
Expand All @@ -13,7 +13,7 @@
{
"groupId": "org.ironmaple",
"artifactId": "maplesim-java",
"version": "0.2.6"
"version": "0.2.7"
},
{
"groupId": "org.dyn4j",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Pose3d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.XboxController;
Expand Down Expand Up @@ -161,7 +160,6 @@ public void displaySimFieldToAdvantageScope() {

Logger.recordOutput("FieldSimulation/RobotPosition", driveSimulation.getSimulatedDriveTrainPose());
Logger.recordOutput(
"FieldSimulation/Notes",
SimulatedArena.getInstance().getGamePiecesByType("Note").toArray(new Pose3d[0]));
"FieldSimulation/Notes", SimulatedArena.getInstance().getGamePiecesArrayByType("Note"));
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "maple-sim.json",
"name": "maplesim",
"version": "0.2.6",
"version": "0.2.7",
"frcYear": "2025",
"uuid": "c39481e8-4a63-4a4c-9df6-48d91e4da37b",
"mavenUrls": [
Expand All @@ -12,7 +12,7 @@
{
"groupId": "org.ironmaple",
"artifactId": "maplesim-java",
"version": "0.2.6"
"version": "0.2.7"
},
{
"groupId": "org.dyn4j",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.pathplanner.lib.auto.AutoBuilder;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Pose3d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.XboxController;
Expand Down Expand Up @@ -169,7 +168,6 @@ public void displaySimFieldToAdvantageScope() {

Logger.recordOutput("FieldSimulation/RobotPosition", driveSimulation.getSimulatedDriveTrainPose());
Logger.recordOutput(
"FieldSimulation/Notes",
SimulatedArena.getInstance().getGamePiecesByType("Note").toArray(new Pose3d[0]));
"FieldSimulation/Notes", SimulatedArena.getInstance().getGamePiecesArrayByType("Note"));
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "maple-sim.json",
"name": "maplesim",
"version": "0.2.6",
"version": "0.2.7",
"frcYear": "2025",
"uuid": "c39481e8-4a63-4a4c-9df6-48d91e4da37b",
"mavenUrls": [
Expand All @@ -13,7 +13,7 @@
{
"groupId": "org.ironmaple",
"artifactId": "maplesim-java",
"version": "0.2.6"
"version": "0.2.7"
},
{
"groupId": "org.dyn4j",
Expand Down
4 changes: 2 additions & 2 deletions templates/BaseTalonSwerve-maple-sim/vendordeps/maple-sim.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "maple-sim.json",
"name": "maplesim",
"version": "0.2.7prev",
"version": "0.2.7",
"frcYear": "2025",
"uuid": "c39481e8-4a63-4a4c-9df6-48d91e4da37b",
"mavenUrls": [
Expand All @@ -12,7 +12,7 @@
{
"groupId": "org.ironmaple",
"artifactId": "maplesim-java",
"version": "0.2.7prev"
"version": "0.2.7"
},
{
"groupId": "org.dyn4j",
Expand Down

0 comments on commit 91e690c

Please sign in to comment.