Pioneer Robotics Documentation
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
Pioneer Robotics Documentation
Pioneer Robotics Documentation
/
pioneer.hardware.spindexer
/
Spindexer
Spindexer
class
Spindexer
(
hardwareMap
:
HardwareMap
,
motorName
:
String
=
Constants.HardwareNames.SPINDEXER_MOTOR
,
intakeSensorName
:
String
=
Constants.HardwareNames.INTAKE_SENSOR
)
:
HardwareComponent
Members
Constructors
Spindexer
Link copied to clipboard
constructor
(
hardwareMap
:
HardwareMap
,
motorName
:
String
=
Constants.HardwareNames.SPINDEXER_MOTOR
,
intakeSensorName
:
String
=
Constants.HardwareNames.INTAKE_SENSOR
)
Properties
artifacts
Link copied to clipboard
val
artifacts
:
Array
<
Artifact
?
>
count
Link copied to clipboard
val
count
:
Int
current
Motor
Ticks
Link copied to clipboard
val
currentMotorTicks
:
Int
error
Ticks
Link copied to clipboard
val
errorTicks
:
Int
is
Empty
Link copied to clipboard
val
isEmpty
:
Boolean
is
Full
Link copied to clipboard
val
isFull
:
Boolean
is
Manual
Override
Link copied to clipboard
val
isManualOverride
:
Boolean
name
Link copied to clipboard
open
val
name
:
String
reached
Target
Link copied to clipboard
val
reachedTarget
:
Boolean
target
Motor
Ticks
Link copied to clipboard
val
targetMotorTicks
:
Int
Functions
init
Link copied to clipboard
open
override
fun
init
(
)
move
Manual
Link copied to clipboard
fun
moveManual
(
power
:
Double
)
move
To
Index
Link copied to clipboard
fun
moveToIndex
(
index
:
Int
,
direction
:
Int
=
0
)
move
To
Next
Open
Intake
Link copied to clipboard
fun
moveToNextOpenIntake
(
)
:
Boolean
ready
Outtake
Link copied to clipboard
fun
readyOuttake
(
motif
:
Motif
?
)
reset
Link copied to clipboard
fun
reset
(
)
reset
Motor
Position
Link copied to clipboard
fun
resetMotorPosition
(
ticks
:
Int
)
set
Artifacts
Link copied to clipboard
fun
setArtifacts
(
vararg
values
:
Artifact
?
)
shoot
Next
Link copied to clipboard
fun
shootNext
(
)
update
Link copied to clipboard
open
override
fun
update
(
)