Class ChassisRequest.Idle

java.lang.Object
com.marswars.swerve_lib.ChassisRequest.Idle
All Implemented Interfaces:
ChassisRequest
Enclosing interface:
ChassisRequest

public static class ChassisRequest.Idle extends Object implements ChassisRequest
Does nothing to the swerve module state. This is the default state of a newly created swerve drive mechanism.
  • Constructor Details

    • Idle

      public Idle()
  • Method Details

    • apply

      public void apply(ChassisRequest.ChassisRequestParameters parameters, Module... modulesToApply)
      Applies this swerve request to the given modules. This is typically called by the SwerveDrivetrain.
      Specified by:
      apply in interface ChassisRequest
      Parameters:
      parameters - Parameters the control request needs to calculate the module state
      modulesToApply - Modules to which the control request is applied