|
YAMS
Yet Another Mechanism System
|
#include <MechanismGearing.hpp>

Public Member Functions | |
| MechanismGearing (double reductionRatio) | |
| MechanismGearing (const GearBox &gearBox) | |
| MechanismGearing (const GearBox &gearBox, const Sprocket &sprockets) | |
| double | GetRotorToMechanismRatio () const |
| double | GetMechanismToRotorRatio () const |
| MechanismGearing & | Div (double i) |
Static Public Attributes | |
| static const MechanismGearing | kOne |
Mechanism gearing for conversions from the motor rotor to the mechanism output.
Combines an optional GearBox and an optional Sprocket chain to produce a single rotor-to-mechanism ratio used by the motor controller configuration.
|
explicit |
Construct a MechanismGearing with a single reduction ratio.
| reductionRatio | Reduction ratio (e.g. 3.0 for 3:1, 0.5 for 1:2). |
|
explicit |
Construct a MechanismGearing with only a GearBox attached to the motor.
| gearBox | GearBox of the mechanism. |
| yams::gearing::MechanismGearing::MechanismGearing | ( | const GearBox & | gearBox, |
| const Sprocket & | sprockets | ||
| ) |
Construct a MechanismGearing with a GearBox and a downstream Sprocket chain.
| MechanismGearing & yams::gearing::MechanismGearing::Div | ( | double | i | ) |
Divide the gearbox reduction ratio by i.
| i | Divisor. |
| double yams::gearing::MechanismGearing::GetMechanismToRotorRatio | ( | ) | const |
Get the mechanism-to-rotor ratio (IN/OUT), i.e. the overall reduction.
| double yams::gearing::MechanismGearing::GetRotorToMechanismRatio | ( | ) | const |
Get the rotor-to-mechanism ratio (OUT/IN).
|
static |
1:1 MechanismGearing (no reduction).