namespace
v5
Contents
- Reference
Namespaces
- namespace literals
Classes
- class AbstractMotor
- class Controller
- class Device
- class Distance
- class Gps
- class Imu
- class Motor
- class MotorGroup
- class Optical
- class Rotation
- class Vision
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 }
- enum class DeviceType { none = 0, motor = 2, rotation = 4, imu = 6, distance = 7, radio = 8, vision = 11, adi = 12, optical = 16, gps = 20, serial = 129, undefined = 255 }
Typedefs
- using MotorUnits = MotorEncoderUnits
- using MotorGearset = MotorGears
- using MotorCart = MotorGears
- using MotorCartridge = MotorGears
- using MotorGear = MotorGears
- using IMU = Imu
Enum documentation
enum class pros:: v5:: MotorBrake
#include <pros/abstract_motor.hpp>
Enumerators | |
---|---|
coast |
Motor coasts when stopped, traditional behavior. |
brake |
Motor brakes when stopped. |
hold |
Motor actively holds position when stopped. |
invalid |
Invalid brake mode. |
enum class pros:: v5:: MotorEncoderUnits
#include <pros/abstract_motor.hpp>
Enumerators | |
---|---|
degrees |
Position is recorded as angle in degrees as a floating point number. |
deg |
Position is recorded as angle in degrees as a floating point number. |
rotations |
Position is recorded as angle in rotations as a floating point number. |
counts |
Position is recorded as raw encoder ticks as a whole number. |
invalid |
Invalid motor encoder units. |
enum class pros:: v5:: MotorGears
#include <pros/abstract_motor.hpp>
Enumerators | |
---|---|
ratio_36_to_1 |
36:1, 100 RPM, Red gear set |
red |
36:1, 100 RPM, Red gear set |
rpm_100 |
36:1, 100 RPM, Red gear set |
ratio_18_to_1 |
18:1, 200 RPM, Green gear set |
green |
18:1, 200 RPM, Green gear set |
rpm_200 |
18:1, 200 RPM, Green gear set |
ratio_6_to_1 |
6:1, 600 RPM, Blue gear set |
blue |
6:1, 600 RPM, Blue gear set |
rpm_600 |
6:1, 600 RPM, Blue gear set |
invalid |
Error return code. |
Typedef documentation
using pros:: v5:: MotorUnits = MotorEncoderUnits
#include <pros/abstract_motor.hpp>
using pros:: v5:: MotorGearset = MotorGears
#include <pros/abstract_motor.hpp>
using pros:: v5:: MotorCart = MotorGears
#include <pros/abstract_motor.hpp>
using pros:: v5:: MotorCartridge = MotorGears
#include <pros/abstract_motor.hpp>
using pros:: v5:: MotorGear = MotorGears
#include <pros/abstract_motor.hpp>