Class MotorConstants
Defined in File motor_constants.hpp
Inheritance Relationships
Derived Type
public tap::motor::M3508Constants
(Class M3508Constants)
Class Documentation
-
class MotorConstants
An interface to store motor constants and conversions.
Subclassed by tap::motor::M3508Constants
Public Functions
-
inline virtual float convertOutputToCurrent(float output) const = 0
- Returns:
the corresponding output in mA for a given raw motor output value (the one that you directly send to the motor/receive from the motor)
-
inline virtual float getTorqueConstant() const = 0
- Returns:
The motor torque constant, in N * m.
-
inline virtual float convertOutputToCurrent(float output) const = 0