pros/abstract_motor.hpp file

Contains prototypes for AbstractMotor, the abstract base class of both motors and motor groups.

Contents

Abstract motors cannot be directly constructed, but you can use motors and motor groups as abstract motors.

This file should not be modified by users, since it gets replaced whenever a kernel upgrade occurs.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Namespaces

namespace pros
LLEMU Conditional Include
namespace pros::v5 inline

Classes

class pros::v5::AbstractMotor

Enums

enum class MotorBrake { coast = 0, brake = 1, hold = 2, invalid = INT32_MAX }
Indicates the current 'brake mode' of a motor.
enum class MotorEncoderUnits { degrees = 0, deg = 0, rotations = 1, counts = 2, invalid = INT32_MAX }
Indicates the units used by the motor encoders.
enum class MotorGears { ratio_36_to_1 = 0, red = ratio_36_to_1, rpm_100 = ratio_36_to_1, ratio_18_to_1 = 1, green = ratio_18_to_1, rpm_200 = ratio_18_to_1, ratio_6_to_1 = 2, blue = ratio_6_to_1, rpm_600 = ratio_6_to_1, invalid = INT32_MAX }
enum class MotorType { v5 = 0, exp = 1, invalid = INT32_MAX }
Indicates the type of a motor.

Typedefs

using MotorUnits = MotorEncoderUnits
using MotorGearset = MotorGears
using MotorCart = MotorGears
using MotorCartridge = MotorGears
using MotorGear = MotorGears