Class COTS
java.lang.Object
org.ironmaple.simulation.drivesims.COTS
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Stores the coefficient of friction of some common used wheels. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier<GyroSimulation>
Creates the Simulation for a Generic, Low-Accuracy IMU.static SwerveModuleSimulationConfig
creates a SDS Mark4 Swerve Module for simulationstatic SwerveModuleSimulationConfig
creates a SDS Mark4-i Swerve Module for simulationstatic SwerveModuleSimulationConfig
creates a SDS Mark4-n Swerve Module for simulationstatic SwerveModuleSimulationConfig
ofMAXSwerve
(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 SwerveModuleSimulationConfig
creates a WCP SwerveX Swerve Module for simulationstatic SwerveModuleSimulationConfig
ofSwerveX2
(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX2 Swerve Module for simulationstatic SwerveModuleSimulationConfig
ofSwerveX2S
(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX2S Swerve Module for simulationstatic SwerveModuleSimulationConfig
ofSwerveXFlipped
(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveX Flipped Swerve Module for simulationstatic SwerveModuleSimulationConfig
ofSwerveXS
(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a WCP SwerveXS Swerve Module for simulationstatic SwerveModuleSimulationConfig
ofThriftySwerve
(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) Creates a TTB Thrifty Swerve swerve module for simulation
-
Constructor Details
-
COTS
public COTS()
-
-
Method Details
-
ofMark4
public static SwerveModuleSimulationConfig ofMark4(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a SDS Mark4 Swerve Module for simulation -
ofMark4i
public static SwerveModuleSimulationConfig ofMark4i(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a SDS Mark4-i Swerve Module for simulation -
ofMark4n
public static SwerveModuleSimulationConfig ofMark4n(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) creates a SDS Mark4-n Swerve Module for simulation -
ofSwerveX
public 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 -
ofSwerveXFlipped
public 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 -
ofSwerveXS
public 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 -
ofSwerveX2
public 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 -
ofSwerveX2S
public 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 -
ofMAXSwerve
public 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 -
ofThriftySwerve
public static SwerveModuleSimulationConfig ofThriftySwerve(DCMotor driveMotor, DCMotor steerMotor, double wheelCOF, int gearRatioLevel) Creates a TTB Thrifty Swerve swerve module for simulation -
ofPigeon2
Creates the Simulation for a CTRE Pigeon 2 IMU.
- Returns:
- a gyro simulation factory configured for the Pigeon 2 IMU
-
ofGenericGyro
Creates the Simulation for a Generic, Low-Accuracy IMU.
- Returns:
- a gyro simulation factory configured for a generic low-accuracy IMU
-