Tachometer¶
- class Tachometer(target: RotatingObject)¶
Bases:
SensorBaseTachometerobject.Attributes¶
targetRotatingObjectTarget rotating object whose angular speed is probed by the sensor.
Methods¶
get_value()It gets the angular speed of the
targetrotating object.
- 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.
- property target: RotatingObject¶
Target rotating object whose angular speed is probed by the sensor.
Returns¶
RotatingObjectTarget rotating object whose angular speed is probed by the sensor.
Raises
TypeErrorIf
targetis not an instance ofRotatingObject.