okapi::AbstractMotor::GearsetRatioPair struct

A simple structure representing the full ratio between motor and wheel.

Constructors, destructors, conversion operators

GearsetRatioPair(const gearset igearset, const double iratio = 1)
A simple structure representing the full ratio between motor and wheel.
~GearsetRatioPair() defaulted

Public variables

gearset internalGearset
double ratio

Function documentation

okapi::AbstractMotor::GearsetRatioPair::GearsetRatioPair(const gearset igearset, const double iratio = 1)

A simple structure representing the full ratio between motor and wheel.

Parameters
igearset The gearset in the motor.
iratio The ratio of motor rotation to wheel rotation.

The ratio is motor rotation : wheel rotation, e.x., if one motor rotation corresponds to two wheel rotations, the ratio is 1.0/2.0.