Package edu.wpi.first.wpilibj2.command
Interface MecanumControllerCommand.MecanumVoltagesConsumer
- Enclosing class:
- MecanumControllerCommand
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A consumer to represent an operation on the voltages of a mecanum drive.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(double frontLeftVoltage, double frontRightVoltage, double rearLeftVoltage, double rearRightVoltage) Accepts the voltages to perform some operation with them.
-
Method Details
-
accept
void accept(double frontLeftVoltage, double frontRightVoltage, double rearLeftVoltage, double rearRightVoltage) Accepts the voltages to perform some operation with them.- Parameters:
frontLeftVoltage
- The voltage of the front left motor.frontRightVoltage
- The voltage of the front right motor.rearLeftVoltage
- The voltage of the rear left motor.rearRightVoltage
- The voltage of the rear left motor.
-