|
YAMS
Yet Another Mechanism System
|
#include <Sprocket.hpp>
Public Member Functions | |
| Sprocket (double reductionStage) | |
| Sprocket (std::initializer_list< double > reductionStages) | |
| Sprocket (const std::vector< double > &reductionStages) | |
| Sprocket (const std::vector< std::string > &stages) | |
| Sprocket & | Times (double x) |
| Sprocket & | Div (double x) |
| double | GetInputToOutputConversionFactor () const |
| double | GetOutputToInputConversionFactor () const |
Static Public Member Functions | |
| static Sprocket | FromStages (std::initializer_list< std::string_view > stages) |
Calculates the conversion factor for a sprocket (chain/belt) stage chain.
Each stage is a ratio > 0 representing the speed reduction from input to output.
|
explicit |
Create the Sprocket with a single reduction stage.
| reductionStage | Reduction stage where the value is > 0 to indicate a reduction. |
|
explicit |
Create the Sprocket with the reduction stages given.
| reductionStages | Reduction stages where each value is > 0 to indicate a reduction. |
|
explicit |
Create the Sprocket with the reduction stages given.
| reductionStages | Reduction stages where each value is > 0 to indicate a reduction. |
|
explicit |
Create the Sprocket with the reduction stages given as "IN:OUT" strings.
| stages | List of stages in the format "IN:OUT". |
| Sprocket & yams::gearing::Sprocket::Div | ( | double | x | ) |
Divide the sprocket reduction ratio by x.
| x | Factor to divide by. |
|
static |
| double yams::gearing::Sprocket::GetInputToOutputConversionFactor | ( | ) | const |
Get the conversion factor from sprocket input to sprocket output rotations (OUT/IN).
| double yams::gearing::Sprocket::GetOutputToInputConversionFactor | ( | ) | const |
Get the conversion factor from sprocket output to sprocket input rotations (IN/OUT).
| Sprocket & yams::gearing::Sprocket::Times | ( | double | x | ) |
Multiply the sprocket reduction ratio by x.
| x | Factor to multiply by. |