Class COTS
java.lang.Object
org.ironmaple.simulation.drivesims.COTS
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumStores the coefficient of friction of some common used wheels.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Supplier<GyroSimulation>Creates the Simulation for a Generic, Low-Accuracy IMU.static SwerveModuleSimulationConfigcreates a SDS Mark4 Swerve Module for simulationstatic SwerveModuleSimulationConfigcreates a SDS Mark4-i Swerve Module for simulationstatic SwerveModuleSimulationConfigcreates a SDS Mark4-n Swerve Module for simulationstatic SwerveModuleSimulationConfigofMAXSwerve(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) Creates a REV MAXSwerve swerve module for simulationstatic Supplier<GyroSimulation>ofNav2X()Creates the Simulation for a navX2-MXP IMU.static Supplier<GyroSimulation>Creates the Simulation for a CTRE Pigeon 2 IMU.static SwerveModuleSimulationConfigcreates a WCP SwerveX Swerve Module for simulationstatic SwerveModuleSimulationConfigofSwerveX2(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX2 Swerve Module for simulationstatic SwerveModuleSimulationConfigofSwerveX2S(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX2S Swerve Module for simulationstatic SwerveModuleSimulationConfigofSwerveXFlipped(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX Flipped Swerve Module for simulationstatic SwerveModuleSimulationConfigofSwerveXS(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveXS Swerve Module for simulationstatic SwerveModuleSimulationConfigofThriftySwerve(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) Creates a TTB Thrifty Swerve swerve module for simulation
- 
Constructor Details- 
COTSpublic COTS()
 
- 
- 
Method Details- 
ofMark4public static SwerveModuleSimulationConfig ofMark4(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a SDS Mark4 Swerve Module for simulation
- 
ofMark4ipublic static SwerveModuleSimulationConfig ofMark4i(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a SDS Mark4-i Swerve Module for simulation
- 
ofMark4npublic static SwerveModuleSimulationConfig ofMark4n(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a SDS Mark4-n Swerve Module for simulation
- 
ofSwerveXpublic static SwerveModuleSimulationConfig ofSwerveX(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX Swerve Module for simulationX1 Ratios are gearRatioLevel 1-3 
 X2 Ratios are gearRatioLevel 4-6
 X3 Ratios are gearRatioLevel 7-9
- 
ofSwerveXFlippedpublic static SwerveModuleSimulationConfig ofSwerveXFlipped(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX Flipped Swerve Module for simulationX1 Ratios are gearRatioLevel 1-3 
 X2 Ratios are gearRatioLevel 4-6
 X3 Ratios are gearRatioLevel 7-9
- 
ofSwerveXSpublic static SwerveModuleSimulationConfig ofSwerveXS(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveXS Swerve Module for simulationX1 Ratios are gearRatioLevel 1-3 
 X2 Ratios are gearRatioLevel 4-6
- 
ofSwerveX2public static SwerveModuleSimulationConfig ofSwerveX2(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX2 Swerve Module for simulationX1 Ratios are gearRatioLevel 1-3 
 X2 Ratios are gearRatioLevel 4-6
 X3 Ratios are gearRatioLevel 7-9
 X4 Ratios are gearRatioLevel 10-12
- 
ofSwerveX2Spublic static SwerveModuleSimulationConfig ofSwerveX2S(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX2S Swerve Module for simulationX1 Ratios are gearRatioLevel 1-3 
 X2 Ratios are gearRatioLevel 4-6
 X3 Ratios are gearRatioLevel 7-9
- 
ofMAXSwervepublic static SwerveModuleSimulationConfig ofMAXSwerve(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) Creates a REV MAXSwerve swerve module for simulationBase Kit ratios are gearRatioLevel 1-3 
 Gear Ratio Upgrade Kit ratios are gearRatioLevel 4-8
- 
ofThriftySwervepublic static SwerveModuleSimulationConfig ofThriftySwerve(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) Creates a TTB Thrifty Swerve swerve module for simulation
- 
ofPigeon2Creates the Simulation for a CTRE Pigeon 2 IMU.- Returns:
- a gyro simulation factory configured for the Pigeon 2 IMU
 
- 
ofGenericGyroCreates the Simulation for a Generic, Low-Accuracy IMU.- Returns:
- a gyro simulation factory configured for a generic low-accuracy IMU
 
 
-