MecanumController

class MecanumController(var rf_motor: Motor, var rb_motor: Motor, var lf_motor: Motor, var lb_motor: Motor)

Class that stores chassis motors and can be used to steer the robot

Parameters

rf_motor

Right Front Motor

rb_motor

Right Back Motor

lf_motor

Left Front Motor

lb_motor

Left Back Motor

Constructors

Link copied to clipboard
constructor(rf_motor: Motor, rb_motor: Motor, lf_motor: Motor, lb_motor: Motor)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun setVec(direction: Pose)

Set the direction that the robot is moving