![]() |
RaidZeroLib
Coroutine robot framework for VEX V5
|
A gear reduction, from the tooth counts as you would read them off the robot. More...
#include <GearRatio.hpp>
Public Member Functions | |
| constexpr double | drivenTurnsPerDrivingTurn () const |
| Turns of the driven gear per turn of the driving gear. | |
Public Attributes | |
| double | driving = 1 |
| double | driven = 1 |
A gear reduction, from the tooth counts as you would read them off the robot.
driving is the gear on the shaft that is turned (the motor's or the encoder's side); driven is the gear it turns. Name the fields when constructing it, so the direction is never in doubt:
rz::GearRatio{.driving = 36, .driven = 60} // the driven shaft turns 0.6 times per turn of the driving one
|
inlinenodiscardconstexpr |
Turns of the driven gear per turn of the driving gear.
| double rz::GearRatio::driven = 1 |
| double rz::GearRatio::driving = 1 |