|
YAMS
Yet Another Mechanism System
|
#include <GearBox.hpp>
Public Member Functions | |
| GearBox (double reductionStage) | |
| GearBox (std::initializer_list< double > reductionStages) | |
| GearBox (const std::vector< double > &reductionStages) | |
| GearBox (const std::vector< std::string > &stages) | |
| GearBox & | Times (double x) |
| GearBox & | Div (double x) |
| double | GetInputToOutputConversionFactor () const |
| double | GetOutputToInputConversionFactor () const |
Static Public Member Functions | |
| static GearBox | FromReductionStages (std::initializer_list< double > stages) |
| static GearBox | FromStages (std::initializer_list< std::string_view > stages) |
| static GearBox | FromTeeth (std::initializer_list< int > teeth) |
Calculates input-to-output conversion factors for a multi-stage gearbox.
Each stage is a ratio > 0 representing the speed reduction from input to output. For example, a 3:1 reduction is expressed as 3.0.
|
explicit |
Construct the GearBox with a single reduction stage.
| reductionStage | Reduction stage where the value is > 0 to indicate a reduction. |
|
explicit |
Construct the GearBox with the reduction stages given.
| reductionStages | Reduction stages where each value is > 0 to indicate a reduction. |
|
explicit |
Construct the GearBox with the reduction stages given.
| reductionStages | Reduction stages where each value is > 0 to indicate a reduction. |
|
explicit |
Construct the GearBox with the reduction stages given as "IN:OUT" strings.
| stages | List of stages in the format "IN:OUT", e.g. "3:1". |
| GearBox & yams::gearing::GearBox::Div | ( | double | x | ) |
Divide the gear reduction ratio by x.
| x | Factor to divide by. |
|
static |
|
static |
|
static |
| double yams::gearing::GearBox::GetInputToOutputConversionFactor | ( | ) | const |
Get the conversion factor from gearbox input to gearbox output rotations (OUT/IN).
| double yams::gearing::GearBox::GetOutputToInputConversionFactor | ( | ) | const |
Get the conversion factor from gearbox output to gearbox input rotations (IN/OUT).
| GearBox & yams::gearing::GearBox::Times | ( | double | x | ) |
Multiply the gear reduction ratio by x.
| x | Factor to multiply by. |