Index
All Classes and Interfaces|All Packages|Constant Field Values
S
- set(double) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the percentage output.
- set(double) - Method in class swervelib.motors.SwerveMotor
-
Set the percentage output.
- set(double) - Method in class swervelib.motors.TalonFXSwerve
-
Set the percentage output.
- set(double) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the percentage output.
- setAbsoluteEncoder(SwerveAbsoluteEncoder) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the absolute encoder to be a compatible absolute encoder.
- setAbsoluteEncoder(SwerveAbsoluteEncoder) - Method in class swervelib.motors.SwerveMotor
-
Set the absolute encoder to be a compatible absolute encoder.
- setAbsoluteEncoder(SwerveAbsoluteEncoder) - Method in class swervelib.motors.TalonFXSwerve
-
Set the absolute encoder to be a compatible absolute encoder.
- setAbsoluteEncoder(SwerveAbsoluteEncoder) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the absolute encoder to be a compatible absolute encoder.
- setAngle(double) - Method in class swervelib.simulation.SwerveIMUSimulation
-
Set the heading of the robot.
- setAngle(double) - Method in class swervelib.SwerveModule
-
Set the angle for the module.
- setChassisSpeeds(ChassisSpeeds) - Method in class swervelib.SwerveDrive
-
Set chassis speeds with closed-loop velocity control.
- setCurrentLimit(int) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with voltage compensation.
- setCurrentLimit(int) - Method in class swervelib.motors.SwerveMotor
-
Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with voltage compensation.
- setCurrentLimit(int) - Method in class swervelib.motors.TalonFXSwerve
-
Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with voltage compensation.
- setCurrentLimit(int) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the current limit for the swerve drive motor, remember this may cause jumping if used in conjunction with voltage compensation.
- setDesiredState(SwerveModuleState2, boolean) - Method in class swervelib.SwerveModule
-
Set the desired state of the swerve module.
- setInverted(boolean) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the motor to be inverted.
- setInverted(boolean) - Method in class swervelib.motors.SwerveMotor
-
Set the motor to be inverted.
- setInverted(boolean) - Method in class swervelib.motors.TalonFXSwerve
-
Set the motor to be inverted.
- setInverted(boolean) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the motor to be inverted.
- setLoopRampRate(double) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the maximum rate the open/closed loop output can change by.
- setLoopRampRate(double) - Method in class swervelib.motors.SwerveMotor
-
Set the maximum rate the open/closed loop output can change by.
- setLoopRampRate(double) - Method in class swervelib.motors.TalonFXSwerve
-
Set the maximum rate the open/closed loop output can change by.
- setLoopRampRate(double) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the maximum rate the open/closed loop output can change by.
- setModuleStates(SwerveModuleState2[], boolean) - Method in class swervelib.SwerveDrive
-
Set the module states (azimuth and velocity) directly.
- setMotorBrake(boolean) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the idle mode.
- setMotorBrake(boolean) - Method in class swervelib.motors.SwerveMotor
-
Set the idle mode.
- setMotorBrake(boolean) - Method in class swervelib.motors.TalonFXSwerve
-
Set the idle mode.
- setMotorBrake(boolean) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the idle mode.
- setMotorBrake(boolean) - Method in class swervelib.SwerveModule
-
Set the brake mode.
- setMotorIdleMode(boolean) - Method in class swervelib.SwerveDrive
-
Sets the drive motors to brake/coast mode.
- setPosition(double) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the integrated encoder position.
- setPosition(double) - Method in class swervelib.motors.SwerveMotor
-
Set the integrated encoder position.
- setPosition(double) - Method in class swervelib.motors.TalonFXSwerve
-
Set the integrated encoder position.
- setPosition(double) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the integrated encoder position.
- setReference(double, double) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the closed loop PID controller reference point.
- setReference(double, double) - Method in class swervelib.motors.SwerveMotor
-
Set the closed loop PID controller reference point.
- setReference(double, double) - Method in class swervelib.motors.TalonFXSwerve
-
Set the closed loop PID controller reference point.
- setReference(double, double) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the closed loop PID controller reference point.
- setVoltageCompensation(double) - Method in class swervelib.motors.SparkMaxSwerve
-
Set the voltage compensation for the swerve module motor.
- setVoltageCompensation(double) - Method in class swervelib.motors.SwerveMotor
-
Set the voltage compensation for the swerve module motor.
- setVoltageCompensation(double) - Method in class swervelib.motors.TalonFXSwerve
-
Set the voltage compensation for the swerve module motor.
- setVoltageCompensation(double) - Method in class swervelib.motors.TalonSRXSwerve
-
Set the voltage compensation for the swerve module motor.
- setYaw(double) - Method in class swervelib.imu.ADIS16448Swerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.ADIS16470Swerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.ADXRS450Swerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.AnalogGyroSwerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.NavXSwerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.Pigeon2Swerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.PigeonSwerve
-
Set the yaw in degrees.
- setYaw(double) - Method in class swervelib.imu.SwerveIMU
-
Set the yaw in degrees.
- sim - Static variable in class swervelib.simulation.ctre.PhysicsSim
- simIMU - Variable in class swervelib.SwerveDrive
-
Simulation of the swerve drive.
- simModule - Variable in class swervelib.SwerveModule
-
Simulated swerve module.
- SimProfile() - Constructor for class swervelib.simulation.ctre.PhysicsSim.SimProfile
- Simulation - Enum constant in enum class swervelib.motors.SparkMaxSwerve.SparkMAX_slotIdx
-
Slot 3, used arbitrarily.
- SparkMAX_slotIdx() - Constructor for enum class swervelib.motors.SparkMaxSwerve.SparkMAX_slotIdx
- SparkMaxEncoderSwerve - Class in swervelib.encoders
-
SparkMax absolute encoder, attached through the data port.
- SparkMaxEncoderSwerve(SwerveMotor) - Constructor for class swervelib.encoders.SparkMaxEncoderSwerve
-
Create the
AbsoluteEncoderobject as a duty cycle. - SparkMaxSwerve - Class in swervelib.motors
-
An implementation of
CANSparkMaxas aSwerveMotor. - SparkMaxSwerve(int, boolean) - Constructor for class swervelib.motors.SparkMaxSwerve
-
Initialize the
SwerveMotoras aCANSparkMaxconnected to a Brushless Motor. - SparkMaxSwerve(CANSparkMax, boolean) - Constructor for class swervelib.motors.SparkMaxSwerve
-
Initialize the swerve motor.
- SparkMaxSwerve.SparkMAX_slotIdx - Enum Class in swervelib.motors
-
REV Slots for PID configuration.
- speedMetersPerSecond - Variable in class swervelib.math.SwerveModuleState2
-
Swerve module speed in meters per second.
- state - Variable in class swervelib.simulation.SwerveModuleSimulation
-
Current simulated swerve module state.
- SwerveAbsoluteEncoder - Class in swervelib.encoders
-
Swerve abstraction class to define a standard interface with absolute encoders for swerve modules..
- SwerveAbsoluteEncoder() - Constructor for class swervelib.encoders.SwerveAbsoluteEncoder
- swerveController - Variable in class swervelib.SwerveDrive
-
Swerve controller for controlling heading of the robot.
- SwerveController - Class in swervelib
-
Controller class used to convert raw inputs into robot speeds.
- SwerveController(SwerveControllerConfiguration) - Constructor for class swervelib.SwerveController
-
Construct the SwerveController object which is used for determining the speeds of the robot based on controller input.
- SwerveControllerConfiguration - Class in swervelib.parser
-
Swerve Controller configuration class which is used to configure
SwerveController. - SwerveControllerConfiguration(SwerveDriveConfiguration, PIDFConfig) - Constructor for class swervelib.parser.SwerveControllerConfiguration
-
Construct the swerve controller configuration.
- SwerveControllerConfiguration(SwerveDriveConfiguration, PIDFConfig, double) - Constructor for class swervelib.parser.SwerveControllerConfiguration
-
Construct the swerve controller configuration.
- SwerveDrive - Class in swervelib
-
Swerve Drive class representing and controlling the swerve drive.
- SwerveDrive(SwerveDriveConfiguration, SwerveControllerConfiguration) - Constructor for class swervelib.SwerveDrive
-
Creates a new swerve drivebase subsystem.
- swerveDriveConfiguration - Variable in class swervelib.SwerveDrive
-
Swerve drive configuration.
- SwerveDriveConfiguration - Class in swervelib.parser
-
Swerve drive configurations used during SwerveDrive construction.
- SwerveDriveConfiguration(SwerveModuleConfiguration[], SwerveIMU, double, boolean) - Constructor for class swervelib.parser.SwerveDriveConfiguration
-
Create swerve drive configuration.
- swerveDriveJson - Static variable in class swervelib.parser.SwerveParser
-
Parsed swervedrive.json
- SwerveDriveJson - Class in swervelib.parser.json
-
SwerveDriveJSON parsed class. - SwerveDriveJson() - Constructor for class swervelib.parser.json.SwerveDriveJson
- swerveDrivePoseEstimator - Variable in class swervelib.SwerveDrive
-
Swerve odometry.
- SwerveIMU - Class in swervelib.imu
-
Swerve IMU abstraction to define a standard interface with a swerve drive.
- SwerveIMU() - Constructor for class swervelib.imu.SwerveIMU
- SwerveIMUSimulation - Class in swervelib.simulation
-
Simulation for
SwerveDriveIMU. - SwerveIMUSimulation() - Constructor for class swervelib.simulation.SwerveIMUSimulation
-
Create the swerve drive IMU simulation.
- SwerveKinematics2 - Class in swervelib.math
-
Clone of WPI SwerveKinematics, which implements second order kinematics when calculating modules states from chassis speed.
- SwerveKinematics2(Translation2d...) - Constructor for class swervelib.math.SwerveKinematics2
-
Constructs a swerve drive kinematics object.
- swervelib - package swervelib
-
Yet-Another Generic Swerve Library (YAGSL) main package AKA swervelib.
- swervelib.encoders - package swervelib.encoders
-
Absolute encoders for the swerve drive, all implement
SwerveAbsoluteEncoder. - swervelib.imu - package swervelib.imu
-
IMUs used for controlling the robot heading.
- swervelib.math - package swervelib.math
-
Mathematics for swerve drives.
- swervelib.motors - package swervelib.motors
-
Swerve motor controller wrappers which implement
SwerveMotor. - swervelib.parser - package swervelib.parser
-
JSON Parser for YAGSL configurations.
- swervelib.parser.deserializer - package swervelib.parser.deserializer
-
Deserialize specific variables for outside the parser.
- swervelib.parser.json - package swervelib.parser.json
-
JSON Mapped classes for parsing configuration files.
- swervelib.parser.json.modules - package swervelib.parser.json.modules
-
JSON Mapped Configuration types for modules.
- swervelib.simulation - package swervelib.simulation
-
Classes used to simulate the swerve drive.
- swervelib.simulation.ctre - package swervelib.simulation.ctre
-
CTRE Physics Simulator.
- SwerveMath - Class in swervelib.math
-
Mathematical functions which pertain to swerve drive.
- SwerveMath() - Constructor for class swervelib.math.SwerveMath
- SwerveModule - Class in swervelib
-
The Swerve Module class which represents and controls Swerve Modules for the swerve drive.
- SwerveModule(int, SwerveModuleConfiguration) - Constructor for class swervelib.SwerveModule
-
Construct the swerve module and initialize the swerve module motors and absolute encoder.
- SwerveModuleConfiguration - Class in swervelib.parser
-
Swerve Module configuration class which is used to configure
SwerveModule. - SwerveModuleConfiguration(SwerveMotor, SwerveMotor, SwerveAbsoluteEncoder, double, double, double, PIDFConfig, PIDFConfig, double, SwerveModulePhysicalCharacteristics) - Constructor for class swervelib.parser.SwerveModuleConfiguration
-
Construct a configuration object for swerve modules.
- SwerveModuleConfiguration(SwerveMotor, SwerveMotor, SwerveAbsoluteEncoder, double, double, double, PIDFConfig, PIDFConfig, double, SwerveModulePhysicalCharacteristics, boolean, boolean, boolean) - Constructor for class swervelib.parser.SwerveModuleConfiguration
-
Construct a configuration object for swerve modules.
- SwerveModulePhysicalCharacteristics - Class in swervelib.parser
-
Configuration class which stores physical characteristics shared between every swerve module.
- SwerveModulePhysicalCharacteristics(double, double, double, double, double, double, int, int) - Constructor for class swervelib.parser.SwerveModulePhysicalCharacteristics
-
Construct the swerve module physical characteristics.
- SwerveModulePhysicalCharacteristics(double, double, double, double, double, double, int, int, double, double, int, int) - Constructor for class swervelib.parser.SwerveModulePhysicalCharacteristics
-
Construct the swerve module physical characteristics.
- swerveModules - Variable in class swervelib.SwerveDrive
-
Swerve modules.
- SwerveModuleSimulation - Class in swervelib.simulation
-
Class to hold simulation data for
SwerveModule - SwerveModuleSimulation() - Constructor for class swervelib.simulation.SwerveModuleSimulation
-
Create simulation class and initialize module at 0.
- SwerveModuleState2 - Class in swervelib.math
-
Second order kinematics swerve module state.
- SwerveModuleState2() - Constructor for class swervelib.math.SwerveModuleState2
-
Constructs a SwerveModuleState with zeros for speed and angle.
- SwerveModuleState2(double, Rotation2d, double) - Constructor for class swervelib.math.SwerveModuleState2
-
Constructs a SwerveModuleState.
- SwerveMotor - Class in swervelib.motors
-
Swerve motor abstraction which defines a standard interface for motors within a swerve module.
- SwerveMotor() - Constructor for class swervelib.motors.SwerveMotor
- SwerveParser - Class in swervelib.parser
-
Helper class used to parse the JSON directory with specified configuration options.
- SwerveParser(File) - Constructor for class swervelib.parser.SwerveParser
-
Construct a swerve parser.
- synchronizeEncoders() - Method in class swervelib.SwerveModule
-
Synchronize the integrated angle encoder with the absolute encoder.
- synchronizeModuleEncoders() - Method in class swervelib.SwerveDrive
-
Synchronize angle motor integrated encoders with data from absolute encoders.
All Classes and Interfaces|All Packages|Constant Field Values