Reference: units Module¶
The psiqdk.workbench.units module provides helpers for specifying rotation angles in different units.
RotationAngle ¶
RotationAngle is a class with magnitude and units.
In Workbench, these are primarily used to handle conversion between rotation units (radians, degrees, turns).
RotationAngle class supports arithmetic and comparison operators, such as +, <=, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mag
|
float
|
Magnitude |
required |
units
|
str
|
Units such as 'deg' or 'rad' |
required |
rad
module-attribute
¶
Rotation angle that corresponds to 1 radian.
deg
module-attribute
¶
Rotation angle that corresponds to 1 degree.