public class DriveSpinControlLayout extends java.lang.Object implements ControlLayout
DriveSpinControlLayout
is a ControlLayout
that represents the 'default'
control layout for FTC robots. The y-axis of the left thumbstick is responsible for
forward/backward movement, and the x-axis of the right thumbstick is responsible for the
clockwise/counter-clockwise spin of the robot.Constructor and Description |
---|
DriveSpinControlLayout() |
Modifier and Type | Method and Description |
---|---|
double |
getClockwisePower(Joystick joy)
Gets the clockwise power that should be sent to the robot based on the current
state of the given joystick.
|
double |
getForwardPower(Joystick joy)
Gets the forward power that should be sent to the robot based on the current
state of the given joystick.
|
public double getForwardPower(Joystick joy)
ControlLayout
getForwardPower
in interface ControlLayout
joy
- the joystick to use for power calculations.public double getClockwisePower(Joystick joy)
ControlLayout
getClockwisePower
in interface ControlLayout
joy
- the joystick to use for power calculations.