Conversation
| public static final DriveTrainSimulationConfig mapleSimConfig = | ||
| DriveTrainSimulationConfig.Default() | ||
| .withRobotMass(Constants.Robot.massWithBumpers) | ||
| .withBumperSize(Meters.of(0.86), Meters.of(0.86)) // FRC standard 34" x 34" |
There was a problem hiding this comment.
should we change to our dimensions?
| // Adjust steer motor PID gains for simulation | ||
| .withSteerMotorGains( | ||
| new Slot0Configs() | ||
| .withKP(70) |
There was a problem hiding this comment.
note different gains than in ModuleIOSim
| flywheels.simulateLaunchedFuel(flywheels::atTarget), | ||
| feeder.feedWhenReady(flywheels::atTarget), | ||
| dyeRotor.feedWhenReady(flywheels::atTarget), | ||
| extension.maintainFuelPressureCommand()) |
There was a problem hiding this comment.
intentional remove of maintainFuelPressureCommand?
There was a problem hiding this comment.
yeah, if we're using otf, we should be continuously collecting and thus the intake needs to stay out
Sid220
left a comment
There was a problem hiding this comment.
Think it'll be easier to switch between sim and hardware and more clear if Odometry/Robot and FieldSimulation/RobotPosition are the same.
Let's discuss this tonight. In the real world, the robot position would eventually diverge from the robot's odometry over time. We just correct that divergence with periodic updates from SLAMDunk. We don't currently have a simulated SLAMDunk, so there's no correction in sim. We could have both worlds, and pass a boolean that lets us choose between syncing the two poses and letting them diverge |
Describe your changes
Adds maplesim, a physics-based simulation of the rebuild field and game piece.
Recommended visualization topics:

Issue ticket number and link
PR Yes/No List
1. Scope
2. Build & Deploy
3. Safety & Enable Behavior
4. Testing & Verification
5. Behavior & Integration
6. Code Quality & Maintainability
7. Readiness to Merge