Package yams.core.motorcontrollers.simulation
package yams.core.motorcontrollers.simulation
Physics-based simulation suppliers for YAMS motor controllers.
Simulation suppliers bridge WPILib's simulation framework and YAMS motor controller wrappers.
Pass an instance to SmartMotorControllerConfig via
withSimSupplier() to enable physics-accurate simulation without changing mechanism code.
ArmSimSuppliersingle-jointed arm physicsDCMotorSimSuppliergeneric DC motor physicsSensorandSensorDatasimulated encoder/sensor state
-
ClassDescriptionArmSim Supplier simulates a single-jointed arm mechanism using WPILib's
SingleJointedArmSim.Battery Simulation that takes the entirety of the robot into account by storing all currently used currents on the robot.DCMotorSim Supplier simulates a generic DC motor load (flywheel, roller, or elevator) using WPILib'sDCMotorSim.ElevatorSim Supplier simulates an elevator mechanism using WPILib'sElevatorSim.Sensor class usingSimDevice; All fields will use the given supplier on real robots.Sensor data class to encapsulate sensor data.HALValue type enum.