file
abstract_motor.hppContents
- Reference
Contains prototypes for AbstractMotor, the abstract base class of both motors and motor groups. 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:/
Namespaces
Classes
- class pros::v5::AbstractMotor
Enums
- enum class MotorBrake { coast = 0, brake = 1, hold = 2, invalid = INT32_MAX }
- enum class MotorEncoderUnits { degrees = 0, deg = 0, rotations = 1, counts = 2, invalid = INT32_MAX }
- 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 }
Typedefs
- using MotorUnits = MotorEncoderUnits
- using MotorGearset = MotorGears
- using MotorCart = MotorGears
- using MotorCartridge = MotorGears
- using MotorGear = MotorGears