The following physics simulation classes are available in WPILib:
LinearSystemSim, for modeling systems with linear dynamics
FlywheelSim
DifferentialDrivetrainSim
ElevatorSim, which models gravity
SingleJointedArmSim, which models gravity
BatterySim, which simply estimates battery voltage sag based on drawn currents
We can use them to simulate our planned robot subsystems. If there isn't one applicable, make a new one.
Open Question: 3rd party libraries do not all support the simulation API. How to simulate those?
See https://docs.wpilib.org/en/stable/docs/software/wpilib-tools/robot-simulation/index.html for information on Simulation facilities in WPILIB.
The following physics simulation classes are available in WPILib: LinearSystemSim, for modeling systems with linear dynamics FlywheelSim DifferentialDrivetrainSim ElevatorSim, which models gravity SingleJointedArmSim, which models gravity BatterySim, which simply estimates battery voltage sag based on drawn currents
We can use them to simulate our planned robot subsystems. If there isn't one applicable, make a new one.
Open Question: 3rd party libraries do not all support the simulation API. How to simulate those?