Class MixedDrive
java.lang.Object
org.chsrobotics.lib.drive.differential.MixedDrive
- All Implemented Interfaces:
DifferentialDriveMode
DifferentialDriveMode composed of any number of DifferentialDriveModes, with configurable
influences over the total value.
-
Constructor Summary
ConstructorsConstructorDescriptionMixedDrive(Map<DifferentialDriveMode, Double> driveModes) Constructs a MixedDrive. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Calculate the drive output using the current joystick inputs.
-
Constructor Details
-
MixedDrive
Constructs a MixedDrive.- Parameters:
driveModes- Map of drive modes to the influence they should carry in the total. Influences must add to 1.
-
-
Method Details
-
execute
Calculate the drive output using the current joystick inputs.- Specified by:
executein interfaceDifferentialDriveMode- Returns:
- The input, mapped to left and right side inputs.
-