TeamCode / org.firstinspires.ftc.teamcode.movement

Package org.firstinspires.ftc.teamcode.movement

Types

DriveMotors

interface DriveMotors

Public interface representing the set of methods every single drive system is guaranteed to implement. For example, both a regular two wheel drive and a mecanum drive implement these same methods. This makes it useful for creating op modes that work for both systems.

Throughout DriveMotors and its subclasses, you will find methods referring to two similar yet distinct concepts: power and speed. Power refers to driving a motor by sending a given amount of power to it. Speed refers to intelligently controlling a motor by constantly making adjustments to power so that the motor moves in a consistent manner. Power does not require an encoder; speed does.

You do not construct DriveMotors directly; instead, you use one of its subclasses.

ElevatorExtake

class ElevatorExtake : LinearMotion, Extake

Extake comprised of an elevator that extends and retracts a rotatable bin.

ElevatorIntake

class ElevatorIntake : LinearMotion, Intake

Intake comprised of an elevator that extends and retracts a rotatable bin and roller.

Extake

interface Extake

Interface representing the set of methods every extake is guaranteed to implement. It is currently empty.

Intake

interface Intake

Interface representing the set of methods every intake is guaranteed to implement. It is currently empty.

LinearMotion

open class LinearMotion

A linear motion system driven by a DcMotor.

MecanumDrive

open class MecanumDrive : DriveMotors

Class representing four DcMotors that comprise a Mecanum drive; in other words, the drive we're using on our robot.

TwoWheelDrive

open class TwoWheelDrive : DriveMotors

Class representing a simple, run-of-the-mill two wheel drive. We used to use this; now we are not.

This was one of the earliest classes made this year; I apologize in advance for the poor coding in this class.