Class ArmBlank
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.blank.ArmBlank
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy23.robot.subsystems.DoubleArm
DoubleArm.Parameters
Nested classes/interfaces inherited from interface org.firstinspires.ftc.teamcode.fy23.robot.subsystems.PixelArm
PixelArm.Parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the current position of the elevator motor.double
Get the current power of the elevator motor.double
Get the current velocity of the elevator motor.int
Get the current position of the pivot motor.double
Get the current power of the pivot motor.double
Get the current velocity of the pivot motor.void
setElevatorDistance
(double distance) Set the target position of the elevator motor to a distance from the fully retracted position.void
setElevatorPower
(double power) Set the power of the elevator motor.void
setElevatorVelocity
(int velocity) Set the velocity of the elevator motor in ticks per second.void
setPivotAngle
(org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit, double angle) Set the target position of the pivot motor to an angle.void
setPivotPower
(double power) Set the power of the pivot motor.void
setPivotVelocity
(int velocity) Set the velocity of the pivot motor in ticks per second.void
update()
Called by robot.update().
-
Constructor Details
-
ArmBlank
public ArmBlank()
-
-
Method Details
-
setPivotPower
public void setPivotPower(double power) Description copied from interface:PixelArm
Set the power of the pivot motor. Important when setting an angle - this works like setPower() does on a normal motor in RUN_TO_POSITION mode. This does not actually set power anymore - this sets the velocity to the max. velocity multiplied by your requested power.- Specified by:
setPivotPower
in interfaceDoubleArm
- Specified by:
setPivotPower
in interfacePixelArm
- Parameters:
power
- from -1 to 1 just like setPower() on a normal motor
-
getPivotPower
public double getPivotPower()Description copied from interface:PixelArm
Get the current power of the pivot motor.- Specified by:
getPivotPower
in interfaceDoubleArm
- Specified by:
getPivotPower
in interfacePixelArm
-
setPivotVelocity
public void setPivotVelocity(int velocity) Description copied from interface:PixelArm
Set the velocity of the pivot motor in ticks per second.- Specified by:
setPivotVelocity
in interfaceDoubleArm
- Specified by:
setPivotVelocity
in interfacePixelArm
- Parameters:
velocity
- The velocity to set, in ticks per second
-
getPivotVelocity
public double getPivotVelocity()Description copied from interface:PixelArm
Get the current velocity of the pivot motor.- Specified by:
getPivotVelocity
in interfaceDoubleArm
- Specified by:
getPivotVelocity
in interfacePixelArm
-
getPivotPosition
public int getPivotPosition()Description copied from interface:PixelArm
Get the current position of the pivot motor.- Specified by:
getPivotPosition
in interfaceDoubleArm
- Specified by:
getPivotPosition
in interfacePixelArm
-
setElevatorDistance
public void setElevatorDistance(double distance) Description copied from interface:PixelArm
Set the target position of the elevator motor to a distance from the fully retracted position.- Specified by:
setElevatorDistance
in interfaceDoubleArm
- Specified by:
setElevatorDistance
in interfacePixelArm
- Parameters:
distance
- in millimeters
-
setElevatorPower
public void setElevatorPower(double power) Description copied from interface:PixelArm
Set the power of the elevator motor. Important when setting a distance - this works like setPower() does on a normal motor in RUN_TO_POSITION mode.- Specified by:
setElevatorPower
in interfaceDoubleArm
- Specified by:
setElevatorPower
in interfacePixelArm
- Parameters:
power
- from -1 to 1, just like setPower() on a normal motor
-
getElevatorPower
public double getElevatorPower()Description copied from interface:PixelArm
Get the current power of the elevator motor.- Specified by:
getElevatorPower
in interfaceDoubleArm
- Specified by:
getElevatorPower
in interfacePixelArm
-
setElevatorVelocity
public void setElevatorVelocity(int velocity) Description copied from interface:PixelArm
Set the velocity of the elevator motor in ticks per second.- Specified by:
setElevatorVelocity
in interfaceDoubleArm
- Specified by:
setElevatorVelocity
in interfacePixelArm
- Parameters:
velocity
- The velocity to set, in ticks per second
-
getElevatorVelocity
public double getElevatorVelocity()Description copied from interface:PixelArm
Get the current velocity of the elevator motor.- Specified by:
getElevatorVelocity
in interfaceDoubleArm
- Specified by:
getElevatorVelocity
in interfacePixelArm
-
getElevatorPosition
public int getElevatorPosition()Description copied from interface:PixelArm
Get the current position of the elevator motor.- Specified by:
getElevatorPosition
in interfaceDoubleArm
- Specified by:
getElevatorPosition
in interfacePixelArm
-
update
public void update()Description copied from interface:PixelArm
Called by robot.update(). You do not need to call this method.