With more enhanced swerve drive simulation using maple-sim.
Original Project is here.
To use the simulation in your own project, please refer to this Commit Change-Log. To see how to simulate intake for your robot, please refer to this Intake Example.
When running the simulation, you can see the simulation results through AdvantageScope, please drag the following fields:
- Open field
AdvantageKit/RealOutputs/FieldSimulation/RobotPosition
make it2024 KitBot
- Open field
AdvantageKit/RealOutputs/FieldSimulation/Notes
and make itNote
- Open field
AdvantageKit/RealOutputs/Intake/NoteInIntake
and make itNote
- Open field
AdvantageKit/RealOutputs/Odometry/Robot
and make itGreen Ghost
Now you can drive the robot around and try grabbing notes with left trigger, and clear the note in intake with left bumper.