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
/
Turret
Turret
class
Turret
(
hardwareMap
:
HardwareMap
,
motorName
:
String
=
Constants.HardwareNames.TURRET_MOTOR
,
motorRange
:
Pair
<
Double
,
Double
>
=
-3 * PI / 2 to PI / 2
)
:
HardwareComponent
Members
Constructors
Turret
Link copied to clipboard
constructor
(
hardwareMap
:
HardwareMap
,
motorName
:
String
=
Constants.HardwareNames.TURRET_MOTOR
,
motorRange
:
Pair
<
Double
,
Double
>
=
-3 * PI / 2 to PI / 2
)
Types
Mode
Link copied to clipboard
enum
Mode
:
Enum
<
Turret.Mode
>
Properties
current
Angle
Link copied to clipboard
val
currentAngle
:
Double
current
Ticks
Link copied to clipboard
val
currentTicks
:
Int
mode
Link copied to clipboard
var
mode
:
Turret.Mode
name
Link copied to clipboard
open
val
name
:
String
offset
Ticks
Link copied to clipboard
var
offsetTicks
:
Int
reached
Target
Link copied to clipboard
val
reachedTarget
:
Boolean
target
Angle
Link copied to clipboard
val
targetAngle
:
Double
Functions
auto
Track
Link copied to clipboard
fun
autoTrack
(
pose
:
Pose
,
target
:
Pose
)
goto
Angle
Link copied to clipboard
fun
gotoAngle
(
angle
:
Double
,
power
:
Double
=
0.75
)
init
Link copied to clipboard
open
override
fun
init
(
)
reset
Motor
Position
Link copied to clipboard
fun
resetMotorPosition
(
resetTicks
:
Int
=
0
)
update
Link copied to clipboard
open
fun
update
(
)