Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 0 additions & 17 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import frc.robot.utils.CommandXboxControllerSubsystem;
import java.util.Optional;
import java.util.Set;
import org.ironmaple.simulation.SimulatedArena;
import org.littletonrobotics.junction.AutoLogOutput;
import org.littletonrobotics.junction.LogFileUtil;
import org.littletonrobotics.junction.LoggedRobot;
Expand Down Expand Up @@ -185,22 +184,6 @@ public enum RobotEdition {
@AutoLogOutput boolean haveAutosGenerated = false;
private final LoggedDashboardChooser<Command> autoChooser = new LoggedDashboardChooser<>("Autos");

// temporarily override map with empty map to avoid collisions with reefscape elements
// unfortunately this also turns off collisions with walls but that's fine
// TODO update once rebuilt is added to maplesim
private static class EvergreenArena extends SimulatedArena {
protected EvergreenArena() {
super(new FieldMap() {});
}

@Override
public void placeGamePiecesOnField() {}
}

static {
SimulatedArena.overrideInstance(new EvergreenArena());
}

// this is here because it doesn't like that the power distribution logger is never closed
@SuppressWarnings("resource")
public Robot() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.ctre.phoenix6.CANBus;
import edu.wpi.first.units.measure.Angle;
import frc.robot.subsystems.swerve.SwerveSubsystem;
import frc.robot.utils.MaplePhoenixUtil;
import frc.robot.utils.maplesim.MaplePhoenixUtil;
import org.ironmaple.simulation.drivesims.SwerveModuleSimulation;

public class ModuleIOSim extends ModuleIOReal {
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/frc/robot/utils/maplesim/EvergreenArena.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package frc.robot.utils.maplesim;

import org.ironmaple.simulation.SimulatedArena;

/** A maple sim arena with no collisions */
public class EvergreenArena extends SimulatedArena {
public EvergreenArena() {
super(new FieldMap() {});
}

@Override
public void placeGamePiecesOnField() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

package frc.robot.utils;
package frc.robot.utils.maplesim;

import static edu.wpi.first.units.Units.Seconds;

Expand Down
4 changes: 2 additions & 2 deletions 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.3.14",
"version": "0.4.0-beta",
"frcYear": "2026",
"uuid": "c39481e8-4a63-4a4c-9df6-48d91e4da37b",
"mavenUrls": [
Expand All @@ -13,7 +13,7 @@
{
"groupId": "org.ironmaple",
"artifactId": "maplesim-java",
"version": "0.3.14"
"version": "0.4.0-beta"
},
{
"groupId": "org.dyn4j",
Expand Down