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