RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
GearRatio.hpp
1#pragma once
2
3namespace rz {
4
13struct GearRatio {
14 double driving = 1;
15 double driven = 1;
16
18 [[nodiscard]] constexpr double drivenTurnsPerDrivingTurn() const { return driving / driven; }
19};
20
21} // namespace rz
Definition DriverControl.hpp:11
A gear reduction, from the tooth counts as you would read them off the robot.
Definition GearRatio.hpp:13
double driving
Definition GearRatio.hpp:14
double driven
Definition GearRatio.hpp:15
constexpr double drivenTurnsPerDrivingTurn() const
Turns of the driven gear per turn of the driving gear.
Definition GearRatio.hpp:18