Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(T) - Method in class com.marswars.data_structures.ConcurrentFifoQueue
- addCamera(String, Transform3d) - Method in class com.marswars.vision.MwVisionSim
-
Adds a simulated camera to the vision system.
- addCamera(String, SimCameraProperties, Transform3d, double) - Method in class com.marswars.vision.MwVisionSim
-
Adds a simulated camera with custom properties to the vision system.
- addDefaultCameras() - Method in class com.marswars.vision.MwVisionSim
-
Adds a default set of four cameras positioned around the robot.
- addFlywheelSpeedPoint(double, double) - Method in class com.marswars.geometry.LaunchCalculator
-
Adds a flywheel speed data point to the interpolation map
- addHoodAnglePoint(double, double) - Method in class com.marswars.geometry.LaunchCalculator
-
Adds a hood angle data point to the interpolation map
- addTimeOfFlightPoint(double, double) - Method in class com.marswars.geometry.LaunchCalculator
-
Adds a time of flight data point to the interpolation map
- addVelocityPoint(double, double) - Method in class com.marswars.geometry.LaunchTrajectory
-
Adds points to the linear interpolation table
- adjustCamera(MwVisionSim.CameraSimulation, Transform3d) - Method in class com.marswars.vision.MwVisionSim
-
Adjusts a camera's transform relative to the robot.
- ALL_MODULE_TYPES - Static variable in class com.marswars.swerve_lib.module.ModuleType
- allDetections - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
List of all piece detections in this packet
- AllianceFlipUtil - Class in com.marswars.geometry
-
Utility class for flipping geometric coordinates between alliance perspectives in FRC.
- AllianceFlipUtil() - Constructor for class com.marswars.geometry.AllianceFlipUtil
- AllianceFlipUtil.SymmetryType - Enum Class in com.marswars.geometry
-
Enumeration of field symmetry types for alliance coordinate transformation.
- ANALOG_ENCODER - Enum constant in enum class com.marswars.swerve_lib.module.SwerveModuleConfig.EncoderType
- appliedVoltage - Variable in class com.marswars.mechanisms.MechInputs
- apply(TalonFXConfiguration) - Method in class com.marswars.mechanisms.MotorConfig
-
Applies a TalonFXConfiguration to this motor config.
- apply(TalonFXSConfiguration) - Method in class com.marswars.mechanisms.MotorConfig
-
Applies a TalonFXSConfiguration to this motor config.
- apply(CircularRegion) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a circular region.
- apply(PolygonRegion) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a polygon region.
- apply(Region) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a region.
- apply(TightRope) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a tight rope path.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in interface com.marswars.swerve_lib.ChassisRequest
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.Idle
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Applies this swerve request to the given modules.
- apply(ChassisRequest.ChassisRequestParameters, Module...) - Method in class com.marswars.swerve_lib.ChassisRequest.SwerveDriveBrake
-
Applies this swerve request to the given modules.
- apply(Pose2d) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a 2D pose.
- apply(Pose3d) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a 3D pose.
- apply(Translation2d) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a 2D translation.
- apply(Translation3d) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Applies alliance flip transformation to a 3D translation.
- ApplyChassisSpeeds() - Constructor for class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
- ApplyFieldSpeeds() - Constructor for class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
- applyLoadTorque(double) - Method in class com.marswars.mechanisms.ArmMech
-
Applies an external load torque to the simulation model.
- applyLoadTorque(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Applies a load torque to the elevator mechanism for simulation purposes.
- applyLoadTorque(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Applies a load torque to the flywheel mechanism for simulation purposes.
- applyLoadTorque(double) - Method in class com.marswars.mechanisms.RollerMech
-
Applies a load torque to the roller mechanism for simulation purposes.
- ArmMech - Class in com.marswars.mechanisms
-
Mechanism implementation for a single-jointed arm with position, velocity, and duty control.
- ArmMech(String, String, List<MotorConfig>, double, double, double, double, double) - Constructor for class com.marswars.mechanisms.ArmMech
-
Constructs a new FxArmMech with a mechanism name and gravity compensation enabled by default
- ArmMech(String, String, List<MotorConfig>, double, double, double, double, double, boolean) - Constructor for class com.marswars.mechanisms.ArmMech
-
Constructs a new FxArmMech with a mechanism name and configurable gravity compensation
- ArmMech(String, List<MotorConfig>, double, double, double, double, double) - Constructor for class com.marswars.mechanisms.ArmMech
-
Constructs a new FxArmMech with gravity compensation enabled by default
- ArmMech(String, List<MotorConfig>, double, double, double, double, double, boolean) - Constructor for class com.marswars.mechanisms.ArmMech
-
Constructs a new FxArmMech with configurable gravity compensation
- ArmMech.ControlMode - Enum Class in com.marswars.mechanisms
-
Control modes for the arm mechanism
- Auto - Class in com.marswars.auto
-
Base class for autonomous routines that load Choreo trajectories and expose common path utilities.
- Auto() - Constructor for class com.marswars.auto.Auto
-
Creates a new autonomous routine container with a default name.
- AutoManager - Class in com.marswars.auto
-
Singleton manager for autonomous routine selection and visualization.
B
- BatteryLogger - Class in com.marswars.logging
- BatteryLogger() - Constructor for class com.marswars.logging.BatteryLogger
- BIDIRECTIONAL - Enum constant in enum class com.marswars.dashboard.DashboardChannel.Direction
- bidirectionalBool(String) - Static method in record class com.marswars.dashboard.DashboardChannel
- bidirectionalInt(String) - Static method in record class com.marswars.dashboard.DashboardChannel
- BL_MODULE_CONSTANTS - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
- BOOLEAN - Enum constant in enum class com.marswars.dashboard.DashboardChannel.Type
- BR_MODULE_CONSTANTS - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
- broadcastData(byte[]) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Broadcasts data to all currently connected clients.
- build() - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Builds the LaunchCalculator
- Builder() - Constructor for class com.marswars.geometry.LaunchCalculator.Builder
- burnRobotName() - Method in class com.marswars.util.ConstantsLoader
- busVoltage - Variable in class com.marswars.mechanisms.MechInputs
C
- cacheTrajetories(boolean) - Method in class com.marswars.auto.Auto
-
Loads all registered trajectories from Choreo and processes them for use in the auto.
- calculate(double) - Method in class com.marswars.util.DynamicSlewRateLimiter
-
Filters the input to limit its slew rate.
- calculateLaunchParameters(Pose2d, ChassisSpeeds, Pose2d) - Method in class com.marswars.geometry.LaunchCalculator
-
Calculates launch parameters with motion compensation
- calculateLaunchParameters(Pose2d, ChassisSpeeds, Translation2d) - Method in class com.marswars.geometry.LaunchCalculator
-
Calculates launch parameters with motion compensation
- CamConstants - Class in com.marswars.util
- CamConstants() - Constructor for class com.marswars.util.CamConstants
- camera - Variable in class com.marswars.vision.MwVisionSim.CameraSimulation
- camera_name - Variable in class com.marswars.util.CamConstants
- camera_transform - Variable in class com.marswars.util.CamConstants
- cameraSerial - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Camera serial number / identifier
- cameraSerial - Variable in class com.marswars.proxy_server.TagSolutionPacket.TagSolutionData
-
Camera serial number / identifier
- cameraSerials - Variable in class com.marswars.proxy_server.TagSolutionsInputs
-
Camera serial per solution
- cameraSim - Variable in class com.marswars.vision.MwVisionSim.CameraSimulation
- CameraSimulation(String, SimCameraProperties, Transform3d) - Constructor for class com.marswars.vision.MwVisionSim.CameraSimulation
-
Creates a new CameraSimulation with the specified parameters.
- CameraSimulation(String, SimCameraProperties, Transform3d, double) - Constructor for class com.marswars.vision.MwVisionSim.CameraSimulation
-
Creates a new CameraSimulation with the specified parameters and max sight range.
- can_id - Variable in class com.marswars.mechanisms.MotorConfig
- canbus_name - Variable in class com.marswars.mechanisms.MotorConfig
- cancoder - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- capacity() - Method in class com.marswars.data_structures.ConcurrentFifoQueue
- CenterOfRotation - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
The center of rotation to rotate around.
- CenterOfRotation - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
The center of rotation the robot should rotate around.
- CenterOfRotation - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The center of rotation the robot should rotate around.
- CenterOfRotation - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The center of rotation the robot should rotate around.
- CenterOfRotation - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The center of rotation the robot should rotate around.
- CenterOfRotation - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The center of rotation the robot should rotate around.
- ChassisRequest - Interface in com.marswars.swerve_lib
-
Container for all the Swerve Requests.
- ChassisRequest.ApplyChassisSpeeds - Class in com.marswars.swerve_lib
-
Accepts a generic ChassisSpeeds to apply to the drivetrain.
- ChassisRequest.ApplyFieldSpeeds - Class in com.marswars.swerve_lib
-
Accepts a generic Field Relative ChassisSpeeds to apply to the drivetrain.
- ChassisRequest.ChassisRequestParameters - Class in com.marswars.swerve_lib
-
Contains everything the control requests need to calculate the module state.
- ChassisRequest.FieldCentric - Class in com.marswars.swerve_lib
-
Drives the swerve drivetrain in a field-centric manner.
- ChassisRequest.FieldCentricFacingAngle - Class in com.marswars.swerve_lib
-
Drives the swerve drivetrain in a field-centric manner, maintaining a specified heading angle to ensure the robot is facing the desired direction
- ChassisRequest.Idle - Class in com.marswars.swerve_lib
-
Does nothing to the swerve module state.
- ChassisRequest.PointWheelsAt - Class in com.marswars.swerve_lib
-
Sets the swerve drive modules to point to a specified direction.
- ChassisRequest.RobotCentric - Class in com.marswars.swerve_lib
-
Drives the swerve drivetrain in a robot-centric manner.
- ChassisRequest.RobotCentricFacingAngle - Class in com.marswars.swerve_lib
-
Applies robot-relative chassis speeds while maintaining a field-centric facing angle.
- ChassisRequest.SwerveDriveBrake - Class in com.marswars.swerve_lib
-
Sets the swerve drive module states to point inward on the robot in an "X" fashion, creating a natural brake which will oppose any motion.
- ChassisRequest.XPositiveReference - Enum Class in com.marswars.swerve_lib
-
The reference for "forward" is sometimes different if you're talking about field relative.
- ChassisRequestParameters() - Constructor for class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
- ChoreoEventMarker - Class in com.marswars.auto
-
Wrapper class for tracking Choreo event markers with their passed state.
- ChoreoEventMarker(EventMarker) - Constructor for class com.marswars.auto.ChoreoEventMarker
-
Creates a new event marker tracker.
- ChoreoEventTracker - Class in com.marswars.auto
-
Tracks and manages Choreo trajectory event markers using a HashMap.
- ChoreoEventTracker(String, Supplier<Pose2d>) - Constructor for class com.marswars.auto.ChoreoEventTracker
-
Creates a new event tracker.
- ChoreoTrajectory - Class in com.marswars.auto
- ChoreoTrajectory(Trajectory<?>, boolean) - Constructor for class com.marswars.auto.ChoreoTrajectory
- CircularRegion - Class in com.marswars.geometry
-
This class models a region of the field.
- CircularRegion(Translation2d, double, String) - Constructor for class com.marswars.geometry.CircularRegion
-
Create a CircularRegion, defined by its center and radius.
- classId - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Classification ID of the detected piece
- clearCache() - Method in class com.marswars.geometry.LaunchCalculator
-
Clears the cached launch parameters, forcing recalculation on next call
- clientSendNanoseconds - Variable in class com.marswars.proxy_server.TimesyncRequest.TimesyncRequestData
-
Client timestamp when request was sent (nanoseconds)
- clientSendNanoseconds - Variable in class com.marswars.proxy_server.TimesyncResponse.TimesyncResponseData
-
Client timestamp when response was sent (nanoseconds)
- clientSendSeconds - Variable in class com.marswars.proxy_server.TimesyncRequest.TimesyncRequestData
-
Client timestamp when request was sent (seconds)
- clientSendSeconds - Variable in class com.marswars.proxy_server.TimesyncResponse.TimesyncResponseData
-
Client timestamp when response was sent (seconds)
- CLOSED_LOOP - Enum constant in enum class com.marswars.swerve_lib.module.Module.DriveControlMode
- CLOSED_LOOP - Enum constant in enum class com.marswars.swerve_lib.module.Module.SteerControlMode
- com.marswars.auto - package com.marswars.auto
- com.marswars.dashboard - package com.marswars.dashboard
- com.marswars.data_structures - package com.marswars.data_structures
- com.marswars.geometry - package com.marswars.geometry
- com.marswars.geometry.spline - package com.marswars.geometry.spline
- com.marswars.logging - package com.marswars.logging
- com.marswars.mechanisms - package com.marswars.mechanisms
- com.marswars.proxy_server - package com.marswars.proxy_server
- com.marswars.sensors.gyro - package com.marswars.sensors.gyro
- com.marswars.sensors.tof - package com.marswars.sensors.tof
- com.marswars.subsystem - package com.marswars.subsystem
- com.marswars.swerve_lib - package com.marswars.swerve_lib
- com.marswars.swerve_lib.module - package com.marswars.swerve_lib.module
- com.marswars.util - package com.marswars.util
- com.marswars.vision - package com.marswars.vision
- combinePath(String[], String...) - Static method in class com.marswars.util.ConstantsLoader
- ConcurrentFifoQueue<T> - Class in com.marswars.data_structures
- ConcurrentFifoQueue(int) - Constructor for class com.marswars.data_structures.ConcurrentFifoQueue
- Config(String, String, int, String) - Constructor for record class com.marswars.dashboard.DashboardBridge.Config
-
Creates an instance of a
Configrecord class. - config_ - Variable in class com.marswars.swerve_lib.module.Module
- configMotors(List<MotorConfig>, double) - Method in class com.marswars.mechanisms.MechBase
-
Configures the motors based on the given motor configs.
- configMotors(List<MotorConfig>, double, Function<MotorConfig, MotorConfig>) - Method in class com.marswars.mechanisms.MechBase
-
Configures the TalonFX motors based on the given motor configs
- configSlot(int, SlotConfigs) - Method in class com.marswars.mechanisms.ArmMech
-
Configures the given slot with the given config
- configSlot(int, SlotConfigs) - Method in class com.marswars.mechanisms.ElevatorMech
-
Configures the given slot with the given config
- configSlot(int, SlotConfigs) - Method in class com.marswars.mechanisms.FlywheelMech
-
Configures the given slot with the given config
- configSlot(int, SlotConfigs) - Method in class com.marswars.mechanisms.RollerMech
-
Configures the given slot with the given config
- configure(String, double) - Static method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Configures the PhoenixOdometryThread singleton.
- configureFieldGeometry(AllianceFlipUtil.SymmetryType, Translation2d) - Static method in class com.marswars.geometry.AllianceFlipUtil
-
Configures the field geometry for alliance coordinate transformations.
- configureServer() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Binds the server socket to the set port to begin communication.
- connected - Variable in class com.marswars.sensors.gyro.GyroInputs
- connectedDebounced - Variable in class com.marswars.sensors.gyro.GyroInputs
- ConstantParseError(String) - Constructor for exception com.marswars.util.JSONReader.ConstantParseError
- ConstantParseError(String, JsonLocation) - Constructor for exception com.marswars.util.JSONReader.ConstantParseError
- CONSTANTS - Variable in class com.marswars.subsystem.MwSubsystem
- CONSTANTS - Variable in class com.marswars.subsystem.SubsystemIO
- ConstantsLoader - Class in com.marswars.util
- ConstructedMotors() - Constructor for class com.marswars.mechanisms.MechBase.ConstructedMotors
- constructRegion() - Method in class com.marswars.geometry.CircularRegion
- constructRegion() - Method in class com.marswars.geometry.PolygonRegion
- constructRegion() - Method in class com.marswars.geometry.Region
-
Constructs the region and prepares it for logging.
- contains(Pose2d) - Method in class com.marswars.geometry.CircularRegion
-
Returns true if the region contains a given Pose2d.
- contains(Pose2d) - Method in class com.marswars.geometry.PolygonRegion
-
Returns true if the region contains a given Pose2d.
- contains(Pose2d) - Method in class com.marswars.geometry.Region
-
Returns true if the region contains a given Pose2d.
- create(String, PhoenixPIDController) - Static method in class com.marswars.util.TunablePid
-
Creates tunable PID parameters for a Phoenix PIDController (used in swerve).
- create(String, PIDController) - Static method in class com.marswars.util.TunablePid
-
Creates tunable PID parameters for a single WPILib PIDController.
- create(String, PIDController...) - Static method in class com.marswars.util.TunablePid
-
Creates tunable PID parameters for multiple synchronized WPILib PIDControllers.
- create(String, Consumer<SlotConfigs>, SlotConfigs) - Static method in class com.marswars.util.TunablePid
-
Creates tunable PID parameters for CTRE Phoenix 6 SlotConfigs.
- createDefaultCameraProperties() - Static method in class com.marswars.vision.MwVisionSim
-
Creates default camera properties typical for FRC vision systems.
- createResponse(TimesyncRequest.TimesyncRequestData) - Static method in class com.marswars.proxy_server.TimesyncResponse
-
Creates a timesync response for the given request with current server timestamps.
- CTRE_CAN_CODER - Enum constant in enum class com.marswars.swerve_lib.module.SwerveModuleConfig.EncoderType
- CURRENT - Enum constant in enum class com.marswars.mechanisms.ArmMech.ControlMode
- CURRENT - Enum constant in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
- CURRENT - Enum constant in enum class com.marswars.mechanisms.FlywheelMech.ControlMode
- CURRENT - Enum constant in enum class com.marswars.mechanisms.RollerMech.ControlMode
- current_target_ - Variable in class com.marswars.mechanisms.ArmMech
- current_target_ - Variable in class com.marswars.mechanisms.ElevatorMech
- current_target_ - Variable in class com.marswars.mechanisms.FlywheelMech
- current_target_ - Variable in class com.marswars.mechanisms.RollerMech
- current_target_FF_ - Variable in class com.marswars.mechanisms.ArmMech
- current_target_FF_ - Variable in class com.marswars.mechanisms.ElevatorMech
- current_target_FF_ - Variable in class com.marswars.mechanisms.FlywheelMech
- current_target_FF_ - Variable in class com.marswars.mechanisms.RollerMech
- currentChassisSpeed - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
- currentPose - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
D
- DashboardBridge - Class in com.marswars.dashboard
-
Bridges a browser-based interactive dashboard (served off the RoboRIO, driven by NT4 from the browser) to robot code over two NetworkTables tables: one the dashboard writes and the robot reads ("ToRobot"), one the robot writes and the dashboard reads ("ToDashboard").
- DashboardBridge(DashboardBridge.Config, DashboardChannel...) - Constructor for class com.marswars.dashboard.DashboardBridge
-
Convenience constructor bound to the default (real robot) NetworkTableInstance.
- DashboardBridge(NetworkTableInstance, DashboardBridge.Config, List<DashboardChannel>) - Constructor for class com.marswars.dashboard.DashboardBridge
-
Primary constructor.
- DashboardBridge.Config - Record Class in com.marswars.dashboard
- DashboardChannel - Record Class in com.marswars.dashboard
-
Describes one NetworkTables channel exposed by a
DashboardBridge: its wire name, primitive type, and whether the dashboard is allowed to write to it. - DashboardChannel(String, DashboardChannel.Type, DashboardChannel.Direction) - Constructor for record class com.marswars.dashboard.DashboardChannel
-
Creates an instance of a
DashboardChannelrecord class. - DashboardChannel.Direction - Enum Class in com.marswars.dashboard
- DashboardChannel.Type - Enum Class in com.marswars.dashboard
- date_format_ - Variable in class com.marswars.util.MWPreferences
- Deadband - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The allowable deadband of the request.
- Deadband - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The allowable deadband of the request.
- Deadband - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The allowable deadband of the request.
- Deadband - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The allowable deadband of the request.
- DEFAULT_SKID_DETECTION_RANGE - Static variable in class com.marswars.swerve_lib.SwerveDriveConfig
-
Default skid-detection threshold (max allowed spread of per-module velocities) used when a configuration does not specify one.
- deserialize(byte[]) - Static method in class com.marswars.proxy_server.TimesyncResponse
-
Deserializes a byte array into a TimesyncResponseData object.
- detectedIds - Variable in class com.marswars.proxy_server.TagSolutionPacket.TagSolutionData
-
List of detected AprilTag IDs used for pose estimation
- detectionCount - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Number of detections in this packet
- detectionIndex - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Index of this detection in the sequence
- DIAGONAL - Enum constant in enum class com.marswars.geometry.AllianceFlipUtil.SymmetryType
-
Diagonal symmetry - rotates coordinates 180 degrees around field center
- DIRECT - Enum constant in enum class com.marswars.geometry.AllianceFlipUtil.SymmetryType
-
Direct symmetry - mirrors coordinates horizontally across field center
- direction() - Method in record class com.marswars.dashboard.DashboardChannel
-
Returns the value of the
directionrecord component. - disabled_subsystems_ - Static variable in class com.marswars.subsystem.SubsystemManager
- distance - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Calculated distance to target with lookahead (meters)
- distance_no_lookahead - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Distance to target without motion compensation (meters)
- doControlLoop() - Method in class com.marswars.subsystem.SubsystemManager
-
Preform the control loop for all subsystems
- drive_applied_volts_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- drive_conn_deb_ - Variable in class com.marswars.swerve_lib.module.Module
- drive_disconnected_alert_ - Variable in class com.marswars.swerve_lib.module.Module
- drive_motor_config - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- drive_position_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- drive_stator_current_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- drive_supply_current_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- drive_talonfx_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- drive_velocity_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- driveAppliedVolts - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- drivePositionRad - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- driveRatio - Variable in class com.marswars.swerve_lib.module.ModuleType
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The type of control request to use for the drive motor.
- DriveRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.SwerveDriveBrake
-
The type of control request to use for the drive motor.
- driveStatorCurrentAmps - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- driveSupplyCurrentAmps - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- driveVelocityRadPerSec - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- DUTY_CYCLE - Enum constant in enum class com.marswars.mechanisms.ArmMech.ControlMode
- DUTY_CYCLE - Enum constant in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
- DUTY_CYCLE - Enum constant in enum class com.marswars.mechanisms.FlywheelMech.ControlMode
- DUTY_CYCLE - Enum constant in enum class com.marswars.mechanisms.RollerMech.ControlMode
- duty_cycle_request_ - Variable in class com.marswars.mechanisms.ElevatorMech
- duty_cycle_target_ - Variable in class com.marswars.mechanisms.ArmMech
- duty_cycle_target_ - Variable in class com.marswars.mechanisms.ElevatorMech
- duty_cycle_target_ - Variable in class com.marswars.mechanisms.FlywheelMech
- duty_cycle_target_ - Variable in class com.marswars.mechanisms.RollerMech
- DynamicSlewRateLimiter - Class in com.marswars.util
-
A slew rate limiter that allows the rate limit to be changed dynamically without losing state.
- DynamicSlewRateLimiter(double) - Constructor for class com.marswars.util.DynamicSlewRateLimiter
-
Creates a new DynamicSlewRateLimiter with the given rate limit.
- DynamicSlewRateLimiter(double, double) - Constructor for class com.marswars.util.DynamicSlewRateLimiter
-
Creates a new DynamicSlewRateLimiter with the given rate limit and initial value.
E
- Elastic - Class in com.marswars.dashboard
- Elastic() - Constructor for class com.marswars.dashboard.Elastic
- Elastic.Notification - Class in com.marswars.dashboard
-
Represents an notification object to be sent to the Elastic dashboard.
- Elastic.Notification.NotificationLevel - Enum Class in com.marswars.dashboard
-
Represents the possible levels of notifications for the Elastic dashboard.
- ElevatorMech - Class in com.marswars.mechanisms
-
Mechanism implementation for elevators with position, velocity, and duty cycle control.
- ElevatorMech(String, String, List<MotorConfig>, double, double, double, double, double) - Constructor for class com.marswars.mechanisms.ElevatorMech
-
Constructs a new ElevatorMech
- ElevatorMech(String, String, List<MotorConfig>, double, double, double, double, double, boolean) - Constructor for class com.marswars.mechanisms.ElevatorMech
-
Constructs a new ElevatorMech
- ElevatorMech(String, List<MotorConfig>, double, double, double, double) - Constructor for class com.marswars.mechanisms.ElevatorMech
-
Constructs a new ElevatorMech (assumes vertical elevator)
- ElevatorMech(String, List<MotorConfig>, double, double, double, double, double) - Constructor for class com.marswars.mechanisms.ElevatorMech
-
Constructs a new ElevatorMech
- ElevatorMech(String, List<MotorConfig>, double, double, double, double, double, boolean) - Constructor for class com.marswars.mechanisms.ElevatorMech
-
Constructs a new ElevatorMech
- ElevatorMech.ControlMode - Enum Class in com.marswars.mechanisms
-
Control modes for the elevator mechanism
- enable_foc - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- enableProcessedStream(boolean) - Method in class com.marswars.vision.MwVisionSim
-
Enables or disables the processed camera stream for all cameras.
- enableRawStream(boolean) - Method in class com.marswars.vision.MwVisionSim
-
Enables or disables the raw camera stream for all cameras.
- encoder - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- encoder_id - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- encoder_offset_rad - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- encoder_type - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- encoderAbsolutePosition - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- enqueueGyroSamples(double[], Rotation2d[]) - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Enqueues simulated gyro measurements (simulation only).
- enqueueModuleSamples(int, double[], Rotation2d[], double[]) - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Enqueues simulated module measurements (simulation only).
- equals(Object) - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.marswars.dashboard.DashboardChannel
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.marswars.proxy_server.Packet.Timestamp
- ERROR - Enum constant in enum class com.marswars.dashboard.Elastic.Notification.NotificationLevel
-
Error message
- exit_angle - Variable in class com.marswars.geometry.LaunchTrajectory.TrajectorySol
-
Exit angle in radians
F
- factory_ - Variable in class com.marswars.util.MWPreferences
- FALCON500 - Enum constant in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
- FieldCentric() - Constructor for class com.marswars.swerve_lib.ChassisRequest.FieldCentric
- FieldCentricFacingAngle() - Constructor for class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
- filtered_torque_current_ - Variable in class com.marswars.mechanisms.ArmMech
- filtered_torque_current_ - Variable in class com.marswars.mechanisms.ElevatorMech
- filtered_torque_current_ - Variable in class com.marswars.mechanisms.FlywheelMech
- filtered_torque_current_ - Variable in class com.marswars.mechanisms.RollerMech
- FL_MODULE_CONSTANTS - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
- flatten(Transform3d) - Static method in class com.marswars.util.NumUtil
- flywheel_sim_ - Variable in class com.marswars.mechanisms.FlywheelMech
- flywheel_speed - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Flywheel speed in rad/s
- FlywheelMech - Class in com.marswars.mechanisms
-
TalonFX-based mechanism implementation for flywheels with velocity and duty cycle control.
- FlywheelMech(String, String, List<MotorConfig>, double, double, double) - Constructor for class com.marswars.mechanisms.FlywheelMech
-
Constructs a new FxFlywheelMech
- FlywheelMech(String, List<MotorConfig>, double, double, double) - Constructor for class com.marswars.mechanisms.FlywheelMech
-
Constructs a new FxFlywheelMech
- FlywheelMech.ControlMode - Enum Class in com.marswars.mechanisms
-
Control modes for the flywheel mechanism
- FR_MODULE_CONSTANTS - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
G
- gear_ratio_ - Variable in class com.marswars.mechanisms.FlywheelMech
- GeomUtil - Class in com.marswars.util
-
Geometry utilities for working with translations, rotations, transforms, and poses.
- GeomUtil() - Constructor for class com.marswars.util.GeomUtil
- get(double) - Method in class com.marswars.data_structures.TunableDoubleMap
-
Gets an interpolated value from the map
- getAngle() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the current turn angle of the module.
- getAsFXConfig() - Method in class com.marswars.mechanisms.MotorConfig
-
Gets the config as TalonFXConfiguration.
- getAsFXSConfig() - Method in class com.marswars.mechanisms.MotorConfig
-
Gets the config as TalonFXSConfiguration.
- getBool(DashboardChannel) - Method in class com.marswars.dashboard.DashboardBridge
-
Last known value for this channel, whether or not it changed this tick.
- getBoolConstant(String...) - Method in class com.marswars.subsystem.MwConstants
-
Get a boolean constant from the configuration file
- getBoolIfChanged(DashboardChannel) - Method in class com.marswars.dashboard.DashboardBridge
-
Did the dashboard send a new value for this bidirectional boolean channel this tick?
- getBoolValue(String...) - Method in class com.marswars.util.ConstantsLoader
- getCameras() - Method in class com.marswars.vision.MwVisionSim
-
Gets all cameras in the simulation.
- getCameras(String...) - Method in class com.marswars.util.ConstantsLoader
- getCameraSerials() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets a list of all tracked camera serial numbers (both connected and disconnected).
- getCenter() - Method in class com.marswars.geometry.CircularRegion
-
Get the center of the circular region
- getChildList(String...) - Method in class com.marswars.util.ConstantsLoader
- getChildren(JsonNode) - Static method in class com.marswars.util.JSONReader
- getClientAddress() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the last client address that sent data to the server.
- getClientAddresses() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets a list of all tracked client addresses (both connected and disconnected).
- getConnectedCameraCount() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the number of currently connected cameras.
- getConnectedClientCount() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the number of currently connected clients.
- getCurrentChassisSpeeds() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the measured chassis speeds of the robot.
- getCurrentModuleStates() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the module states of the swerve drive.
- getCurrentPosition() - Method in class com.marswars.mechanisms.ArmMech
-
Returns the arm's current measured position.
- getCurrentPosition() - Method in class com.marswars.mechanisms.ElevatorMech
-
Gets the current position of the elevator in meters
- getCurrentPosition() - Method in class com.marswars.mechanisms.RollerMech
-
Gets the current position of the roller mechanism in radians
- getCurrentState() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the module state (turn angle and drive velocity).
- getCurrentVelocity() - Method in class com.marswars.mechanisms.ArmMech
-
Returns the arm's current measured velocity.
- getCurrentVelocity() - Method in class com.marswars.mechanisms.ElevatorMech
-
Gets the current velocity of the elevator in meters per second
- getCurrentVelocity() - Method in class com.marswars.mechanisms.FlywheelMech
- getCurrentVelocity() - Method in class com.marswars.mechanisms.RollerMech
-
Gets the current velocity of the roller mechanism in radians per second
- getDescription() - Method in class com.marswars.dashboard.Elastic.Notification
- getDifferentialTrajectory() - Method in class com.marswars.auto.ChoreoTrajectory
- getDisplayTimeMillis() - Method in class com.marswars.dashboard.Elastic.Notification
-
Gets the display time of the notification in milliseconds
- getDoubleConstant(String...) - Method in class com.marswars.subsystem.MwConstants
-
Get a double constant from the configuration file
- getDoubleValue(String...) - Method in class com.marswars.util.ConstantsLoader
- getEnabledSubsystems() - Static method in class com.marswars.subsystem.SubsystemManager
- getEvent() - Method in class com.marswars.auto.ChoreoEventMarker
-
Gets the underlying Choreo EventMarker.
- getEventPassedMap() - Method in class com.marswars.auto.ChoreoEventTracker
-
Gets a copy of the event passed map.
- getEventPose(String) - Method in class com.marswars.auto.ChoreoEventTracker
-
Gets the pose associated with an event (the pose at the event's timestamp).
- getEventPoseMap() - Method in class com.marswars.auto.ChoreoTrajectory
- getEventTimestamp(String) - Method in class com.marswars.auto.ChoreoEventTracker
-
Gets the timestamp of a specific event.
- getEventTimestampMap() - Method in class com.marswars.auto.ChoreoTrajectory
- getFFCharacterizationVelocity() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the module velocity in rotations/sec (Phoenix native units).
- getFieldLayout() - Method in class com.marswars.vision.MwVisionSim
-
Gets the AprilTag field layout being used.
- getFixedAngle() - Method in class com.marswars.geometry.LaunchTrajectory
-
Gets the fixed angle (only valid if isFixedAngle() returns true)
- getGyroRotation() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the gyro rotation as a Rotation3d containing pitch, yaw, and roll.
- getGyroYaw() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the raw gyro rotation used for odometry.
- getGyroYawRate() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the gyro yaw rate in radians per second.
- getHeight() - Method in class com.marswars.dashboard.Elastic.Notification
-
Gets the height of the notification
- getInstance() - Static method in class com.marswars.auto.AutoManager
-
Gets the singleton AutoManager instance.
- getInstance() - Static method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the singleton instance of the ProxyServerThread.
- getInstance() - Static method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Gets the configured PhoenixOdometryThread singleton.
- getInstance() - Static method in class com.marswars.util.ConstantsLoader
- getInstance() - Static method in class com.marswars.util.MWPreferences
- getInt(DashboardChannel) - Method in class com.marswars.dashboard.DashboardBridge
-
Last known value for this channel, whether or not it changed this tick.
- getIntConstant(String...) - Method in class com.marswars.subsystem.MwConstants
-
Get an integer constant from the configuration file
- getIntIfChanged(DashboardChannel) - Method in class com.marswars.dashboard.DashboardBridge
-
Did the dashboard send a new value for this bidirectional int channel this tick?
- getIntValue(String...) - Method in class com.marswars.util.ConstantsLoader
- getIos() - Method in interface com.marswars.subsystem.MwSubsystemBase
- getKinematics() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the swerve drive kinematics instance
- getLatestModuleStatesArrays() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the current robot module states as individual SwerveModuleState arrays.
- getLatestModuleStatesReadings() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the current robot module states information.
- getLatestOdometryReadings() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the current robot pose, velocity, and variance data from odometry readings.
- getLatestParameters() - Method in class com.marswars.geometry.LaunchCalculator
-
Gets the most recently calculated launch parameters (cached)
- getLatestPieceDetections() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the current detected game pieces information.
- getLatestTagSolutions() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the current AprilTag solution information.
- getLeaderStatorCurrent() - Method in class com.marswars.mechanisms.ArmMech
-
Returns the stator (motor-winding) current draw of the leader motor.
- getLeaderStatorCurrent() - Method in class com.marswars.mechanisms.ElevatorMech
-
Gets the stator (motor-winding) current draw of the leader motor in amps.
- getLeaderStatorCurrent() - Method in class com.marswars.mechanisms.FlywheelMech
-
Gets the stator (motor-winding) current draw of the leader motor in amps.
- getLeaderStatorCurrent() - Method in class com.marswars.mechanisms.RollerMech
-
Gets the stator (motor-winding) current draw of the leader motor in amps.
- getLeaderSupplyCurrent() - Method in class com.marswars.mechanisms.ArmMech
-
Returns the supply (battery-side) current draw of the leader motor.
- getLeaderSupplyCurrent() - Method in class com.marswars.mechanisms.ElevatorMech
-
Gets the supply (battery-side) current draw of the leader motor in amps.
- getLeaderSupplyCurrent() - Method in class com.marswars.mechanisms.FlywheelMech
-
Gets the supply (battery-side) current draw of the leader motor in amps.
- getLeaderSupplyCurrent() - Method in class com.marswars.mechanisms.RollerMech
-
Gets the supply (battery-side) current draw of the leader motor in amps.
- getLevel() - Method in class com.marswars.dashboard.Elastic.Notification
- getLoggingKey() - Method in class com.marswars.mechanisms.MechBase
-
Get the logging key for this mechanism.
- getLoggingKey() - Method in class com.marswars.sensors.gyro.Gyro
-
Get the logging key for this mechanism
- getLoggingKey() - Method in class com.marswars.sensors.tof.Tof
-
Get the logging key for this mechanism
- getMaxTimeOfFlight() - Method in class com.marswars.geometry.LaunchCalculator
-
Gets the maximum time of flight from the map
- getMechName() - Method in class com.marswars.mechanisms.MechBase
-
Get the name of the mechanism.
- getMinTimeOfFlight() - Method in class com.marswars.geometry.LaunchCalculator
-
Gets the minimum time of flight from the map
- getModulePositions() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the module positions of the swerve drive.
- getModules() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the array of swerve modules in order (FL, FR, BL, BR).
- getModuleType(String) - Static method in class com.marswars.swerve_lib.module.ModuleType
-
Gets a module type by name, falling back to MK4I-L3 if missing.
- getModuleTypeFromJSON(String) - Static method in class com.marswars.swerve_lib.module.ModuleType
-
Loads module type information from JSON constants for a given module position.
- getNaiveTimeOfFlight(double) - Method in class com.marswars.geometry.LaunchCalculator
-
Gets a naive (non-interpolated) time of flight estimate
- getName() - Method in class com.marswars.auto.ChoreoEventMarker
-
Gets the name of this event.
- getName() - Method in class com.marswars.geometry.CircularRegion
- getName() - Method in class com.marswars.geometry.PolygonRegion
- getName() - Method in class com.marswars.geometry.Region
-
Returns the name of the region for logging purposes.
- getName() - Method in class com.marswars.geometry.TightRope
-
Get the name of the tightrope
- getName() - Method in class com.marswars.subsystem.MwSubsystem
-
Gets the name of the subsystem used to enable and disable.
- getName() - Method in interface com.marswars.subsystem.MwSubsystemBase
-
Returns the name of the subsystem
- getNtKey() - Method in class com.marswars.subsystem.MwSubsystem
-
a common NT key to use for the subsystem
- getP0() - Method in class com.marswars.geometry.spline.Spline
- getP1() - Method in class com.marswars.geometry.spline.Spline
- getP2() - Method in class com.marswars.geometry.spline.Spline
- getP3() - Method in class com.marswars.geometry.spline.Spline
- getPath() - Method in class com.marswars.auto.Auto
-
Get the full path as an array of Pose2d
- getPitchPosition() - Method in class com.marswars.sensors.gyro.Gyro
- getPoints() - Method in class com.marswars.geometry.PolygonRegion
-
Get the points that define the polygon region
- getPoses() - Method in class com.marswars.auto.ChoreoTrajectory
-
Poses of every sample (already alliance-flipped), for either sample type.
- getPoseTrigger(String, double, double) - Method in class com.marswars.auto.ChoreoEventTracker
-
Gets a trigger for the specified event that checks if the robot is at the event's pose.
- getPosition() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the module position (turn angle and drive position).
- getPositionMeters() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the current drive position of the module in meters.
- getPreferenceDouble(String, double) - Method in class com.marswars.util.MWPreferences
- getPreferenceInt(String, int) - Method in class com.marswars.util.MWPreferences
- getPreferenceString(String, String) - Method in class com.marswars.util.MWPreferences
- getRadius() - Method in class com.marswars.geometry.CircularRegion
-
Get the radius of the circular region
- getRange() - Method in class com.marswars.sensors.tof.Tof
-
Get the measured range in meters
- getRateLimit() - Method in class com.marswars.util.DynamicSlewRateLimiter
-
Gets the current rate limit.
- getRobotName() - Method in class com.marswars.util.ConstantsLoader
- getRollPosition() - Method in class com.marswars.sensors.gyro.Gyro
- getSeconds() - Method in class com.marswars.proxy_server.Packet.Timestamp
-
Gets the timestamp as a single double value in seconds.
- getSelectedAuto() - Method in class com.marswars.auto.AutoManager
-
Get the selected auto routine
- getSetpointChassisSpeeds() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the setpoint chassis speeds of the robot.
- getSetpointModuleStates() - Method in class com.marswars.swerve_lib.SwerveMech
-
Returns the setpoint module states of the swerve drive.
- getSetpointState() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the module setpoint state (turn angle and drive velocity).
- getSimulationOdometryTimeStamps() - Static method in class com.marswars.util.PhoenixUtil
-
Gets an array of timestamps for simulation odometry updates.
- getSolution(Pose2d) - Method in class com.marswars.geometry.LaunchTrajectory
-
Gives a valid shooter trajectory for a given robot position
- getStartPose() - Method in class com.marswars.auto.Auto
-
Gets the starting pose for the first loaded trajectory.
- getStationaryAimedPose(Translation2d, Translation2d) - Method in class com.marswars.geometry.LaunchCalculator
-
Calculates the aimed robot pose for stationary shooting
- getStringConstant(String...) - Method in class com.marswars.subsystem.MwConstants
-
Get a string constant from the configuration file
- getStringList(String...) - Method in class com.marswars.util.ConstantsLoader
- getStringValue(String...) - Method in class com.marswars.util.ConstantsLoader
- getSubsystemKey() - Method in class com.marswars.subsystem.MwSubsystem
-
a common logging key to use for the subsystem
- getSubsystemKey() - Method in interface com.marswars.subsystem.MwSubsystemBase
-
Returns the unique key for this subsystem for logging purposes
- getSubsystemKey() - Method in class com.marswars.subsystem.SubsystemIO
-
a common logging key to use for the subsystem
- getSwerveSamples() - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Drains the measurement queues and returns synchronized swerve samples.
- getSystemName() - Method in class com.marswars.subsystem.MwConstants
- getSystemState() - Method in class com.marswars.subsystem.MwSubsystem
-
Gets the current state of the state machine
- getTagLayoutFromPath(String) - Static method in class com.marswars.util.TagLayouts
- getTagSolutions(Pose2d) - Method in class com.marswars.vision.MwVisionSim
-
Extracts vision data from all cameras and converts to TagSolutionData format.
- getTimeSinceLastCameraPacket(String) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the time elapsed since the last packet was received from a specific camera.
- getTimeSinceLastPacket() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Gets the time elapsed since the last packet was received from any client.
- getTimestamp() - Method in class com.marswars.auto.ChoreoEventMarker
-
Gets the timestamp when this event should trigger.
- getTimeTrigger(String) - Method in class com.marswars.auto.ChoreoEventTracker
-
Gets a trigger for the specified event.
- getTitle() - Method in class com.marswars.dashboard.Elastic.Notification
-
Gets the title of this notification
- getTrajectory() - Method in class com.marswars.auto.ChoreoTrajectory
- getTrajectory(String) - Method in class com.marswars.auto.Auto
-
Get a loaded trajectory by name.
- getTrajectoryVisualization(LaunchTrajectory.TrajectorySol, Pose2d) - Method in class com.marswars.geometry.LaunchTrajectory
-
Generates a trajectory visualization with default parameters
- getTrajectoryVisualization(LaunchTrajectory.TrajectorySol, Pose2d, int) - Method in class com.marswars.geometry.LaunchTrajectory
-
Generates a trajectory visualization as an array of Translation3d points
- getTranslation() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the translation of the module in the robot's coordinate system.
- getVelocityMetersPerSec() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the current drive velocity of the module in meters per second.
- getVisionSim() - Method in class com.marswars.vision.MwVisionSim
-
Gets the vision system simulator.
- getWheelRadiusCharacterizationPosition() - Method in class com.marswars.swerve_lib.module.Module
-
Returns the module position in radians.
- getWidth() - Method in class com.marswars.dashboard.Elastic.Notification
-
Gets the width of the notification
- getYawPosition() - Method in class com.marswars.sensors.gyro.Gyro
- getYawVelocityRadPerSec() - Method in class com.marswars.sensors.gyro.Gyro
- GrappleTof - Class in com.marswars.sensors.tof
- GrappleTof(String, int, Tof.RangeMode, double) - Constructor for class com.marswars.sensors.tof.GrappleTof
-
Creates a Grapple Robotics Time-of-Flight sensor interface
- Gyro - Class in com.marswars.sensors.gyro
- Gyro(String) - Constructor for class com.marswars.sensors.gyro.Gyro
- gyro_yaw - Variable in class com.marswars.swerve_lib.SwerveMeasurements.GyroMeasurement
- gyro_yaw - Variable in class com.marswars.swerve_lib.SwerveMeasurements.SwerveMeasurement
- GyroInputs - Class in com.marswars.sensors.gyro
- GyroInputs() - Constructor for class com.marswars.sensors.gyro.GyroInputs
- GyroMeasurement() - Constructor for class com.marswars.swerve_lib.SwerveMeasurements.GyroMeasurement
- gyroYawsRad - Variable in class com.marswars.swerve_lib.SwerveSamplesInputs
-
Gyro yaw for each sample (radians)
H
- handleStateTransition(StateType) - Method in class com.marswars.subsystem.MwSubsystem
- hasBeenPassed() - Method in class com.marswars.auto.ChoreoEventMarker
-
Checks if this event has already been passed.
- hasClientConnection() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Checks if the server has any active client connections.
- hasEventBeenPassed(String) - Method in class com.marswars.auto.ChoreoEventTracker
-
Checks if a specific event has been passed.
- hashCode() - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.marswars.dashboard.DashboardChannel
-
Returns a hash code value for this object.
- hashCode() - Method in class com.marswars.proxy_server.Packet.Timestamp
- hasPreference(String) - Method in class com.marswars.util.MWPreferences
- HEADER_SIZE - Static variable in interface com.marswars.proxy_server.Packet
-
Total size of the common packet header (type + timestamp)
- heading_angle - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Target heading angle to face the goal
- heading_angle - Variable in class com.marswars.geometry.LaunchTrajectory.TrajectorySol
-
Heading angle in radians
- heading_velocity - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Angular velocity for the heading mechanism (rad/s)
- HeadingController - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The PID controller used to maintain the desired heading.
- HeadingController - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The PID controller used to maintain the desired heading.
- HeadingFeedforward - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Feedforward rotational velocity in rad/s to add to the PID output.
- HeadingFeedforward - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Feedforward rotational velocity in rad/s to add to the PID output.
- hood_angle - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Hood angle in radians
- hood_velocity - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Hood angular velocity (rad/s) for feedforward
I
- id - Variable in class com.marswars.util.PhoenixUtil.TalonFXMotorControllerSim
- ID_IDX - Static variable in interface com.marswars.proxy_server.Packet
-
Deprecated.
- Idle() - Constructor for class com.marswars.swerve_lib.ChassisRequest.Idle
- INFO - Enum constant in enum class com.marswars.dashboard.Elastic.Notification.NotificationLevel
-
Informational Message
- init(Object) - Static method in class com.marswars.logging.MwLog
-
Idempotent.
- initializeVisionSimulation(AprilTagFieldLayout) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Initializes vision simulation for generating simulated vision data.
- inputs_ - Variable in class com.marswars.mechanisms.ArmMech
- inputs_ - Variable in class com.marswars.mechanisms.ElevatorMech
- inputs_ - Variable in class com.marswars.mechanisms.FlywheelMech
- inputs_ - Variable in class com.marswars.mechanisms.RollerMech
- inputs_ - Variable in class com.marswars.sensors.gyro.Gyro
- inputs_ - Variable in class com.marswars.sensors.tof.Tof
- inputs_ - Variable in class com.marswars.swerve_lib.module.Module
- INTEGER - Enum constant in enum class com.marswars.dashboard.DashboardChannel.Type
- invalid() - Static method in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Creates an invalid parameter set (for when target is out of range)
- inverse(Pose2d) - Static method in class com.marswars.util.GeomUtil
- IS_SIM - Variable in class com.marswars.mechanisms.MechBase
- IS_SIM - Variable in class com.marswars.sensors.gyro.Gyro
- IS_SIM - Variable in class com.marswars.sensors.tof.Tof
- is_valid - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Whether the calculated parameters are valid (within min/max range)
- isCameraConnected(String) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Checks if a specific camera is currently connected.
- isConnected() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Checks if the proxy server currently has an active connection to any client.
- isConnected() - Method in class com.marswars.sensors.gyro.Gyro
- isEmpty() - Method in class com.marswars.data_structures.ConcurrentFifoQueue
- isFixedAngle() - Method in class com.marswars.geometry.LaunchTrajectory
-
Checks if this trajectory uses a fixed angle shooter
- isFull() - Method in class com.marswars.data_structures.ConcurrentFifoQueue
- isFXS() - Method in class com.marswars.mechanisms.MotorConfig
-
Returns true if this motor uses TalonFXS configuration (MINION, NEO_550)
- isMoreRecentThan(Packet.Timestamp) - Method in class com.marswars.proxy_server.Packet.Timestamp
-
Determines if this timestamp is more recent than the provided timestamp.
- isNear(Pose2d, Pose2d, double, double) - Static method in class com.marswars.util.NumUtil
- isNear(Rotation2d, Rotation2d, double) - Static method in class com.marswars.util.NumUtil
- isNear(Translation2d, Translation2d, double) - Static method in class com.marswars.util.NumUtil
- isNear(ChassisSpeeds, ChassisSpeeds, double) - Static method in class com.marswars.util.NumUtil
- isReplay() - Static method in class com.marswars.logging.MwLog
-
True when running a log replay (AKIT_LOG_PATH env var is set).
- isSkidding() - Method in class com.marswars.swerve_lib.SwerveMech
-
Detects wheel skid by comparing the per-module translational velocities after the shared rotational component is removed.
J
- JSONReader - Class in com.marswars.util
- JSONReader() - Constructor for class com.marswars.util.JSONReader
- JSONReader.ConstantParseError - Exception in com.marswars.util
K
- kinematics - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
L
- LaunchCalculator - Class in com.marswars.geometry
-
LaunchCalculator - Map-based trajectory calculator for shooting
- LaunchCalculator(String, Transform2d) - Constructor for class com.marswars.geometry.LaunchCalculator
-
Creates a new LaunchCalculator
- LaunchCalculator(String, Transform2d, double) - Constructor for class com.marswars.geometry.LaunchCalculator
-
Creates a new LaunchCalculator with custom loop period
- LaunchCalculator.Builder - Class in com.marswars.geometry
-
Builder class for convenient configuration of LaunchCalculator
- LaunchCalculator.LaunchParameters - Class in com.marswars.geometry
-
Container for calculated launch parameters
- LaunchParameters(boolean, Rotation2d, double, double, double, double, double, double, double) - Constructor for class com.marswars.geometry.LaunchCalculator.LaunchParameters
- LaunchTrajectory - Class in com.marswars.geometry
- LaunchTrajectory(String, Translation3d, double, boolean) - Constructor for class com.marswars.geometry.LaunchTrajectory
-
Constructor for LaunchTrajectory with variable angle
- LaunchTrajectory(String, Translation3d, double, double) - Constructor for class com.marswars.geometry.LaunchTrajectory
-
Constructor for LaunchTrajectory with fixed angle shooter
- LaunchTrajectory.TrajectorySol - Class in com.marswars.geometry
-
Class representing a solution for the trajectory
- loader - Variable in class com.marswars.mechanisms.MotorConfig
- LOADER - Variable in class com.marswars.subsystem.MwConstants
- loadFromConfig(String...) - Method in class com.marswars.mechanisms.MotorConfig
- loadJson(String) - Method in class com.marswars.util.JSONReader
- loadJson(Path) - Method in class com.marswars.util.JSONReader
-
Loads JSON content from a specific file into a JSON tree for parsing
- loadTrajectory(String) - Method in class com.marswars.auto.Auto
-
Registers a trajectory to be part of the auto.
- location_x - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- location_y - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- log(String, boolean) - Static method in class com.marswars.logging.MwLog
- log(String, double) - Static method in class com.marswars.logging.MwLog
- log(String, double[]) - Static method in class com.marswars.logging.MwLog
- log(String, double[], Unit) - Static method in class com.marswars.logging.MwLog
- log(String, double, Unit) - Static method in class com.marswars.logging.MwLog
- log(String, long) - Static method in class com.marswars.logging.MwLog
- log(String, E) - Static method in class com.marswars.logging.MwLog
- log(String, String) - Static method in class com.marswars.logging.MwLog
- log(String, String[]) - Static method in class com.marswars.logging.MwLog
- log(String, T) - Static method in class com.marswars.logging.MwLog
-
Logs any single WPI struct (Pose2d, Pose3d, ChassisSpeeds, Rotation2d, …).
- log(String, T[]) - Static method in class com.marswars.logging.MwLog
-
Logs any WPI struct array (SwerveModuleState[], SwerveModulePosition[], Pose2d[], …).
- log_init - Variable in class com.marswars.subsystem.SubsystemManager
- logBatteryData() - Static method in class com.marswars.logging.BatteryLogger
- logData() - Method in class com.marswars.mechanisms.ArmMech
-
Log data to NetworkTables or other logging systems
- logData() - Method in class com.marswars.mechanisms.ElevatorMech
-
Log data to NetworkTables or other logging systems
- logData() - Method in class com.marswars.mechanisms.FlywheelMech
-
Log data to NetworkTables or other logging systems
- logData() - Method in class com.marswars.mechanisms.RollerMech
-
Log data to NetworkTables or other logging systems
- logData() - Method in class com.marswars.sensors.gyro.Gyro
- logData() - Method in class com.marswars.sensors.tof.Tof
- logData() - Method in interface com.marswars.subsystem.SubsystemIoBase
-
Log data to NetworkTables or other logging systems
- logData() - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Log data to NetworkTables or other logging systems
- logData() - Method in class com.marswars.swerve_lib.SwerveMech
-
Log data to NetworkTables or other logging systems
- logPoints() - Method in class com.marswars.geometry.CircularRegion
-
Log the circumference of the circle in 360 points.
- logPoints() - Method in class com.marswars.geometry.PolygonRegion
-
Log the bounding points of the region.
- logPoints() - Method in class com.marswars.geometry.Region
-
Log the points of the region.
- logPoints() - Method in class com.marswars.geometry.TightRope
-
Log the two endpoints of the tightrope.
- LONG - Enum constant in enum class com.marswars.sensors.tof.Tof.RangeMode
- loopThread - Variable in class com.marswars.subsystem.SubsystemManager
M
- m_lastAppliedState - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The last applied state in case we don't have anything to drive.
- mapper_ - Variable in class com.marswars.util.JSONReader
- markPassed() - Method in class com.marswars.auto.ChoreoEventMarker
-
Marks this event as passed.
- MaxAbsRotationalRate - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The maximum absolute rotational rate of the request.
- MaxAbsRotationalRate - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The maximum absolute rotational rate of the request.
- MechBase - Class in com.marswars.mechanisms
-
Base class for mechanism IO implementations with common motor configuration helpers.
- MechBase(String) - Constructor for class com.marswars.mechanisms.MechBase
-
Creates a new mechanism base
- MechBase(String, String) - Constructor for class com.marswars.mechanisms.MechBase
-
Creates a new mechanism base with a specified mechanism name
- MechBase.ConstructedMotors - Class in com.marswars.mechanisms
-
Container for constructed motor controllers and their status signals.
- MechInputs - Class in com.marswars.mechanisms
-
AdvantageKit inputs struct for all TalonFX-based mechanisms (RollerMech, FlywheelMech, ArmMech, ElevatorMech).
- MechInputs() - Constructor for class com.marswars.mechanisms.MechInputs
- MEDIUM - Enum constant in enum class com.marswars.sensors.tof.Tof.RangeMode
- MINION - Enum constant in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
- Module - Class in com.marswars.swerve_lib.module
-
Base class for swerve modules with drive and steer control.
- Module(String, int, SwerveModuleConfig) - Constructor for class com.marswars.swerve_lib.module.Module
- module_encoder_alert_ - Variable in class com.marswars.swerve_lib.module.Module
- module_index_ - Variable in class com.marswars.swerve_lib.module.Module
- module_positions - Variable in class com.marswars.swerve_lib.SwerveMeasurements.ModuleMeasurement
- module_positions - Variable in class com.marswars.swerve_lib.SwerveMeasurements.SwerveMeasurement
- module_type - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- Module.DriveControlMode - Enum Class in com.marswars.swerve_lib.module
-
Drive motor control mode selection.
- Module.SteerControlMode - Enum Class in com.marswars.swerve_lib.module
-
Steer motor control mode selection.
- ModuleDirection - Variable in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
The direction to point the modules toward.
- moduleDistancesMeters - Variable in class com.marswars.swerve_lib.SwerveSamplesInputs
-
Module distances, flattened: index = sampleIndex * 4 + moduleIndex (meters)
- ModuleInputs - Class in com.marswars.swerve_lib.module
- ModuleInputs() - Constructor for class com.marswars.swerve_lib.module.ModuleInputs
- moduleLocations - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
- ModuleMeasurement() - Constructor for class com.marswars.swerve_lib.SwerveMeasurements.ModuleMeasurement
- moduleStates - Variable in class com.marswars.proxy_server.StatesPacket.ModuleStatesData
-
Array of swerve module states (4 modules)
- ModuleStatesData(SwerveModuleState[], Packet.Timestamp) - Constructor for class com.marswars.proxy_server.StatesPacket.ModuleStatesData
- moduleSteerAnglesRad - Variable in class com.marswars.swerve_lib.SwerveSamplesInputs
-
Module steer angles, flattened: index = sampleIndex * 4 + moduleIndex (radians)
- ModuleTalonFX - Class in com.marswars.swerve_lib.module
-
TalonFX-based swerve module implementation with optional simulation support.
- ModuleTalonFX(String, int, SwerveModuleConfig) - Constructor for class com.marswars.swerve_lib.module.ModuleTalonFX
-
Creates a new TalonFX swerve module.
- ModuleType - Class in com.marswars.swerve_lib.module
-
Known swerve module gear ratio presets with metadata used for configuration.
- motion_magic_position_request_ - Variable in class com.marswars.mechanisms.ArmMech
- motion_magic_position_request_ - Variable in class com.marswars.mechanisms.ElevatorMech
- motion_magic_position_request_ - Variable in class com.marswars.mechanisms.RollerMech
- motion_magic_velocity_request_ - Variable in class com.marswars.mechanisms.FlywheelMech
- motion_magic_velocity_request_ - Variable in class com.marswars.mechanisms.RollerMech
- MOTION_PROFILE_POSITION - Enum constant in enum class com.marswars.mechanisms.ArmMech.ControlMode
- MOTION_PROFILE_POSITION - Enum constant in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
- MOTION_PROFILE_POSITION - Enum constant in enum class com.marswars.mechanisms.RollerMech.ControlMode
- MOTION_PROFILE_VELOCITY - Enum constant in enum class com.marswars.mechanisms.FlywheelMech.ControlMode
- MOTION_PROFILE_VELOCITY - Enum constant in enum class com.marswars.mechanisms.RollerMech.ControlMode
- motor_conn_debouncers_ - Variable in class com.marswars.mechanisms.ArmMech
- motor_conn_debouncers_ - Variable in class com.marswars.mechanisms.ElevatorMech
- motor_conn_debouncers_ - Variable in class com.marswars.mechanisms.FlywheelMech
- motor_conn_debouncers_ - Variable in class com.marswars.mechanisms.RollerMech
- motor_disconnected_alerts_ - Variable in class com.marswars.mechanisms.ArmMech
- motor_disconnected_alerts_ - Variable in class com.marswars.mechanisms.ElevatorMech
- motor_disconnected_alerts_ - Variable in class com.marswars.mechanisms.FlywheelMech
- motor_disconnected_alerts_ - Variable in class com.marswars.mechanisms.RollerMech
- motor_temp_alerts_ - Variable in class com.marswars.mechanisms.ArmMech
- motor_temp_alerts_ - Variable in class com.marswars.mechanisms.ElevatorMech
- motor_temp_alerts_ - Variable in class com.marswars.mechanisms.FlywheelMech
- motor_temp_alerts_ - Variable in class com.marswars.mechanisms.RollerMech
- motor_type - Variable in class com.marswars.mechanisms.MotorConfig
- MotorConfig - Class in com.marswars.mechanisms
- MotorConfig() - Constructor for class com.marswars.mechanisms.MotorConfig
- MotorConfig(MotorConfig) - Constructor for class com.marswars.mechanisms.MotorConfig
- MotorConfig.TalonMotorType - Enum Class in com.marswars.mechanisms
- motors - Variable in class com.marswars.mechanisms.MechBase.ConstructedMotors
- motors_ - Variable in class com.marswars.mechanisms.ElevatorMech
- motorTempC - Variable in class com.marswars.mechanisms.MechInputs
- multiply(Twist2d, double) - Static method in class com.marswars.util.GeomUtil
-
Multiplies a twist by a scaling factor
- MwConstants - Class in com.marswars.subsystem
- MwConstants() - Constructor for class com.marswars.subsystem.MwConstants
- MwLog - Class in com.marswars.logging
-
Logging facade for MW-Lib.
- MWPreferences - Class in com.marswars.util
- MWPreferences() - Constructor for class com.marswars.util.MWPreferences
- MwSubsystem<StateType extends Enum<StateType>,
ConstantsType extends MwConstants> - Class in com.marswars.subsystem - MwSubsystem(StateType, ConstantsType) - Constructor for class com.marswars.subsystem.MwSubsystem
- MwSubsystemBase - Interface in com.marswars.subsystem
- MwVisionSim - Class in com.marswars.vision
-
Handles PhotonVision simulation for generating vision data in simulation mode.
- MwVisionSim(AprilTagFieldLayout) - Constructor for class com.marswars.vision.MwVisionSim
-
Creates a new VisionSimulation with the specified field layout.
- MwVisionSim(AprilTagFields) - Constructor for class com.marswars.vision.MwVisionSim
-
Creates a new VisionSimulation with a predefined field layout.
- MwVisionSim.CameraSimulation - Class in com.marswars.vision
-
Represents a single simulated camera with its properties and transform.
N
- name - Variable in class com.marswars.swerve_lib.module.ModuleType
- name() - Method in record class com.marswars.dashboard.DashboardChannel
-
Returns the value of the
namerecord component. - nanoseconds - Variable in class com.marswars.proxy_server.Packet.Timestamp
- NEO_550 - Enum constant in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
- neutral_mode_ - Variable in class com.marswars.swerve_lib.module.Module
- Notification() - Constructor for class com.marswars.dashboard.Elastic.Notification
-
Creates a new Notification with all default parameters.
- Notification(Elastic.Notification.NotificationLevel, String, String) - Constructor for class com.marswars.dashboard.Elastic.Notification
-
Creates a new Notification with default display time and dimensions.
- Notification(Elastic.Notification.NotificationLevel, String, String, double, double) - Constructor for class com.marswars.dashboard.Elastic.Notification
-
Creates a new Notification with specified dimensions and default display time.
- Notification(Elastic.Notification.NotificationLevel, String, String, int) - Constructor for class com.marswars.dashboard.Elastic.Notification
-
Creates a new Notification with a specified display time and default dimensions.
- Notification(Elastic.Notification.NotificationLevel, String, String, int, double, double) - Constructor for class com.marswars.dashboard.Elastic.Notification
-
Creates a new Notification with all properties specified.
- NumUtil - Class in com.marswars.util
- NumUtil() - Constructor for class com.marswars.util.NumUtil
O
- OdometryData(Pose2d, Twist2d, double[], Packet.Timestamp) - Constructor for class com.marswars.proxy_server.OdomPacket.OdometryData
- OdomPacket - Class in com.marswars.proxy_server
-
Packet handler for robot odometry data.
- OdomPacket() - Constructor for class com.marswars.proxy_server.OdomPacket
- OdomPacket.OdometryData - Class in com.marswars.proxy_server
-
Data structure containing robot odometry information.
- onSelectedAutoChange() - Method in class com.marswars.auto.AutoManager
- OPEN_LOOP - Enum constant in enum class com.marswars.swerve_lib.module.Module.DriveControlMode
- operatorForwardDirection - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
- OperatorPerspective - Enum constant in enum class com.marswars.swerve_lib.ChassisRequest.XPositiveReference
-
This forward references makes it so "forward" (positive X) is determined from the operator's perspective.
- OUTPUT_ONLY - Enum constant in enum class com.marswars.dashboard.DashboardChannel.Direction
- outputBool(String) - Static method in record class com.marswars.dashboard.DashboardChannel
- outputInt(String) - Static method in record class com.marswars.dashboard.DashboardChannel
P
- packBits(boolean[]) - Static method in class com.marswars.util.NumUtil
- Packet - Interface in com.marswars.proxy_server
-
Base interface for all proxy server packet types.
- PACKET_ID_IDX - Static variable in interface com.marswars.proxy_server.Packet
-
Packet type identifier index
- Packet.Timestamp - Class in com.marswars.proxy_server
-
Timestamp class to store packet timestamp and perform timestamp operations.
- periodic() - Method in class com.marswars.auto.AutoManager
-
Must be called from robotPeriodic().
- periodic() - Static method in class com.marswars.logging.MwLog
-
Call once at the top of each control loop.
- PhoenixOdometryThread - Class in com.marswars.swerve_lib
-
Provides an interface for asynchronously reading high-frequency measurements to a set of queues.
- PhoenixUtil - Class in com.marswars.util
- PhoenixUtil() - Constructor for class com.marswars.util.PhoenixUtil
- PhoenixUtil.TalonFXMotorControllerSim - Class in com.marswars.util
- PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim - Class in com.marswars.util
- PieceDetectionData(int, int, int, double, double, Packet.Timestamp, String) - Constructor for class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
- PieceDetectionData(int, int, int, double, double, ArrayList<PieceDetectionPacket.PieceDetectionData>, Packet.Timestamp, String) - Constructor for class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
- PieceDetectionPacket - Class in com.marswars.proxy_server
-
Packet handler for game piece detection data.
- PieceDetectionPacket() - Constructor for class com.marswars.proxy_server.PieceDetectionPacket
- PieceDetectionPacket.PieceDetectionData - Class in com.marswars.proxy_server
-
Data structure containing game piece detection information.
- PIGEON2_CANBUS_NAME - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
- PIGEON2_ID - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
- Pigeon2Gyro - Class in com.marswars.sensors.gyro
-
IO implementation for Pigeon 2.
- Pigeon2Gyro(String, int, String) - Constructor for class com.marswars.sensors.gyro.Pigeon2Gyro
- pitchPosition - Variable in class com.marswars.sensors.gyro.GyroInputs
- PointWheelsAt() - Constructor for class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
- poll() - Method in class com.marswars.data_structures.ConcurrentFifoQueue
- PolygonRegion - Class in com.marswars.geometry
-
This class models a region of the field.
- PolygonRegion(Translation2d[], String) - Constructor for class com.marswars.geometry.PolygonRegion
-
Create a Region2d, a polygon, from an array of Translation2d specifying vertices of a polygon.
- pose - Variable in class com.marswars.proxy_server.OdomPacket.OdometryData
-
Robot pose (position and rotation)
- pose - Variable in class com.marswars.proxy_server.TagSolutionPacket.TagSolutionData
-
Robot pose estimate derived from detected AprilTags
- pose_a_ - Variable in class com.marswars.geometry.TightRope
- pose_b_ - Variable in class com.marswars.geometry.TightRope
- poses - Variable in class com.marswars.proxy_server.TagSolutionsInputs
-
Robot pose estimate per solution
- position - Variable in class com.marswars.mechanisms.MechInputs
- POSITION - Enum constant in enum class com.marswars.mechanisms.ArmMech.ControlMode
- POSITION - Enum constant in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
- POSITION - Enum constant in enum class com.marswars.mechanisms.RollerMech.ControlMode
- position_request_ - Variable in class com.marswars.mechanisms.ElevatorMech
- position_target_ - Variable in class com.marswars.mechanisms.ArmMech
- position_target_ - Variable in class com.marswars.mechanisms.ElevatorMech
- position_target_ - Variable in class com.marswars.mechanisms.RollerMech
- position_torque_current_req_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- position_voltage_req_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- pref_path_ - Static variable in class com.marswars.util.MWPreferences
- PREFERENCES - Variable in class com.marswars.subsystem.MwConstants
- ProxyServerThread - Class in com.marswars.proxy_server
-
Proxy server thread for handling UDP communication with external systems.
- ProxyServerThread() - Constructor for class com.marswars.proxy_server.ProxyServerThread
- publishIfChanged(StructArrayPublisher<T>, Set<T>, Set<T>, IntFunction<T[]>) - Static method in class com.marswars.dashboard.DashboardBridge
-
Publishes
newValuesviapublisheronly if it differs frompreviousValues. - put(double, double) - Method in class com.marswars.data_structures.TunableDoubleMap
-
Puts a key-value pair into the map and registers it as a DogLog tunable
- PwfTof - Class in com.marswars.sensors.tof
- PwfTof(String, int, Tof.RangeMode, double) - Constructor for class com.marswars.sensors.tof.PwfTof
-
Creates a PWF Time-of-Flight sensor interface
Q
- q(double) - Method in class com.marswars.geometry.spline.Spline
- q(float) - Method in class com.marswars.geometry.spline.Spline2d
R
- range - Variable in class com.marswars.sensors.tof.TofInputs
- readGyro() - Method in class com.marswars.sensors.gyro.Gyro
- readGyro() - Method in class com.marswars.sensors.gyro.Pigeon2Gyro
- readInputs() - Method in class com.marswars.dashboard.DashboardBridge
-
Call once per loop, before any
getIntIfChanged/getBoolIfChangedcalls. - readInputs(double) - Method in class com.marswars.mechanisms.ArmMech
-
Read inputs from hardware or simulation
- readInputs(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Read inputs from hardware or simulation
- readInputs(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Read inputs from hardware or simulation
- readInputs(double) - Method in class com.marswars.mechanisms.RollerMech
-
Read inputs from hardware or simulation
- readInputs(double) - Method in class com.marswars.sensors.gyro.Gyro
- readInputs(double) - Method in class com.marswars.sensors.tof.Tof
- readInputs(double) - Method in interface com.marswars.subsystem.SubsystemIoBase
-
Read inputs from hardware or simulation
- readInputs(double) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Read inputs from hardware or simulation
- readInputs(double) - Method in class com.marswars.swerve_lib.SwerveMech
-
Read inputs from hardware or simulation
- readTof() - Method in class com.marswars.sensors.tof.GrappleTof
- readTof() - Method in class com.marswars.sensors.tof.PwfTof
- readTof() - Method in class com.marswars.sensors.tof.Tof
- Region - Class in com.marswars.geometry
-
This class models a region of the field.
- Region() - Constructor for class com.marswars.geometry.Region
- registerAutos(Auto...) - Method in class com.marswars.auto.AutoManager
-
Register multiple auto routines to the chooser
- registerGyro(StatusSignal<Angle>) - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Registers a gyro yaw signal for odometry sampling.
- registerModule(int, StatusSignal<Angle>, StatusSignal<Angle>) - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Registers a swerve module's steer and drive position signals for sampling.
- registerSignal(BaseStatusSignal) - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
-
Adds a signal to the internal list for synchronized sampling.
- registerSubsystem(MwSubsystemBase) - Method in class com.marswars.subsystem.SubsystemManager
- requestId - Variable in class com.marswars.proxy_server.TimesyncRequest.TimesyncRequestData
-
Request identifier for matching requests to responses
- requestId - Variable in class com.marswars.proxy_server.TimesyncResponse.TimesyncResponseData
-
Request identifier echoed from the original request
- required - Variable in class com.marswars.geometry.spline.Waypoint
- reset() - Method in class com.marswars.auto.ChoreoEventMarker
-
Resets the passed state of this event.
- reset() - Method in class com.marswars.subsystem.MwSubsystem
-
Called to reset and configure the subsystem
- reset() - Method in interface com.marswars.subsystem.MwSubsystemBase
-
Called to reset and configure the subsystem
- reset() - Method in class com.marswars.subsystem.SubsystemManager
-
If subsystems all need to be reset before a robot mode change, call this function to cleanly handle resetting them together.
- reset(double) - Method in class com.marswars.util.DynamicSlewRateLimiter
-
Resets the slew rate limiter to the specified value; ignores the rate limit when doing so.
- RobotCentric() - Constructor for class com.marswars.swerve_lib.ChassisRequest.RobotCentric
- RobotCentricFacingAngle() - Constructor for class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
- robotToCamera - Variable in class com.marswars.vision.MwVisionSim.CameraSimulation
- RollerMech - Class in com.marswars.mechanisms
-
TalonFX-based mechanism implementation for rollers with position, velocity, and duty cycle control.
- RollerMech(String, String, List<MotorConfig>, double) - Constructor for class com.marswars.mechanisms.RollerMech
-
Constructs a new RollerMech
- RollerMech(String, String, List<MotorConfig>, double, double) - Constructor for class com.marswars.mechanisms.RollerMech
-
Constructs a new RollerMech
- RollerMech(String, List<MotorConfig>, double) - Constructor for class com.marswars.mechanisms.RollerMech
-
Constructs a new RollerMech with a default inertia value.
- RollerMech(String, List<MotorConfig>, double, double) - Constructor for class com.marswars.mechanisms.RollerMech
-
Constructs a new RollerMech
- RollerMech.ControlMode - Enum Class in com.marswars.mechanisms
-
Control modes for the roller mechanism
- rollPosition - Variable in class com.marswars.sensors.gyro.GyroInputs
- root_node_ - Variable in class com.marswars.util.JSONReader
- RotationalDeadband - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The rotational deadband of the request.
- RotationalDeadband - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The rotational deadband of the request.
- RotationalDeadband - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The rotational deadband of the request.
- RotationalDeadband - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The rotational deadband of the request.
- run() - Method in class com.marswars.proxy_server.ProxyServerThread
- run() - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
- runCharacterization(double) - Method in class com.marswars.swerve_lib.module.Module
-
Runs the module with the specified output while controlling to zero degrees.
- runSetpoint(SwerveModuleState, Module.DriveControlMode, Module.SteerControlMode) - Method in class com.marswars.swerve_lib.module.Module
-
Runs the module with the specified setpoint state.
S
- searchArrayForPair(JsonNode, String, String) - Method in class com.marswars.util.JSONReader
-
Searches through a JSON array to find a specific key value pair
- seconds - Variable in class com.marswars.proxy_server.Packet.Timestamp
- selectTab(int) - Static method in class com.marswars.dashboard.Elastic
-
Selects the tab of the dashboard at the given index.
- selectTab(String) - Static method in class com.marswars.dashboard.Elastic
-
Selects the tab of the dashboard with the given name.
- sendCustomPacket(byte, byte[]) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Sends a custom packet with specified message ID and payload data
- sendData(byte[]) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Sends data back to the last connected client on the same port.
- sendDataToClient(byte[], SocketAddress) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Sends data to a specific client address.
- sendNotification(Elastic.Notification) - Static method in class com.marswars.dashboard.Elastic
-
Sends an notification to the Elastic dashboard.
- serialize(TimesyncResponse.TimesyncResponseData) - Static method in class com.marswars.proxy_server.TimesyncResponse
-
Serializes a TimesyncResponseData into a byte array for transmission.
- serverReceiveNanoseconds - Variable in class com.marswars.proxy_server.TimesyncResponse.TimesyncResponseData
-
Server timestamp when request was received (nanoseconds)
- serverReceiveSeconds - Variable in class com.marswars.proxy_server.TimesyncResponse.TimesyncResponseData
-
Server timestamp when request was received (seconds)
- set(DashboardChannel, boolean) - Method in class com.marswars.dashboard.DashboardBridge
-
See
DashboardBridge.set(DashboardChannel, int)-- same dirty-check reasoning applies here. - set(DashboardChannel, int) - Method in class com.marswars.dashboard.DashboardBridge
-
Sets the authoritative value the robot reports to the dashboard for this channel.
- setChassisRequest(ChassisRequest) - Method in class com.marswars.swerve_lib.SwerveMech
-
Sets the chassis request for the swerve drive.
- setChassisRequestParameters(Pose2d, Rotation2d) - Method in class com.marswars.swerve_lib.SwerveMech
-
Sets the chassis request parameters for the swerve drive.
- setCurrentLimits(CurrentLimitsConfigs) - Method in class com.marswars.mechanisms.ArmMech
-
Sets the current limits for all motors in the mechanism.
- setCurrentLimits(CurrentLimitsConfigs) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the current limits for all motors in the mechanism.
- setCurrentLimits(CurrentLimitsConfigs) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the current limits for all motors in the mechanism.
- setCurrentLimits(CurrentLimitsConfigs) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the current limits for all motors in the mechanism.
- setCurrentPosition(double) - Method in class com.marswars.mechanisms.ArmMech
-
Seeds the arm's measured position, overwriting the leader motor's internal encoder reading with the given angle.
- setCurrentPosition(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the current position of the elevator (for zeroing purposes)
- setCurrentPosition(double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the current position of the roller mechanism (for resetting encoders, etc.)
- setDescription(String) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the description of this notification
- setDisplayTimeMillis(int) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the display time of the notification in milliseconds
- setDisplayTimeSeconds(double) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the display time of the notification
- setDriveGains(int, SlotConfigs) - Method in class com.marswars.swerve_lib.module.Module
-
Set the gains for the module drive motors to the given slot
- setDriveGains(int, SlotConfigs) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Set the gains for the module drive motors to the given slot
- setDriveOpenLoop(double) - Method in class com.marswars.swerve_lib.module.Module
-
Run the drive motor at the specified open loop value.
- setDriveOpenLoop(double) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Run the drive motor at the specified open loop value.
- setDriveVelocity(double) - Method in class com.marswars.swerve_lib.module.Module
-
Run the drive motor at the specified velocity.
- setDriveVelocity(double) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Run the drive motor at the specified velocity.
- setEvents(ChoreoTrajectory) - Method in class com.marswars.auto.ChoreoEventTracker
-
Sets the events for the current trajectory and resets all tracking state.
- setGyroYaw(Rotation2d) - Method in class com.marswars.swerve_lib.SwerveMech
-
Sets the gyro yaw position.
- setHeight(double) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the height of the notification
- setHighArc(boolean) - Method in class com.marswars.geometry.LaunchTrajectory
-
Setter for high_arc; change the arc type live (only valid for variable angle shooters)
- setLevel(Elastic.Notification.NotificationLevel) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the level of this notification
- setMaxDistance(double) - Method in class com.marswars.geometry.LaunchCalculator
-
Sets the maximum valid shooting distance
- setMinDistance(double) - Method in class com.marswars.geometry.LaunchCalculator
-
Sets the minimum valid shooting distance
- setModuleOffset() - Method in class com.marswars.swerve_lib.module.Module
-
Stores the current encoder reading as an offset
- setModuleOffset() - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Stores the current encoder reading as an offset
- setModuleOffsets() - Method in class com.marswars.swerve_lib.SwerveMech
-
Stores the current encoder readings as offsets
- setMotorCurrentLimit(CurrentLimitsConfigs, CommonTalon[]) - Method in class com.marswars.mechanisms.MechBase
-
Applies the given current limits to each of the provided motors.
- setNeutralMode(NeutralModeValue) - Method in class com.marswars.swerve_lib.module.Module
-
Sets the neutral mode for both motors
- setNeutralMode(NeutralModeValue) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Sets the neutral mode for both motors
- setNeutralMode(NeutralModeValue) - Method in class com.marswars.swerve_lib.SwerveMech
-
Sets the neutral mode for all swerve modules.
- setP0(double) - Method in class com.marswars.geometry.spline.Spline
- setP1(double) - Method in class com.marswars.geometry.spline.Spline
- setP2(double) - Method in class com.marswars.geometry.spline.Spline
- setP3(double) - Method in class com.marswars.geometry.spline.Spline
- setPhaseDelay(double) - Method in class com.marswars.geometry.LaunchCalculator
-
Sets the phase delay (processing and actuator lag)
- setpoint_ - Variable in class com.marswars.swerve_lib.module.Module
- setPreference(String, Number) - Method in class com.marswars.util.MWPreferences
- setPreference(String, String) - Method in class com.marswars.util.MWPreferences
- setRange(double) - Method in class com.marswars.sensors.tof.Tof
-
Set the measured range in meters (for simulation only)
- setRateLimit(double) - Method in class com.marswars.util.DynamicSlewRateLimiter
-
Sets the rate limit.
- setSteerGains(SlotConfigs) - Method in class com.marswars.swerve_lib.module.Module
-
Set the gains for the module steer motors to the given slot
- setSteerGains(SlotConfigs) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Set the gains for the module steer motors to the given slot
- setSteerOpenLoop(double) - Method in class com.marswars.swerve_lib.module.Module
-
Run the turn motor at the specified open loop value.
- setSteerOpenLoop(double) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Run the turn motor at the specified open loop value.
- setSteerPosition(Rotation2d) - Method in class com.marswars.swerve_lib.module.Module
-
Run the turn motor to the specified rotation.
- setSteerPosition(Rotation2d) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Run the turn motor to the specified rotation.
- setTarget(Translation3d) - Method in class com.marswars.geometry.LaunchTrajectory
-
Setter for target; change the target live
- setTargetCurrent(double) - Method in class com.marswars.mechanisms.ArmMech
-
Sets the target current of the arm in amps
- setTargetCurrent(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target current of the elevator in amps
- setTargetCurrent(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the target current of the flywheel in amps
- setTargetCurrent(double) - Method in class com.marswars.mechanisms.RollerMech
- setTargetCurrentWithFF(double, double) - Method in class com.marswars.mechanisms.ArmMech
-
Sets the target current with a feedforward component.
- setTargetCurrentWithFF(double, double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target current with a feedforward component.
- setTargetCurrentWithFF(double, double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the target current with a feedforward component.
- setTargetCurrentWithFF(double, double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target current with a feedforward component.
- setTargetDutyCycle(double) - Method in class com.marswars.mechanisms.ArmMech
-
Commands the arm with an open-loop duty cycle.
- setTargetDutyCycle(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target duty cycle of the elevator
- setTargetDutyCycle(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the target duty cycle of the flywheel
- setTargetDutyCycle(double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target duty cycle of the roller mechanism
- setTargetPosition(double) - Method in class com.marswars.mechanisms.ArmMech
-
Commands the arm to a target position using the standard position controller, clearing any feedforward.
- setTargetPosition(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target position of the elevator in meters using standard position control
- setTargetPosition(double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target position of the roller mechanism in radians using standard position control
- setTargetPositionMotionProfile(double) - Method in class com.marswars.mechanisms.ArmMech
-
Commands the arm to a target position using the Motion Magic motion profile, clearing any feedforward.
- setTargetPositionMotionProfile(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target position of the elevator in meters using motion profile control
- setTargetPositionMotionProfile(double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target position of the roller mechanism in radians using motion profile control
- setTargetPositionMotionProfileWithFF(double, double) - Method in class com.marswars.mechanisms.ArmMech
-
Commands the arm to a target position using the Motion Magic motion profile with an arbitrary feedforward applied.
- setTargetPositionMotionProfileWithFF(double, double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target position of the elevator with arbitrary feed forward using motion profile control.
- setTargetPositionMotionProfileWithFF(double, double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target position of the roller mechanism with arbitrary feed forward using motion profile control.
- setTargetPositionWithFF(double, double) - Method in class com.marswars.mechanisms.ArmMech
-
Commands the arm to a target position using the standard position controller with an arbitrary feedforward applied.
- setTargetPositionWithFF(double, double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target position of the elevator with arbitrary feed forward.
- setTargetPositionWithFF(double, double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target position of the roller mechanism with arbitrary feed forward.
- setTargetVelocity(double) - Method in class com.marswars.mechanisms.ArmMech
-
Commands the arm to a target velocity using the velocity controller.
- setTargetVelocity(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Sets the target velocity of the elevator in meters per second
- setTargetVelocity(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the target velocity of the flywheel in radians per second using standard velocity control
- setTargetVelocity(double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target velocity of the roller mechanism in radians per second using standard velocity control
- setTargetVelocityMotionProfile(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the target velocity of the flywheel in radians per second using motion profile velocity control
- setTargetVelocityMotionProfile(double) - Method in class com.marswars.mechanisms.RollerMech
-
Sets the target velocity of the roller mechanism in radians per second using motion profile velocity control
- setTargetVelocityWithFF(double, double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Sets the target velocity of the flywheel with arbitrary feed forward.
- setTitle(String) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the title of this notification
- setWantedState(StateType) - Method in class com.marswars.subsystem.MwSubsystem
-
Sets the desired state for the state machine
- setWidth(double) - Method in class com.marswars.dashboard.Elastic.Notification
-
Updates the width of the notification
- setYaw(Rotation2d) - Method in class com.marswars.sensors.gyro.Gyro
- setYaw(Rotation2d) - Method in class com.marswars.sensors.gyro.Pigeon2Gyro
- SHORT - Enum constant in enum class com.marswars.sensors.tof.Tof.RangeMode
- signals - Variable in class com.marswars.mechanisms.MechBase.ConstructedMotors
- signals_ - Variable in class com.marswars.mechanisms.ArmMech
- signals_ - Variable in class com.marswars.mechanisms.ElevatorMech
- signals_ - Variable in class com.marswars.mechanisms.FlywheelMech
- signals_ - Variable in class com.marswars.mechanisms.RollerMech
- SKID_DETECTION_RANGE - Variable in class com.marswars.swerve_lib.SwerveDriveConfig
-
Skid-detection threshold (max allowed spread of per-module velocities).
- snapshot(String) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Sends snapshot trigger packet for log location flagging
- speed_at_12_volts - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- Speeds - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
The chassis speeds to apply to the drivetrain.
- Speeds - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
The chassis speeds to apply to the drivetrain.
- Speeds - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The desired chassis speeds (field-relative)
- Speeds - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The desired chassis speeds (field-relative, rotation component ignored)
- Speeds - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The desired chassis speeds (robot-relative)
- Speeds - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The robot-relative chassis speeds to apply to the drivetrain.
- Spline - Class in com.marswars.geometry.spline
- Spline(double, double, double, double) - Constructor for class com.marswars.geometry.spline.Spline
- Spline2d - Class in com.marswars.geometry.spline
- Spline2d(Translation3d, Translation3d, Translation3d, Translation3d) - Constructor for class com.marswars.geometry.spline.Spline2d
- SplineUtil - Class in com.marswars.geometry.spline
- SplineUtil() - Constructor for class com.marswars.geometry.spline.SplineUtil
- start() - Method in class com.marswars.auto.ChoreoEventTracker
-
Starts tracking events.
- start() - Method in class com.marswars.proxy_server.ProxyServerThread
- start() - Method in class com.marswars.swerve_lib.PhoenixOdometryThread
- startWebServer() - Method in class com.marswars.dashboard.DashboardBridge
-
Starts serving the static dashboard web app.
- StatesPacket - Class in com.marswars.proxy_server
-
Packet handler for swerve drive module state data.
- StatesPacket() - Constructor for class com.marswars.proxy_server.StatesPacket
- StatesPacket.ModuleStatesData - Class in com.marswars.proxy_server
-
Data structure containing swerve module state information.
- statorCurrentDraw - Variable in class com.marswars.mechanisms.MechInputs
- steer_absolute_position_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- steer_applied_volts_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- steer_conn_deb_ - Variable in class com.marswars.swerve_lib.module.Module
- steer_disconnected_alert_ - Variable in class com.marswars.swerve_lib.module.Module
- steer_motor_config - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- steer_stator_current_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- steer_supply_current_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- steer_talonfx_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- steer_velocity_sig_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- steerAbsolutePosition - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- steerAppliedVolts - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- steerInverted - Variable in class com.marswars.swerve_lib.module.ModuleType
- steerRatio - Variable in class com.marswars.swerve_lib.module.ModuleType
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The type of control request to use for the steer motor.
- SteerRequestType - Variable in class com.marswars.swerve_lib.ChassisRequest.SwerveDriveBrake
-
The type of control request to use for the steer motor.
- steerStatorCurrentAmps - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- steerSupplyCurrentAmps - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- steerVelocityRadPerSec - Variable in class com.marswars.swerve_lib.module.ModuleInputs
- stop() - Method in class com.marswars.auto.ChoreoEventTracker
-
Stops tracking events.
- stop() - Method in class com.marswars.swerve_lib.module.Module
-
Disables all outputs to motors.
- subdividePoints(ArrayList<Waypoint>, double) - Static method in class com.marswars.geometry.spline.SplineUtil
-
Creates catmull spline curves between the points array with a given number for subdivions per unit.
- subdividePoints(ArrayList<Waypoint>, ArrayList<Integer>) - Static method in class com.marswars.geometry.spline.SplineUtil
-
Creates catmull spline curves between the points array.
- subsystem_name_ - Variable in class com.marswars.subsystem.MwSubsystem
- SubsystemIO<ConstantsType extends MwConstants> - Class in com.marswars.subsystem
- SubsystemIO(ConstantsType) - Constructor for class com.marswars.subsystem.SubsystemIO
- SubsystemIoBase - Interface in com.marswars.subsystem
- SubsystemManager - Class in com.marswars.subsystem
- SubsystemManager(Object) - Constructor for class com.marswars.subsystem.SubsystemManager
- subsystems - Variable in class com.marswars.subsystem.SubsystemManager
- supplyCurrentDraw - Variable in class com.marswars.mechanisms.MechInputs
- SwerveDriveBrake() - Constructor for class com.marswars.swerve_lib.ChassisRequest.SwerveDriveBrake
- SwerveDriveConfig - Class in com.marswars.swerve_lib
-
Immutable configuration container for a full swerve drivetrain.
- SwerveDriveConfig(SwerveModuleConfig, SwerveModuleConfig, SwerveModuleConfig, SwerveModuleConfig, int, String) - Constructor for class com.marswars.swerve_lib.SwerveDriveConfig
-
Creates a new swerve drive configuration with the default skid-detection threshold.
- SwerveDriveConfig(SwerveModuleConfig, SwerveModuleConfig, SwerveModuleConfig, SwerveModuleConfig, int, String, double) - Constructor for class com.marswars.swerve_lib.SwerveDriveConfig
-
Creates a new swerve drive configuration.
- SwerveMeasurement() - Constructor for class com.marswars.swerve_lib.SwerveMeasurements.SwerveMeasurement
- SwerveMeasurements - Class in com.marswars.swerve_lib
-
Data containers for time-stamped swerve odometry measurements.
- SwerveMeasurements() - Constructor for class com.marswars.swerve_lib.SwerveMeasurements
- SwerveMeasurements.GyroMeasurement - Class in com.marswars.swerve_lib
-
Time-stamped gyro measurement.
- SwerveMeasurements.ModuleMeasurement - Class in com.marswars.swerve_lib
-
Time-stamped module position measurement.
- SwerveMeasurements.SwerveMeasurement - Class in com.marswars.swerve_lib
-
Aggregated time-stamped swerve measurement bundle.
- SwerveMech - Class in com.marswars.swerve_lib
-
Mechanism implementation for a four-module swerve drivetrain.
- SwerveMech(String, SwerveDriveConfig) - Constructor for class com.marswars.swerve_lib.SwerveMech
-
Creates a new swerve mechanism using the provided drivetrain configuration.
- SwerveModuleConfig - Class in com.marswars.swerve_lib.module
-
Configuration container for a single swerve module.
- SwerveModuleConfig() - Constructor for class com.marswars.swerve_lib.module.SwerveModuleConfig
- SwerveModuleConfig.EncoderType - Enum Class in com.marswars.swerve_lib.module
-
Encoder hardware options for the module.
- SwerveSamplesInputs - Class in com.marswars.swerve_lib
- SwerveSamplesInputs() - Constructor for class com.marswars.swerve_lib.SwerveSamplesInputs
- syncMatchData() - Method in class com.marswars.proxy_server.ProxyServerThread
-
Sends match data packet for log name syncing
- system_state_ - Variable in class com.marswars.subsystem.MwSubsystem
T
- tagIdCounts - Variable in class com.marswars.proxy_server.TagSolutionsInputs
-
Number of detected tag IDs per solution
- tagIds - Variable in class com.marswars.proxy_server.TagSolutionsInputs
-
All detected tag IDs, concatenated across solutions
- TagLayouts - Class in com.marswars.util
- TagLayouts() - Constructor for class com.marswars.util.TagLayouts
- TagSolutionData(Pose2d, ArrayList<Integer>, Packet.Timestamp, String) - Constructor for class com.marswars.proxy_server.TagSolutionPacket.TagSolutionData
- TagSolutionPacket - Class in com.marswars.proxy_server
-
Packet handler for AprilTag detection and pose estimation data.
- TagSolutionPacket() - Constructor for class com.marswars.proxy_server.TagSolutionPacket
- TagSolutionPacket.TagSolutionData - Class in com.marswars.proxy_server
-
Data structure containing AprilTag-based pose solution information.
- TagSolutionsInputs - Class in com.marswars.proxy_server
- TagSolutionsInputs() - Constructor for class com.marswars.proxy_server.TagSolutionsInputs
- TalonFXMotorControllerSim(TalonFX) - Constructor for class com.marswars.util.PhoenixUtil.TalonFXMotorControllerSim
-
Creates a simulated motor controller for a TalonFX motor.
- TalonFXMotorControllerWithRemoteCancoderSim(TalonFX, CANcoder) - Constructor for class com.marswars.util.PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim
-
Creates a simulated motor controller for a TalonFX motor with a remote CANcoder.
- TargetDirection - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The direction the robot should face.
- TargetDirection - Variable in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
The direction the robot should face.
- thetaX - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Horizontal angle to the detected piece (radians)
- thetaY - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Vertical angle to the detected piece (radians)
- TightRope - Class in com.marswars.geometry
- TightRope(Pose2d, Pose2d, String) - Constructor for class com.marswars.geometry.TightRope
-
Create a TightRope between two poses
- time(String) - Static method in class com.marswars.logging.MwLog
-
Starts a named timer.
- TIME_NSEC_IDX - Static variable in interface com.marswars.proxy_server.Packet
-
Timestamp nanoseconds index
- time_of_flight - Variable in class com.marswars.geometry.LaunchCalculator.LaunchParameters
-
Estimated time of flight (seconds)
- TIME_SEC_IDX - Static variable in interface com.marswars.proxy_server.Packet
-
Timestamp seconds index
- timeEnd(String) - Static method in class com.marswars.logging.MwLog
-
Records elapsed seconds since time(key) was called.
- timestamp - Variable in class com.marswars.proxy_server.OdomPacket.OdometryData
-
Timestamp when the odometry was recorded
- timestamp - Variable in class com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
-
Timestamp when the detection was made
- timestamp - Variable in class com.marswars.proxy_server.StatesPacket.ModuleStatesData
-
Timestamp when the states were recorded
- timestamp - Variable in class com.marswars.proxy_server.TagSolutionPacket.TagSolutionData
-
Timestamp when the solution was computed
- timestamp - Variable in class com.marswars.proxy_server.TimesyncRequest.TimesyncRequestData
-
Packet timestamp from header
- timestamp - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
- timestamp - Variable in class com.marswars.swerve_lib.SwerveMeasurements.GyroMeasurement
- timestamp - Variable in class com.marswars.swerve_lib.SwerveMeasurements.ModuleMeasurement
- timestamp - Variable in class com.marswars.swerve_lib.SwerveMeasurements.SwerveMeasurement
- Timestamp(int, int) - Constructor for class com.marswars.proxy_server.Packet.Timestamp
- timestamps - Variable in class com.marswars.proxy_server.TagSolutionsInputs
-
Vision timestamp in seconds (sec + nsec/1e9) per solution
- timestamps - Variable in class com.marswars.swerve_lib.SwerveSamplesInputs
-
Timestamps for each swerve measurement sample (seconds)
- timestampSeconds() - Static method in class com.marswars.logging.MwLog
-
Deterministic loop timestamp in seconds (sourced from the log during replay).
- TimesyncRequest - Class in com.marswars.proxy_server
-
Packet handler for time synchronization requests.
- TimesyncRequest() - Constructor for class com.marswars.proxy_server.TimesyncRequest
- TimesyncRequest.TimesyncRequestData - Class in com.marswars.proxy_server
-
Data structure containing time synchronization request information.
- TimesyncRequestData(int, int, int, Packet.Timestamp) - Constructor for class com.marswars.proxy_server.TimesyncRequest.TimesyncRequestData
- TimesyncResponse - Class in com.marswars.proxy_server
-
Packet handler for time synchronization responses.
- TimesyncResponse() - Constructor for class com.marswars.proxy_server.TimesyncResponse
- TimesyncResponse.TimesyncResponseData - Class in com.marswars.proxy_server
-
Data structure containing time synchronization response information.
- TimesyncResponseData(int, int, int, int, int) - Constructor for class com.marswars.proxy_server.TimesyncResponse.TimesyncResponseData
- toDashboardTable() - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Returns the value of the
toDashboardTablerecord component. - Tof - Class in com.marswars.sensors.tof
- tof_name_ - Variable in class com.marswars.sensors.tof.Tof
- Tof.RangeMode - Enum Class in com.marswars.sensors.tof
- TofInputs - Class in com.marswars.sensors.tof
- TofInputs() - Constructor for class com.marswars.sensors.tof.TofInputs
- toInvertedValue(boolean) - Static method in class com.marswars.util.PhoenixUtil
-
Converts a boolean invert flag to a Phoenix InvertedValue enum.
- toList() - Method in class com.marswars.data_structures.ConcurrentFifoQueue
- toPose2d(Rotation2d) - Static method in class com.marswars.util.GeomUtil
-
Creates a pure rotated pose
- toPose2d(Transform2d) - Static method in class com.marswars.util.GeomUtil
-
Converts a Transform2d to a Pose2d to be used as a position or as the start of a kinematic chain
- toPose2d(Translation2d) - Static method in class com.marswars.util.GeomUtil
-
Creates a pure translated pose
- toPose3d(Transform3d) - Static method in class com.marswars.util.GeomUtil
-
Converts a Transform3d to a Pose3d to be used as a position or as the start of a kinematic chain
- toRobotTable() - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Returns the value of the
toRobotTablerecord component. - torque_current_req_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- torqueCurrentDraw - Variable in class com.marswars.mechanisms.MechInputs
- toString() - Method in class com.marswars.auto.ChoreoEventMarker
- toString() - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Returns a string representation of this record class.
- toString() - Method in record class com.marswars.dashboard.DashboardChannel
-
Returns a string representation of this record class.
- toString() - Method in class com.marswars.proxy_server.Packet.Timestamp
- toTransform2d(double, double) - Static method in class com.marswars.util.GeomUtil
-
Creates a pure translating transform
- toTransform2d(Pose2d) - Static method in class com.marswars.util.GeomUtil
-
Converts a Pose2d to a Transform2d to be used in a kinematic chain
- toTransform2d(Rotation2d) - Static method in class com.marswars.util.GeomUtil
-
Creates a pure rotating transform
- toTransform2d(Translation2d) - Static method in class com.marswars.util.GeomUtil
-
Creates a pure translating transform
- toTransform3d(Pose3d) - Static method in class com.marswars.util.GeomUtil
-
Converts a Pose3d to a Transform3d to be used in a kinematic chain
- toTwist2d(ChassisSpeeds) - Static method in class com.marswars.util.GeomUtil
-
Converts a ChassisSpeeds to a Twist2d by extracting two dimensions (Y and Z).
- TowardsRedAlliance - Enum constant in enum class com.marswars.swerve_lib.ChassisRequest.XPositiveReference
-
This forward reference makes it so "forward" (positive X) is always towards the red alliance.
- trajectories_ - Variable in class com.marswars.auto.Auto
- TrajectorySol() - Constructor for class com.marswars.geometry.LaunchTrajectory.TrajectorySol
- translation - Variable in class com.marswars.geometry.spline.Waypoint
- tryUntilOk(int, Supplier<StatusCode>) - Static method in class com.marswars.util.PhoenixUtil
-
Attempts to run the command until no error is produced.
- tunable(String, double, DoubleConsumer) - Static method in class com.marswars.logging.MwLog
-
Registers a live-tunable double backed by a NetworkTables entry under /Tuning/.
- TunableDoubleMap - Class in com.marswars.data_structures
-
A wrapper around InterpolatingDoubleTreeMap that automatically generates DogLog tunable entries for the y-values in the map.
- TunableDoubleMap(String) - Constructor for class com.marswars.data_structures.TunableDoubleMap
-
Creates a new TunableDoubleMap
- TunablePid - Class in com.marswars.util
- TurretMech - Class in com.marswars.mechanisms
-
Roller-based mechanism configured for turret control.
- TurretMech(String, String, List<MotorConfig>, double, double) - Constructor for class com.marswars.mechanisms.TurretMech
-
Constructs a new TurretMech
- TurretMech(String, List<MotorConfig>, double, double) - Constructor for class com.marswars.mechanisms.TurretMech
-
Constructs a new TurretMech
- twist - Variable in class com.marswars.proxy_server.OdomPacket.OdometryData
-
Robot velocity (linear and angular)
- type() - Method in record class com.marswars.dashboard.DashboardChannel
-
Returns the value of the
typerecord component. - TYPE_ID - Static variable in class com.marswars.proxy_server.OdomPacket
- TYPE_ID - Static variable in class com.marswars.proxy_server.PieceDetectionPacket
- TYPE_ID - Static variable in class com.marswars.proxy_server.StatesPacket
- TYPE_ID - Static variable in class com.marswars.proxy_server.TagSolutionPacket
- TYPE_ID - Static variable in class com.marswars.proxy_server.TimesyncRequest
- TYPE_ID - Static variable in class com.marswars.proxy_server.TimesyncResponse
U
- unpackBits(int, int) - Static method in class com.marswars.util.NumUtil
- update(double) - Method in class com.marswars.auto.ChoreoEventTracker
-
Updates the tracker with the current trajectory time.
- update(double) - Method in class com.marswars.subsystem.MwSubsystem
-
DO NOT OVERRIDE THIS METHOD IN THE BASE CLASS IF YOU DO, BAD THINGS WILL HAPPEN! YOUR SUBSYSTEM WILL NOT TICK CORRECTLY
- update(double) - Method in interface com.marswars.subsystem.MwSubsystemBase
-
Computes updated outputs for the actuators
- update(Pose2d) - Method in class com.marswars.vision.MwVisionSim
-
Updates the vision simulation with the current robot pose.
- updateControlSignal(Angle, AngularVelocity, Angle, AngularVelocity) - Method in class com.marswars.util.PhoenixUtil.TalonFXMotorControllerSim
- updateControlSignal(Angle, AngularVelocity, Angle, AngularVelocity) - Method in class com.marswars.util.PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim
- updateData(byte[]) - Static method in class com.marswars.proxy_server.OdomPacket
-
Parses odometry packet data from a received byte buffer.
- updateData(byte[]) - Static method in class com.marswars.proxy_server.PieceDetectionPacket
-
Parses piece detection packet data from a received byte buffer.
- updateData(byte[]) - Static method in class com.marswars.proxy_server.StatesPacket
-
Parses module states packet data from a received byte buffer.
- updateData(byte[]) - Static method in class com.marswars.proxy_server.TagSolutionPacket
-
Parses tag solution packet data from a received byte buffer.
- updateData(byte[]) - Static method in class com.marswars.proxy_server.TimesyncRequest
-
Parses timesync request packet data from a received byte buffer.
- updateLogic(double) - Method in class com.marswars.subsystem.MwSubsystem
-
Computes updated outputs for the actuators
- updatePeriod - Variable in class com.marswars.swerve_lib.ChassisRequest.ChassisRequestParameters
- updateVisionSimulation(Pose2d) - Method in class com.marswars.proxy_server.ProxyServerThread
-
Updates the vision simulation with the current robot pose and generates vision data.
V
- valid - Variable in class com.marswars.geometry.LaunchTrajectory.TrajectorySol
-
Whether the solution is valid
- valueOf(String) - Static method in enum class com.marswars.dashboard.DashboardChannel.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.dashboard.DashboardChannel.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.dashboard.Elastic.Notification.NotificationLevel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.geometry.AllianceFlipUtil.SymmetryType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.mechanisms.ArmMech.ControlMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.mechanisms.FlywheelMech.ControlMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.mechanisms.RollerMech.ControlMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.sensors.tof.Tof.RangeMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.swerve_lib.ChassisRequest.XPositiveReference
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.swerve_lib.module.Module.DriveControlMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.swerve_lib.module.Module.SteerControlMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.marswars.swerve_lib.module.SwerveModuleConfig.EncoderType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.marswars.dashboard.DashboardChannel.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.dashboard.DashboardChannel.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.dashboard.Elastic.Notification.NotificationLevel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.geometry.AllianceFlipUtil.SymmetryType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.mechanisms.ArmMech.ControlMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.mechanisms.FlywheelMech.ControlMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.mechanisms.RollerMech.ControlMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.sensors.tof.Tof.RangeMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.swerve_lib.ChassisRequest.XPositiveReference
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.swerve_lib.module.Module.DriveControlMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.swerve_lib.module.Module.SteerControlMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.marswars.swerve_lib.module.SwerveModuleConfig.EncoderType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variances - Variable in class com.marswars.proxy_server.OdomPacket.OdometryData
-
Position variances [x, y, theta] for uncertainty estimation
- velocity - Variable in class com.marswars.geometry.LaunchTrajectory.TrajectorySol
-
Launch velocity in meters per second
- velocity - Variable in class com.marswars.mechanisms.MechInputs
- VELOCITY - Enum constant in enum class com.marswars.mechanisms.ArmMech.ControlMode
- VELOCITY - Enum constant in enum class com.marswars.mechanisms.ElevatorMech.ControlMode
- VELOCITY - Enum constant in enum class com.marswars.mechanisms.FlywheelMech.ControlMode
- VELOCITY - Enum constant in enum class com.marswars.mechanisms.RollerMech.ControlMode
- velocity_request_ - Variable in class com.marswars.mechanisms.ElevatorMech
- velocity_target_ - Variable in class com.marswars.mechanisms.ArmMech
- velocity_target_ - Variable in class com.marswars.mechanisms.ElevatorMech
- velocity_target_ - Variable in class com.marswars.mechanisms.FlywheelMech
- velocity_target_ - Variable in class com.marswars.mechanisms.RollerMech
- velocity_torque_current_req_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- velocity_voltage_req_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
- voltage_req_ - Variable in class com.marswars.swerve_lib.module.ModuleTalonFX
W
- walkTree(JsonNode, String...) - Static method in class com.marswars.util.JSONReader
-
Walks the JSON tree down to a specific node
- WARNING - Enum constant in enum class com.marswars.dashboard.Elastic.Notification.NotificationLevel
-
Warning message
- Waypoint - Class in com.marswars.geometry.spline
- Waypoint() - Constructor for class com.marswars.geometry.spline.Waypoint
- Waypoint(double, double, double) - Constructor for class com.marswars.geometry.spline.Waypoint
- Waypoint(double, double, double, boolean) - Constructor for class com.marswars.geometry.spline.Waypoint
- Waypoint(Translation3d) - Constructor for class com.marswars.geometry.spline.Waypoint
- Waypoint(Translation3d, boolean) - Constructor for class com.marswars.geometry.spline.Waypoint
- webServerDeploySubdir() - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Returns the value of the
webServerDeploySubdirrecord component. - webServerPort() - Method in record class com.marswars.dashboard.DashboardBridge.Config
-
Returns the value of the
webServerPortrecord component. - wheel_inertia_ - Variable in class com.marswars.mechanisms.FlywheelMech
- wheel_radius_ - Variable in class com.marswars.mechanisms.FlywheelMech
- wheel_radius_m - Variable in class com.marswars.swerve_lib.module.SwerveModuleConfig
- willContain(Pose2d, ChassisSpeeds, double) - Method in class com.marswars.geometry.Region
-
Returns true if the region will contain a given Pose2d after moving at a given speed for a given time.
- withAutomaticHeight() - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's height and returns itself to allow for method chaining
- withCenterOfRotation(Translation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
Sets the center of rotation to rotate around.
- withCenterOfRotation(Translation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
Sets the center of rotation of the request
- withCenterOfRotation(Translation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Sets the center of rotation of the request
- withCenterOfRotation(Translation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the center of rotation of the request
- withCenterOfRotation(Translation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
Sets the center of rotation of the request
- withCenterOfRotation(Translation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the center of rotation of the request
- withDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Sets the allowable deadband of the request.
- withDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the allowable deadband of the request.
- withDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
Sets the allowable deadband of the request.
- withDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the allowable deadband of the request.
- withDescription(String) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's description and returns itself to allow for method chaining
- withDisplayMilliseconds(int) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's display time and returns itself to allow for method chaining
- withDisplaySeconds(double) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's display time and returns itself to allow for method chaining
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the type of control request to use for the drive motor.
- withDriveRequestType(Module.DriveControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.SwerveDriveBrake
-
Sets the type of control request to use for the drive motor.
- withHeadingController(PhoenixPIDController) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the PID controller used to maintain the desired heading.
- withHeadingController(PhoenixPIDController) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the PID controller used to maintain the desired heading.
- withHeadingFeedforward(double) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the feedforward rotational velocity to add to the PID output.
- withHeadingFeedforward(double) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the feedforward rotational velocity to add to the PID output.
- withHeight(double) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's height and returns itself to allow for method chaining
- withLevel(Elastic.Notification.NotificationLevel) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's level and returns itself to allow for method chaining
- withLoggingPrefix(String) - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Sets the logging prefix for DogLog tunables
- withLoopPeriod(double) - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Sets the robot loop period
- withMaxAbsRotationalRate(double) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the maximum absolute rotational rate of the request.
- withMaxAbsRotationalRate(double) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the maximum absolute rotational rate of the request.
- withMaxDistance(double) - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Sets the maximum valid distance
- withMinDistance(double) - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Sets the minimum valid distance
- withModuleDirection(Rotation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
Sets the direction to point the modules toward.
- withNoAutoDismiss() - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification to disable the auto dismiss behavior
- withPhaseDelay(double) - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Sets the phase delay
- withRobotToLauncher(Transform2d) - Method in class com.marswars.geometry.LaunchCalculator.Builder
-
Sets the transform from robot center to launcher
- withRotation(Pose2d, Rotation2d) - Static method in class com.marswars.util.GeomUtil
-
Creates a new pose from an existing one using a different rotation value.
- withRotationalDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Sets the rotational deadband of the request.
- withRotationalDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the rotational deadband of the request.
- withRotationalDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
Sets the rotational deadband of the request.
- withRotationalDeadband(double) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the rotational deadband of the request.
- withSpeeds(ChassisSpeeds) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
Sets the chassis speeds to apply to the drivetrain.
- withSpeeds(ChassisSpeeds) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
Sets the chassis speeds to apply to the drivetrain.
- withSpeeds(ChassisSpeeds) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The linear and angular velocity to apply to the drivetrain, specified as ChassisSpeeds.
- withSpeeds(ChassisSpeeds) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The linear velocity to apply to the drivetrain, specified as ChassisSpeeds.
- withSpeeds(ChassisSpeeds) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
The linear and angular velocity to apply to the drivetrain, specified as ChassisSpeeds.
- withSpeeds(ChassisSpeeds) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the robot-relative chassis speeds to apply to the drivetrain.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyChassisSpeeds
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.ApplyFieldSpeeds
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.PointWheelsAt
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentric
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the type of control request to use for the steer motor.
- withSteerRequestType(Module.SteerControlMode) - Method in class com.marswars.swerve_lib.ChassisRequest.SwerveDriveBrake
-
Sets the type of control request to use for the steer motor.
- withTargetHeading(Rotation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the desired direction to face.
- withTargetHeading(Rotation2d) - Method in class com.marswars.swerve_lib.ChassisRequest.RobotCentricFacingAngle
-
Sets the desired direction to face.
- withTitle(String) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's title and returns itself to allow for method chaining
- withTranslation(Pose2d, Translation2d) - Static method in class com.marswars.util.GeomUtil
-
Creates a new pose from an existing one using a different translation value.
- withWidth(double) - Method in class com.marswars.dashboard.Elastic.Notification
-
Modifies the notification's width and returns itself to allow for method chaining
- withXPositiveReference(ChassisRequest.XPositiveReference) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
Sets the perspective to use when determining which direction is forward.
- withXPositiveReference(ChassisRequest.XPositiveReference) - Method in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
Sets the perspective to use when determining which direction is forward.
- writeFile() - Method in class com.marswars.util.MWPreferences
- writeOutputs(double) - Method in class com.marswars.mechanisms.ArmMech
-
Write outputs to hardware or simulation
- writeOutputs(double) - Method in class com.marswars.mechanisms.ElevatorMech
-
Write outputs to hardware or simulation
- writeOutputs(double) - Method in class com.marswars.mechanisms.FlywheelMech
-
Write outputs to hardware or simulation
- writeOutputs(double) - Method in class com.marswars.mechanisms.RollerMech
-
Write outputs to hardware or simulation
- writeOutputs(double) - Method in class com.marswars.sensors.gyro.Gyro
- writeOutputs(double) - Method in class com.marswars.sensors.tof.Tof
- writeOutputs(double) - Method in interface com.marswars.subsystem.SubsystemIoBase
-
Write outputs to hardware or simulation
- writeOutputs(double) - Method in class com.marswars.swerve_lib.module.ModuleTalonFX
-
Write outputs to hardware or simulation
- writeOutputs(double) - Method in class com.marswars.swerve_lib.SwerveMech
-
Write outputs to hardware or simulation
X
- X44 - Enum constant in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
- X60 - Enum constant in enum class com.marswars.mechanisms.MotorConfig.TalonMotorType
- XPositiveReference - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentric
-
The perspective to use when determining which direction is forward.
- XPositiveReference - Variable in class com.marswars.swerve_lib.ChassisRequest.FieldCentricFacingAngle
-
The perspective to use when determining which direction is forward.
Y
- yawPosition - Variable in class com.marswars.sensors.gyro.GyroInputs
- yawVelocityRadPerSec - Variable in class com.marswars.sensors.gyro.GyroInputs
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form