toggle menu
BunyipsLib
v6.0.0-master-33a554fa
BunyipsLib
switch theme
search in API
BunyipsLib
/
au.edu.sa.mbhs.studentrobotics.bunyipslib.localization
/
MecanumLocalizer
Mecanum
Localizer
open
class
MecanumLocalizer
:
Localizer
Mecanum drivebase localizer that uses four encoders and an IMU to localize the robot.
Source
Since
6.0.0
Members
Constructors
Mecanum
Localizer
Link copied to clipboard
constructor
(
@
NonNull
driveModel
:
DriveModel
,
@
Nullable
leftFront
:
DcMotor
,
@
Nullable
leftBack
:
DcMotor
,
@
Nullable
rightBack
:
DcMotor
,
@
Nullable
rightFront
:
DcMotor
,
@
Nullable
imu
:
IMU
)
Create a new MecanumLocalizer that will run on four Mecanum drive motors and an IMU.
Properties
left
Back
Link copied to clipboard
val
leftBack
:
Encoder
The left back encoder.
left
Front
Link copied to clipboard
val
leftFront
:
Encoder
The left front encoder.
right
Back
Link copied to clipboard
val
rightBack
:
Encoder
The right back encoder.
right
Front
Link copied to clipboard
val
rightFront
:
Encoder
The right front encoder.
Functions
update
Link copied to clipboard
@
NonNull
open
fun
update
(
)
:
Twist2dDual
<
Time
>
Perform one iteration of localizer delta updates.