Class MergedAxis
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.gamepad2.primitives.axes.MergedAxis
- All Implemented Interfaces:
Axis
Use this to combine two axes that only run from 0 to 1 into one axis that runs from -1 to 1.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy23.gamepad2.primitives.Axis
Axis.DoubleLambda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
value()
The value of an axis depends on the implementation and its parameters.
-
Constructor Details
-
MergedAxis
- Parameters:
axis1
- Represents the negative direction (-1 to 0).axis2
- Represents the positive direction (0 to 1).
-
-
Method Details