Class RRMecanumDrive.Parameters
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.RRMecanumDrive.Parameters
- Enclosing interface:
- RRMecanumDrive
Contains motor names and settings - usually part of a set of Robot parameters. For fields without descriptions, see RoadRunner Quickstart's SampleMecanumDrive.
-
Field Summary
Modifier and TypeFieldDescriptionfinal AccelLimiter
You already set this in the constructor and cannot set it again.com.qualcomm.robotcore.hardware.VoltageSensor
Ignore this - it will be handled by the Robot classYou already set this in the constructor and cannot set it again.com.acmerobotics.roadrunner.control.PIDCoefficients
For RoadRunner - learn more at learnroadrunner.comIgnore this - it will be handled by the Robot classdouble
For RoadRunner - learn more at learnroadrunner.comcom.qualcomm.robotcore.hardware.DcMotorEx
The motor object on the left back corner of the drivebase, already instantiatedcom.qualcomm.robotcore.hardware.DcMotorEx
The motor object on the left front corner of the drivebase, already instantiateddouble
For RoadRunner - learn more at learnroadrunner.comfinal boolean
You already set this in the constructor and cannot set it again.com.qualcomm.robotcore.hardware.DcMotorEx
The motor object on the right back corner of the drivebase, already instantiatedcom.qualcomm.robotcore.hardware.DcMotorEx
The motor object on the right front corner of the drivebase, already instantiatedcom.qualcomm.robotcore.hardware.DcMotor.RunMode
Applies to all motorscom.qualcomm.robotcore.util.ElapsedTime
An ElapsedTime or MockElapsedTime object, already instantiatedcom.acmerobotics.roadrunner.control.PIDCoefficients
For RoadRunner - learn more at learnroadrunner.comboolean
Whether or not to apply acceleration control.double
For RoadRunner - learn more at learnroadrunner.comdouble
For RoadRunner - learn more at learnroadrunner.comcom.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior
Applies to all motors -
Constructor Summary
ConstructorDescriptionParameters
(boolean present, RRMecanumDrive.DriveConstants dc, AccelLimiter accelLimiter) Create a Parameters object and provide parameters that don't have default values. -
Method Summary
-
Field Details
-
present
public final boolean presentYou already set this in the constructor and cannot set it again. -
dc
You already set this in the constructor and cannot set it again. -
imu
Ignore this - it will be handled by the Robot class -
leftFrontMotor
public com.qualcomm.robotcore.hardware.DcMotorEx leftFrontMotorThe motor object on the left front corner of the drivebase, already instantiated -
rightFrontMotor
public com.qualcomm.robotcore.hardware.DcMotorEx rightFrontMotorThe motor object on the right front corner of the drivebase, already instantiated -
leftBackMotor
public com.qualcomm.robotcore.hardware.DcMotorEx leftBackMotorThe motor object on the left back corner of the drivebase, already instantiated -
rightBackMotor
public com.qualcomm.robotcore.hardware.DcMotorEx rightBackMotorThe motor object on the right back corner of the drivebase, already instantiated -
accelLimiter
You already set this in the constructor and cannot set it again. -
useAccelLimiter
public boolean useAccelLimiterWhether or not to apply acceleration control. If this is set to false, the accelLimiter parameter does not need to be populated. Defaults to true. -
stopwatch
public com.qualcomm.robotcore.util.ElapsedTime stopwatchAn ElapsedTime or MockElapsedTime object, already instantiated -
runMode
public com.qualcomm.robotcore.hardware.DcMotor.RunMode runModeApplies to all motors -
zeroPowerBehavior
public com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior zeroPowerBehaviorApplies to all motors -
TRANSLATIONAL_PID
public com.acmerobotics.roadrunner.control.PIDCoefficients TRANSLATIONAL_PIDFor RoadRunner - learn more at learnroadrunner.com -
HEADING_PID
public com.acmerobotics.roadrunner.control.PIDCoefficients HEADING_PIDFor RoadRunner - learn more at learnroadrunner.com -
LATERAL_MULTIPLIER
public double LATERAL_MULTIPLIERFor RoadRunner - learn more at learnroadrunner.com -
VX_WEIGHT
public double VX_WEIGHTFor RoadRunner - learn more at learnroadrunner.com -
VY_WEIGHT
public double VY_WEIGHTFor RoadRunner - learn more at learnroadrunner.com -
OMEGA_WEIGHT
public double OMEGA_WEIGHTFor RoadRunner - learn more at learnroadrunner.com -
batteryVoltageSensor
public com.qualcomm.robotcore.hardware.VoltageSensor batteryVoltageSensorIgnore this - it will be handled by the Robot class
-
-
Constructor Details
-
Parameters
Create a Parameters object and provide parameters that don't have default values.- Parameters:
present
- Is this subsystem installed on this robot?dc
- Use theRRMecanumDrive.DriveConstants
class included in theRRMecanumDrive
interface.accelLimiter
- The AccelLimiter object to be used for drivebase acceleration control, already instantiated and configured
-