TeamCode / org.firstinspires.ftc.teamcode.movement / MecanumDrive / Motor

Motor

open class Motor

Class representing a motor used in a mecanum drive.

Types

Location

class Location

The location at which this motor is mounted on the robot, used to calculate which powers should be altered during a turn.

Vector2D

open class Vector2D

Class representing a 2x1 column vector, used for calculating what speeds to move the motors in.

Constructors

<init>

Motor(motor: DcMotor, vector: Vector2D, location: Location)

Constructs a Motor given a DcMotor, the vector in which it moves, and the location of the motor on the robot.