get_value¶
- Tachometer.get_value(unit: str | None = None) AngularSpeed | float | int
It gets the angular speed of the
targetrotating object.If a
unitis set, then it converts the angular speed to that unit and returns only the numerical value as float or integer.Parameters¶
unitstr, optionalThe unit to which convert the
targetangular speed. If specified, it converts the angular speed and returns only the numerical value as float or integer, otherwise it returns anAngularSpeed. Default isNone, so it returns anAngularSpeed.
Returns¶
AngularSpeedorfloatorintAngular speed of the
targetrotating object.
Raises
TypeErrorIf
unitis not astr.