Skip to content
Open
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 @@ -167,23 +167,6 @@ public enum RobotType {

private final LoggedDashboardChooser<Command> autoChooser = new LoggedDashboardChooser<>("Autos");

// Logged mechanisms

// temporarily override map with empty map to avoid collisions swith 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());
}

@SuppressWarnings("resource")
public Robot() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
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
15 changes: 15 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,15 @@
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
Loading