|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
Namespaces | |
| namespace | literals |
Enumerations | |
| enum class | StateMode { FRAME_TRANSFORMATION , CARTESIAN } |
| The mode for the OdomState calculated by Odometry. More... | |
| enum class | ControllerId { master = 0 , partner = 1 } |
| Which controller role this has. More... | |
| enum class | ControllerAnalog { leftX = 0 , leftY = 1 , rightX = 2 , rightY = 3 } |
| The analog sticks. More... | |
| enum class | ControllerDigital { L1 = 6 , L2 = 7 , R1 = 8 , R2 = 9 , up = 10 , down = 11 , left = 12 , right = 13 , X = 14 , B = 15 , Y = 16 , A = 17 } |
| Various buttons. More... | |
| enum class | OpticalSensorOutput { hue , saturation , brightness } |
| enum class | IMUAxes { z , y , x } |
Functions | |
| AbstractMotor::GearsetRatioPair | operator* (AbstractMotor::gearset gearset, double ratio) |
| constexpr QAcceleration | operator""_mps2 (long double x) |
| constexpr QAcceleration | operator""_mps2 (unsigned long long int x) |
| constexpr QAcceleration | operator""_G (long double x) |
| constexpr QAcceleration | operator""_G (unsigned long long int x) |
| constexpr QAngle | radian (1.0) |
| constexpr QAngle | operator""_rad (long double x) |
| constexpr QAngle | operator""_rad (unsigned long long int x) |
| constexpr QAngle | operator""_deg (long double x) |
| constexpr QAngle | operator""_deg (unsigned long long int x) |
| static QAngularSpeed | convertHertzToRadPerSec (QFrequency in) |
| constexpr QAngularSpeed | operator""_rpm (long double x) |
| constexpr QAngularSpeed | operator""_rpm (unsigned long long int x) |
| constexpr QForce | operator""_n (long double x) |
| constexpr QForce | operator""_n (unsigned long long int x) |
| constexpr QForce | operator""_lbf (long double x) |
| constexpr QForce | operator""_lbf (unsigned long long int x) |
| constexpr QForce | operator""_kp (long double x) |
| constexpr QForce | operator""_kp (unsigned long long int x) |
| constexpr QFrequency | Hz (1.0) |
| constexpr QFrequency | operator""_Hz (long double x) |
| constexpr QFrequency | operator""_Hz (unsigned long long int x) |
| constexpr QLength | meter (1.0) |
| constexpr QLength | operator""_mm (long double x) |
| constexpr QLength | operator""_cm (long double x) |
| constexpr QLength | operator""_m (long double x) |
| constexpr QLength | operator""_km (long double x) |
| constexpr QLength | operator""_mi (long double x) |
| constexpr QLength | operator""_yd (long double x) |
| constexpr QLength | operator""_ft (long double x) |
| constexpr QLength | operator""_in (long double x) |
| constexpr QLength | operator""_tile (long double x) |
| constexpr QLength | operator""_mm (unsigned long long int x) |
| constexpr QLength | operator""_cm (unsigned long long int x) |
| constexpr QLength | operator""_m (unsigned long long int x) |
| constexpr QLength | operator""_km (unsigned long long int x) |
| constexpr QLength | operator""_mi (unsigned long long int x) |
| constexpr QLength | operator""_yd (unsigned long long int x) |
| constexpr QLength | operator""_ft (unsigned long long int x) |
| constexpr QLength | operator""_in (unsigned long long int x) |
| constexpr QLength | operator""_tile (unsigned long long int x) |
| constexpr QMass | kg (1.0) |
| constexpr QMass | operator""_kg (long double x) |
| constexpr QMass | operator""_g (long double x) |
| constexpr QMass | operator""_t (long double x) |
| constexpr QMass | operator""_oz (long double x) |
| constexpr QMass | operator""_lb (long double x) |
| constexpr QMass | operator""_st (long double x) |
| constexpr QMass | operator""_kg (unsigned long long int x) |
| constexpr QMass | operator""_g (unsigned long long int x) |
| constexpr QMass | operator""_t (unsigned long long int x) |
| constexpr QMass | operator""_oz (unsigned long long int x) |
| constexpr QMass | operator""_lb (unsigned long long int x) |
| constexpr QMass | operator""_st (unsigned long long int x) |
| constexpr QPressure | pascal (1.0) |
| constexpr QPressure | operator""_Pa (long double x) |
| constexpr QPressure | operator""_Pa (unsigned long long int x) |
| constexpr QPressure | operator""_bar (long double x) |
| constexpr QPressure | operator""_bar (unsigned long long int x) |
| constexpr QPressure | operator""_psi (long double x) |
| constexpr QPressure | operator""_psi (unsigned long long int x) |
| constexpr QSpeed | operator""_mps (long double x) |
| constexpr QSpeed | operator""_miph (long double x) |
| constexpr QSpeed | operator""_kmph (long double x) |
| constexpr QSpeed | operator""_mps (unsigned long long int x) |
| constexpr QSpeed | operator""_miph (unsigned long long int x) |
| constexpr QSpeed | operator""_kmph (unsigned long long int x) |
| constexpr QTime | second (1.0) |
| constexpr QTime | operator""_s (long double x) |
| constexpr QTime | operator""_ms (long double x) |
| constexpr QTime | operator""_min (long double x) |
| constexpr QTime | operator""_h (long double x) |
| constexpr QTime | operator""_day (long double x) |
| constexpr QTime | operator""_s (unsigned long long int x) |
| constexpr QTime | operator""_ms (unsigned long long int x) |
| constexpr QTime | operator""_min (unsigned long long int x) |
| constexpr QTime | operator""_h (unsigned long long int x) |
| constexpr QTime | operator""_day (unsigned long long int x) |
| constexpr QTorque | operator""_nM (long double x) |
| constexpr QTorque | operator""_nM (unsigned long long int x) |
| constexpr QTorque | operator""_inLb (long double x) |
| constexpr QTorque | operator""_inLb (unsigned long long int x) |
| constexpr QTorque | operator""_ftLb (long double x) |
| constexpr QTorque | operator""_ftLb (unsigned long long int x) |
| constexpr Number | number (1.0) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | operator+ (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | operator- (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M1 , typename L1 , typename T1 , typename A1 , typename M2 , typename L2 , typename T2 , typename A2 > | |
| constexpr RQuantity< std::ratio_add< M1, M2 >, std::ratio_add< L1, L2 >, std::ratio_add< T1, T2 >, std::ratio_add< A1, A2 > > | operator* (const RQuantity< M1, L1, T1, A1 > &lhs, const RQuantity< M2, L2, T2, A2 > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | operator* (const double &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | operator* (const RQuantity< M, L, T, A > &lhs, const double &rhs) |
| template<typename M1 , typename L1 , typename T1 , typename A1 , typename M2 , typename L2 , typename T2 , typename A2 > | |
| constexpr RQuantity< std::ratio_subtract< M1, M2 >, std::ratio_subtract< L1, L2 >, std::ratio_subtract< T1, T2 >, std::ratio_subtract< A1, A2 > > | operator/ (const RQuantity< M1, L1, T1, A1 > &lhs, const RQuantity< M2, L2, T2, A2 > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_subtract< std::ratio< 0 >, M >, std::ratio_subtract< std::ratio< 0 >, L >, std::ratio_subtract< std::ratio< 0 >, T >, std::ratio_subtract< std::ratio< 0 >, A > > | operator/ (const double &x, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | operator/ (const RQuantity< M, L, T, A > &rhs, const double &x) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr bool | operator== (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr bool | operator!= (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr bool | operator<= (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr bool | operator>= (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr bool | operator< (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr bool | operator> (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | abs (const RQuantity< M, L, T, A > &rhs) |
| template<typename R , typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_multiply< M, R >, std::ratio_multiply< L, R >, std::ratio_multiply< T, R >, std::ratio_multiply< A, R > > | pow (const RQuantity< M, L, T, A > &lhs) |
| template<int R, typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_multiply< M, std::ratio< R > >, std::ratio_multiply< L, std::ratio< R > >, std::ratio_multiply< T, std::ratio< R > >, std::ratio_multiply< A, std::ratio< R > > > | pow (const RQuantity< M, L, T, A > &lhs) |
| template<int R, typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_divide< M, std::ratio< R > >, std::ratio_divide< L, std::ratio< R > >, std::ratio_divide< T, std::ratio< R > >, std::ratio_divide< A, std::ratio< R > > > | root (const RQuantity< M, L, T, A > &lhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_divide< M, std::ratio< 2 > >, std::ratio_divide< L, std::ratio< 2 > >, std::ratio_divide< T, std::ratio< 2 > >, std::ratio_divide< A, std::ratio< 2 > > > | sqrt (const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_divide< M, std::ratio< 3 > >, std::ratio_divide< L, std::ratio< 3 > >, std::ratio_divide< T, std::ratio< 3 > >, std::ratio_divide< A, std::ratio< 3 > > > | cbrt (const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_multiply< M, std::ratio< 2 > >, std::ratio_multiply< L, std::ratio< 2 > >, std::ratio_multiply< T, std::ratio< 2 > >, std::ratio_multiply< A, std::ratio< 2 > > > | square (const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio_multiply< M, std::ratio< 3 > >, std::ratio_multiply< L, std::ratio< 3 > >, std::ratio_multiply< T, std::ratio< 3 > >, std::ratio_multiply< A, std::ratio< 3 > > > | cube (const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | hypot (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | mod (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M1 , typename L1 , typename T1 , typename A1 , typename M2 , typename L2 , typename T2 , typename A2 > | |
| constexpr RQuantity< M1, L1, T1, A1 > | copysign (const RQuantity< M1, L1, T1, A1 > &lhs, const RQuantity< M2, L2, T2, A2 > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | ceil (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | floor (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | trunc (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< M, L, T, A > | round (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| constexpr Number | sin (const RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > &rhs) |
| constexpr Number | cos (const RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > &rhs) |
| constexpr Number | tan (const RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > &rhs) |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | asin (const Number &rhs) |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | acos (const Number &rhs) |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | atan (const Number &rhs) |
| constexpr Number | sinh (const RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > &rhs) |
| constexpr Number | cosh (const RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > &rhs) |
| constexpr Number | tanh (const RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > &rhs) |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | asinh (const Number &rhs) |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | acosh (const Number &rhs) |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | atanh (const Number &rhs) |
| template<typename M , typename L , typename T , typename A > | |
| constexpr RQuantity< std::ratio< 0 >, std::ratio< 0 >, std::ratio< 0 >, std::ratio< 1 > > | atan2 (const RQuantity< M, L, T, A > &lhs, const RQuantity< M, L, T, A > &rhs) |
| template<class QType > | |
| std::string | getShortUnitName (QType q) |
| Returns a short name for a unit. | |
| constexpr double | ipow (const double base, const int expo) |
| Integer power function. | |
| constexpr double | cutRange (const double value, const double min, const double max) |
| Cuts out a range from the number. | |
| constexpr double | deadband (const double value, const double min, const double max) |
| Deadbands a range of the number. | |
| constexpr double | remapRange (const double value, const double oldMin, const double oldMax, const double newMin, const double newMax) |
Remap a value in the range [oldMin, oldMax] to the range [newMin, newMax]. | |
| template<typename E > | |
| constexpr auto | toUnderlyingType (const E e) noexcept |
| Converts an enum to its value type. | |
| constexpr auto | boolToSign (const bool b) noexcept |
| Converts a bool to a sign. | |
| constexpr long | modulus (const long lhs, const long rhs) noexcept |
Computes lhs mod rhs using Euclidean division. | |
| constexpr std::int32_t | gearsetToTPR (const AbstractMotor::gearset igearset) noexcept |
| Converts a gearset to its TPR. | |
| constexpr std::int8_t | transformADIPort (const std::int8_t port) |
| Maps ADI port numbers/chars to numbers: | |
Variables | |
| constexpr QAcceleration | mps2 = meter / (second * second) |
| constexpr QAcceleration | G = 9.80665 * mps2 |
| constexpr QAngle | degree = static_cast<double>(2_pi / 360.0) * radian |
| constexpr QAngularSpeed | radps = radian / second |
| constexpr QAngularSpeed | rpm = (360 * degree) / minute |
| constexpr QAngularSpeed | cps = (0.01 * degree) / second |
| constexpr QArea | kilometer2 = kilometer * kilometer |
| constexpr QArea | meter2 = meter * meter |
| constexpr QArea | decimeter2 = decimeter * decimeter |
| constexpr QArea | centimeter2 = centimeter * centimeter |
| constexpr QArea | millimeter2 = millimeter * millimeter |
| constexpr QArea | inch2 = inch * inch |
| constexpr QArea | foot2 = foot * foot |
| constexpr QArea | mile2 = mile * mile |
| constexpr QForce | newton = (kg * meter) / (second * second) |
| constexpr QForce | poundforce = pound * G |
| constexpr QForce | kilopond = kg * G |
| constexpr QLength | decimeter = meter / 10 |
| constexpr QLength | centimeter = meter / 100 |
| constexpr QLength | millimeter = meter / 1000 |
| constexpr QLength | kilometer = 1000 * meter |
| constexpr QLength | inch = 2.54 * centimeter |
| constexpr QLength | foot = 12 * inch |
| constexpr QLength | yard = 3 * foot |
| constexpr QLength | mile = 5280 * foot |
| constexpr QLength | tile = 24 * inch |
| constexpr QMass | gramme = 0.001 * kg |
| constexpr QMass | tonne = 1000 * kg |
| constexpr QMass | ounce = 0.028349523125 * kg |
| constexpr QMass | pound = 16 * ounce |
| constexpr QMass | stone = 14 * pound |
| constexpr QPressure | bar = 100000 * pascal |
| constexpr QPressure | psi = pound * G / inch2 |
| constexpr QSpeed | mps = meter / second |
| constexpr QSpeed | miph = mile / hour |
| constexpr QSpeed | kmph = kilometer / hour |
| constexpr QTime | millisecond = second / 1000 |
| constexpr QTime | minute = 60 * second |
| constexpr QTime | hour = 60 * minute |
| constexpr QTime | day = 24 * hour |
| constexpr QTorque | newtonMeter = newton * meter |
| constexpr QTorque | footPound = 1.355817948 * newtonMeter |
| constexpr QTorque | inchPound = 0.083333333 * footPound |
| constexpr QVolume | kilometer3 = kilometer2 * kilometer |
| constexpr QVolume | meter3 = meter2 * meter |
| constexpr QVolume | decimeter3 = decimeter2 * decimeter |
| constexpr QVolume | centimeter3 = centimeter2 * centimeter |
| constexpr QVolume | millimeter3 = millimeter2 * millimeter |
| constexpr QVolume | inch3 = inch2 * inch |
| constexpr QVolume | foot3 = foot2 * foot |
| constexpr QVolume | mile3 = mile2 * mile |
| constexpr QVolume | litre = decimeter3 |
| std::shared_ptr< Logger > | defaultLogger |
| static DefaultLoggerInitializer | defaultLoggerInitializer |
| static constexpr double | inchToMM = 25.4 |
| Converts inches to millimeters. | |
| static constexpr double | mmToInch = 0.0393700787 |
| Converts millimeters to inches. | |
| static constexpr double | degreeToRadian = 0.01745329252 |
| Converts degrees to radians. | |
| static constexpr double | radianToDegree = 57.2957795 |
| Converts radians to degrees. | |
| static constexpr double | imeTorqueTPR = 627.2 |
| The ticks per rotation of the 393 IME with torque gearing. | |
| static constexpr std::int32_t | imeSpeedTPR = 392 |
| The ticks per rotation of the 393 IME with speed gearing. | |
| static constexpr double | imeTurboTPR = 261.333 |
| The ticks per rotation of the 393 IME with turbo gearing. | |
| static constexpr double | ime269TPR = 240.448 |
| The ticks per rotation of the 269 IME. | |
| static constexpr std::int32_t | imev5RedTPR = 1800 |
| The ticks per rotation of the V5 motor with a red gearset. | |
| static constexpr std::int32_t | imev5GreenTPR = 900 |
| The ticks per rotation of the V5 motor with a green gearset. | |
| static constexpr std::int32_t | imev5BlueTPR = 300 |
| The ticks per rotation of the V5 motor with a blue gearset. | |
| static constexpr std::int32_t | quadEncoderTPR = 360 |
| The ticks per rotation of the red quadrature encoders. | |
| static constexpr double | pi = 3.1415926535897932 |
| The value of pi. | |
| static constexpr double | pi2 = 1.5707963267948966 |
| The value of pi divided by 2. | |
| static constexpr double | gravity = 9.80665 |
| The conventional value of gravity of Earth. | |
| static constexpr auto | OKAPI_PROS_ERR = INT32_MAX |
| Same as PROS_ERR. | |
| static constexpr auto | OKAPI_PROS_ERR_F = INFINITY |
| Same as PROS_ERR_F. | |
| static constexpr double | v5MotorMaxVoltage = 12000 |
| The maximum voltage that can be sent to V5 motors. | |
| static constexpr std::int8_t | motorUpdateRate = 10 |
| The polling frequency of V5 motors in milliseconds. | |
| static constexpr std::int8_t | adiUpdateRate = 10 |
| The polling frequency of the ADI ports in milliseconds. | |
|
strong |
The analog sticks.
| Enumerator | |
|---|---|
| leftX | leftX |
| leftY | leftY |
| rightX | rightX |
| rightY | rightY |
Definition at line 22 of file controllerUtil.hpp.
|
strong |
Various buttons.
| Enumerator | |
|---|---|
| L1 | L1. |
| L2 | L2. |
| R1 | R1. |
| R2 | R2. |
| up | up |
| down | down |
| left | left |
| right | right |
| X | X. |
| B | B. |
| Y | Y. |
| A | A. |
Definition at line 32 of file controllerUtil.hpp.
|
strong |
Which controller role this has.
| Enumerator | |
|---|---|
| master | master |
| partner | partner |
Definition at line 14 of file controllerUtil.hpp.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| hue | The color. |
| saturation | The color's intensity relative to its brightness. |
| brightness | The amount of light. |
Definition at line 14 of file opticalSensor.hpp.
|
strong |
The mode for the OdomState calculated by Odometry.
| Enumerator | |
|---|---|
| FRAME_TRANSFORMATION | +x is forward, +y is right, 0 degrees is along +x |
| CARTESIAN | +x is right, +y is forward, 0 degrees is along +y |
Definition at line 12 of file stateMode.hpp.
|
constexpr |
Definition at line 195 of file RQuantity.hpp.
|
constexpr |
Definition at line 357 of file RQuantity.hpp.
|
constexpr |
Definition at line 390 of file RQuantity.hpp.
|
constexpr |
Definition at line 351 of file RQuantity.hpp.
|
constexpr |
Definition at line 384 of file RQuantity.hpp.
|
constexpr |
Definition at line 363 of file RQuantity.hpp.
|
constexpr |
Definition at line 403 of file RQuantity.hpp.
|
constexpr |
Definition at line 396 of file RQuantity.hpp.
|
constexprnoexcept |
Converts a bool to a sign.
| b | The bool. |
1 and false corresponds to -1. Definition at line 198 of file mathUtil.hpp.
|
constexpr |
Definition at line 252 of file RQuantity.hpp.
|
constexpr |
Definition at line 309 of file RQuantity.hpp.
|
static |
Definition at line 26 of file QAngularSpeed.hpp.
|
constexpr |
Definition at line 303 of file RQuantity.hpp.
|
constexpr |
Definition at line 341 of file RQuantity.hpp.
|
constexpr |
Definition at line 374 of file RQuantity.hpp.
|
constexpr |
Definition at line 276 of file RQuantity.hpp.
|
constexpr |
Cuts out a range from the number.
The new range of the input number will be (-inf, min]U[max, +inf). If value sits equally between min and max, max will be returned.
| value | The number to bound. |
| min | The lower bound of range. |
| max | The upper bound of range. |
Definition at line 139 of file mathUtil.hpp.
|
constexpr |
Deadbands a range of the number.
Returns the input value, or 0 if it is in the range [min, max].
| value | The number to deadband. |
| min | The lower bound of deadband. |
| max | The upper bound of deadband. |
0 if it is in the range [min, max]. Definition at line 160 of file mathUtil.hpp.
|
constexpr |
Definition at line 315 of file RQuantity.hpp.
|
constexprnoexcept |
Converts a gearset to its TPR.
| igearset | The gearset. |
Definition at line 220 of file mathUtil.hpp.
| std::string okapi::getShortUnitName | ( | QType | q | ) |
Returns a short name for a unit.
For example: str(1_ft) will return "ft", so will 1 * foot or 0.3048_m. Throws std::domain_error when q is a unit not defined in this function.
| q | Your unit. Currently only QLength and QAngle are supported. |
Definition at line 20 of file RQuantityName.hpp.
|
constexpr |
Definition at line 284 of file RQuantity.hpp.
|
constexpr |
|
constexpr |
Integer power function.
Computes base^expo.
| base | The base. |
| expo | The exponent. |
base^expo. Definition at line 122 of file mathUtil.hpp.
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 290 of file RQuantity.hpp.
|
constexprnoexcept |
Computes lhs mod rhs using Euclidean division.
C's % symbol computes the remainder, not modulus.
| lhs | The left-hand side. |
| rhs | The right-hand side. |
lhs mod rhs. Definition at line 210 of file mathUtil.hpp.
|
constexpr |
|
constexpr |
Definition at line 171 of file RQuantity.hpp.
| AbstractMotor::GearsetRatioPair okapi::operator* | ( | AbstractMotor::gearset | gearset, |
| double | ratio | ||
| ) |
|
constexpr |
Definition at line 123 of file RQuantity.hpp.
|
constexpr |
Definition at line 127 of file RQuantity.hpp.
|
constexpr |
Definition at line 116 of file RQuantity.hpp.
|
constexpr |
Definition at line 95 of file RQuantity.hpp.
|
constexpr |
Definition at line 100 of file RQuantity.hpp.
|
constexpr |
Definition at line 153 of file RQuantity.hpp.
|
constexpr |
Definition at line 160 of file RQuantity.hpp.
|
constexpr |
Definition at line 142 of file RQuantity.hpp.
|
constexpr |
Definition at line 183 of file RQuantity.hpp.
|
constexpr |
Definition at line 175 of file RQuantity.hpp.
|
constexpr |
Definition at line 167 of file RQuantity.hpp.
|
constexpr |
Definition at line 187 of file RQuantity.hpp.
|
constexpr |
Definition at line 179 of file RQuantity.hpp.
|
constexpr |
|
constexpr |
Definition at line 204 of file RQuantity.hpp.
|
constexpr |
Definition at line 216 of file RQuantity.hpp.
|
constexpr |
|
constexpr |
Remap a value in the range [oldMin, oldMax] to the range [newMin, newMax].
| value | The value in the old range. |
| oldMin | The old range lower bound. |
| oldMax | The old range upper bound. |
| newMin | The new range lower bound. |
| newMax | The new range upper bound. |
[newMin, newMax]. Definition at line 174 of file mathUtil.hpp.
|
constexpr |
Definition at line 228 of file RQuantity.hpp.
|
constexpr |
Definition at line 327 of file RQuantity.hpp.
|
constexpr |
|
constexpr |
Definition at line 336 of file RQuantity.hpp.
|
constexpr |
Definition at line 369 of file RQuantity.hpp.
|
constexpr |
Definition at line 240 of file RQuantity.hpp.
|
constexpr |
Definition at line 264 of file RQuantity.hpp.
|
constexpr |
Definition at line 346 of file RQuantity.hpp.
|
constexpr |
Definition at line 379 of file RQuantity.hpp.
|
constexprnoexcept |
Converts an enum to its value type.
| e | The enum value. |
Definition at line 188 of file mathUtil.hpp.
|
constexpr |
Maps ADI port numbers/chars to numbers:
| port | The ADI port number or char. |
Definition at line 246 of file mathUtil.hpp.
|
constexpr |
Definition at line 321 of file RQuantity.hpp.
|
staticconstexpr |
The polling frequency of the ADI ports in milliseconds.
Definition at line 113 of file mathUtil.hpp.
|
constexpr |
Definition at line 21 of file QPressure.hpp.
|
constexpr |
Definition at line 19 of file QLength.hpp.
|
constexpr |
|
constexpr |
Definition at line 22 of file QVolume.hpp.
Definition at line 22 of file QAngularSpeed.hpp.
|
constexpr |
Definition at line 18 of file QLength.hpp.
|
constexpr |
Definition at line 21 of file QVolume.hpp.
|
extern |
|
static |
Definition at line 191 of file logging.hpp.
|
constexpr |
Definition at line 19 of file QAngle.hpp.
|
staticconstexpr |
Converts degrees to radians.
Definition at line 28 of file mathUtil.hpp.
|
constexpr |
Definition at line 23 of file QLength.hpp.
Definition at line 25 of file QVolume.hpp.
|
constexpr |
Definition at line 20 of file QTorque.hpp.
|
constexpr |
Definition at line 20 of file QAcceleration.hpp.
|
staticconstexpr |
The conventional value of gravity of Earth.
Definition at line 88 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the 269 IME.
Definition at line 53 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the 393 IME with speed gearing.
Definition at line 43 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the 393 IME with torque gearing.
Definition at line 38 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the 393 IME with turbo gearing.
Definition at line 48 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the V5 motor with a blue gearset.
Definition at line 68 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the V5 motor with a green gearset.
Definition at line 63 of file mathUtil.hpp.
|
staticconstexpr |
The ticks per rotation of the V5 motor with a red gearset.
Definition at line 58 of file mathUtil.hpp.
|
constexpr |
Definition at line 22 of file QLength.hpp.
Definition at line 24 of file QVolume.hpp.
|
constexpr |
Definition at line 21 of file QTorque.hpp.
|
staticconstexpr |
Converts inches to millimeters.
Definition at line 18 of file mathUtil.hpp.
|
constexpr |
Definition at line 21 of file QLength.hpp.
|
constexpr |
Definition at line 19 of file QVolume.hpp.
Definition at line 21 of file QForce.hpp.
Definition at line 21 of file QSpeed.hpp.
|
constexpr |
Definition at line 27 of file QVolume.hpp.
Definition at line 20 of file QVolume.hpp.
|
constexpr |
Definition at line 25 of file QLength.hpp.
Definition at line 26 of file QVolume.hpp.
|
constexpr |
Definition at line 20 of file QLength.hpp.
|
constexpr |
|
constexpr |
Definition at line 23 of file QVolume.hpp.
|
constexpr |
Definition at line 20 of file QSpeed.hpp.
|
staticconstexpr |
Converts millimeters to inches.
Definition at line 23 of file mathUtil.hpp.
|
staticconstexpr |
The polling frequency of V5 motors in milliseconds.
Definition at line 108 of file mathUtil.hpp.
Definition at line 19 of file QSpeed.hpp.
Definition at line 19 of file QAcceleration.hpp.
Definition at line 19 of file QForce.hpp.
Definition at line 19 of file QTorque.hpp.
|
staticconstexpr |
Same as PROS_ERR.
Definition at line 93 of file mathUtil.hpp.
|
staticconstexpr |
Same as PROS_ERR_F.
Definition at line 98 of file mathUtil.hpp.
|
constexpr |
|
staticconstexpr |
The value of pi.
Definition at line 78 of file mathUtil.hpp.
|
staticconstexpr |
The value of pi divided by 2.
Definition at line 83 of file mathUtil.hpp.
Definition at line 20 of file QForce.hpp.
Definition at line 22 of file QPressure.hpp.
|
staticconstexpr |
The ticks per rotation of the red quadrature encoders.
Definition at line 73 of file mathUtil.hpp.
|
staticconstexpr |
Converts radians to degrees.
Definition at line 33 of file mathUtil.hpp.
Definition at line 20 of file QAngularSpeed.hpp.
Definition at line 21 of file QAngularSpeed.hpp.
|
constexpr |
Definition at line 26 of file QLength.hpp.
|
staticconstexpr |
The maximum voltage that can be sent to V5 motors.
Definition at line 103 of file mathUtil.hpp.
|
constexpr |
Definition at line 24 of file QLength.hpp.